py2exe

Bundling GTK3+ with py2exe

半世苍凉 提交于 2019-12-19 03:22:43
问题 Platform is Windows 7 64bit using python 2.7 and GTK3+ installed from http://sourceforge.net/projects/pygobjectwin32/files/?source=navbar The exe is compiled but fails to run, due to this The following modules appear to be missing ['gi.repository.Gdk', 'gi.repository.Gtk', 'overrides.registry'] How can i properly include these files? imports in my .py file from gi.repository import Gtk, Gdk my setup file #!/usr/bin/env python from distutils.core import setup import py2exe, sys sys.path.append

How do I debug a py2exe 'application failed to initialize properly' error?

二次信任 提交于 2019-12-19 02:19:13
问题 I'm very new to Python in general, but I made an app in Python 2.6 / wxPython 2.8 that works perfectly when I run it through Python. But I wanted to go a step further and be able to deploy it as a Windows executable, so I've been trying out py2exe. But I haven't been able to get it to work. It would always compile an exe, but when I actually try to run that it barks some cryptic error message. At first they were simple messages saying it couldn't find certain DLLs, but even after giving it

Create Python EXE without MSVCP90.dll

邮差的信 提交于 2019-12-18 16:09:42
问题 I'm trying to use Py2Exe to take a python program (using wxPython) to a Windows exe but there is an error regarding MSVCP90.dll . After reading py2exe fails to generate an executable on StackOverflow, it says I need to download this file. However, it also says all target users must download this file. This will be a huge inconvenience for my users (mostly corporate clients who will not know how to download the file), so is there a way to package the with the program? Thanks! 回答1: What is

Create Python EXE without MSVCP90.dll

你。 提交于 2019-12-18 16:09:13
问题 I'm trying to use Py2Exe to take a python program (using wxPython) to a Windows exe but there is an error regarding MSVCP90.dll . After reading py2exe fails to generate an executable on StackOverflow, it says I need to download this file. However, it also says all target users must download this file. This will be a huge inconvenience for my users (mostly corporate clients who will not know how to download the file), so is there a way to package the with the program? Thanks! 回答1: What is

Python 3.0.1 Executable Creator

半世苍凉 提交于 2019-12-18 13:37:28
问题 Does anyone know if there's a windows Python executable creator program available now that supports Python 3.0.1? It seems that py2exe and pyInstaller, along with all the rest I've found, still aren't anywhere close to supporting 3.0 or 3.0.1. Any help is greatly appreciated. Edit: I guess I could downgrade the program to an older version of Python to make it work with py2exe. The hardest part will probably be using an older version of Tkinter. Has anyone had luck with using py2exe or

Errors with Matplotlib when making an executable with Py2exe (Python)

我的未来我决定 提交于 2019-12-18 09:17:37
问题 I have a problem when trying to make an executable with a Python application. For doing this, I'm using Py2exe with the 2.7 version of Python. My application have 3 python scripts -> IHM_monotone_flux_GTC.py which is the one who launch a graphical interface and then 2 others scripts: -> lectureDonnees.py -> main.py In order to create an executable I made a setup.py file which is surely incomplete: from distutils.core import setup import py2exe setup(windows=['IHM_monotone_flux_gtc.py'])

python setup.py py2exe Invalid Syntax (asyncsupport.py, line 22)

a 夏天 提交于 2019-12-18 08:26:29
问题 This command works fine on my personal computer but keeps giving me this error on my work PC. What could be going on? I can run the Char_Limits.py script directly in Powershell without a problem. error: compiling 'C:\ProgramData\Anaconda2\lib\site-packages\jinja2\asyncsupport.py' failed SyntaxError: invalid syntax (asyncsupport.py, line 22) My setup.py file looks like: from distutils.core import setup import py2exe setup (console=['Char_Limits.py']) My file looks like: import xlwings as xw

Cross-platform alternative to py2exe [closed]

久未见 提交于 2019-12-17 23:18:09
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . py2exe is great, and I use it whenever I want to package up a python program to run on a Windows system. My question is, is there an equivalent tool that I can use to package up the program on Windows, but that I can then run on Linux? 回答1: here is also PyInstaller that supports Linux, MacOS and Windows - I have

py2exe “include” modules: when should they be managed manually?

北战南征 提交于 2019-12-17 19:45:34
问题 When is it necessary to specify modules to include? Doesn't py2exe search and include whatever is needed per: http://www.py2exe.org/index.cgi/FAQ? And why does it include modules that are not being used, such as ["Tkconstants", "Tkinter", "tcl", "wx"] (I'm using Qt, but have wx installed on my PC) that then need to be excluded? 回答1: py2exe tries to create a graph of all the dependencies, starting with your entry point script. It can't always get it 100% correct, which is why you are provided

multiprocessing problem [pyqt, py2exe]

梦想与她 提交于 2019-12-17 18:28:08
问题 I am writing a GUI program using PyQt4. There is a button in my main window and by clicking this button. I hope to launch a background process which is an instance of a class derived from processing.Process. class BackgroundTask(processing.Process): def __init__(self, input): processing.Process.__init__(self) ... def run(self): ... (Note that I am using the Python2.5 port of the python-multiprocessing obtained from http://code.google.com/p/python-multiprocessing/ that is why it is processing