py2exe

py2exe windows service problem

一世执手 提交于 2019-12-03 01:38:32
I have successfully converted my python project to a service. When using the usual options of install and start/stop, everything works correctly. However, I wish to compile the project using py2exe, which seems to work correctly until you install the EXE as a service and try and run it. You get the following error message: Starting service CherryPyService Error starting service: The service did not respond to the start or control request in a timely fashion. My compile python file (which links to the main project) is as follows: from distutils.core import setup import py2exe setup(console=[

Py2Exe: DLL load failed

匿名 (未验证) 提交于 2019-12-03 01:25:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: When trying to use py2exe to convert a simple Python game I made into exe format, it gave me the following error: Traceback (most recent call last): File "C:\Users\Tali\Desktop\2exe.py", line 4, in setup(console=['test.py']) File "C:\Python\lib\distutils\core.py", line 152, in setup dist.run_commands() File "C:\Python\lib\distutils\dist.py", line 953, in run_commands self.run_command(cmd) File "C:\Python\lib\distutils\dist.py", line 972, in run_command cmd_obj.run() File "C:\Python\lib\site-packages\py2exe\build_exe.py", line 243, in run

Py2Exe “Missing Modules”

匿名 (未验证) 提交于 2019-12-03 01:18:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to convert my python project into an exe using Py2Exe. It is worth noting that cx_freeze complains about the same three "missing modules", along with several dozen others. The problem is, no one anywhere tells how to resolve this. I'm building on MS Windows XP 32-bit (VirtualBox). C:\Documents and Settings\Jason\Desktop\redstring2>python setup.py py2exe running py2exe running build_py creating build creating build\lib copying redstring.py -> build\lib 3 missing Modules ------------------ ? readline imported from cmd, code, pdb ?

Py2exe error: [Errno 2] No such file or directory

匿名 (未验证) 提交于 2019-12-03 00:56:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: C:\Users\Shalia\Desktop\accuadmin>python setup_py2exe.py py2exe running py2exe 10 missing Modules ------------------ ? PIL._imagingagg imported from PIL.ImageDraw ? PyQt4 imported from PIL.ImageQt ? PyQt5 imported from PIL.ImageQt ? PySide imported from PIL.ImageQt ? _imaging_gif imported from PIL.GifImagePlugin ? _util imported from PIL.ImageCms ? cffi imported from PIL.Image, PIL.PyAccess ? enchant imported from guess_language ? readline imported from cmd, code, pdb ? tkinter imported from PIL.ImageTk, __SCRIPT__ Building 'dist\AccuAdmin

using py2exe with wxPython and Matplotlib

只愿长相守 提交于 2019-12-03 00:12:58
I'm trying to generate an .exe file from a python script that uses wxPython and Matplotlib and it looks like to be impossible. The imports I'm doing (related with Matplotlib) are the following: from numpy import * import matplotlib matplotlib.interactive(True) matplotlib.use("WXAgg") from matplotlib.figure import Figure from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg as FigCanvas from matplotlib.ticker import MultipleLocator Here is the setup.py file I'm trying to use: from distutils.core import setup import py2exe import matplotlib opts = { 'py2exe': {"bundle_files" : 3,

Failed to load OpenCL runtime - OpenCV3 Python

人盡茶涼 提交于 2019-12-02 21:57:42
问题 I have a program that processes videos using foreground detection in OpenCV 2.4.9/python/on windows and packaged for a windows executable using py2exe. I recently updated opencv to opencv3 and repackaged my program. When i run on my computer (with opencv3 installed locally) everything goes fine. However, when a user goes and downloads the program and runs it on another computer, they get the warning Failed to load OpenCL runtime This just seems to be just a warning, and i can detect no

Py2exe doesn't find bs4

无人久伴 提交于 2019-12-02 19:22:18
问题 In my original code, I have the line: from bs4 import BeautifulSoup When I use py2exe, it builds fine but further up in the output it says: The following modules appear to be missing ['_scproxy', 'bs4'] I specifically put bs4 in the py2exe options: "includes": ["bs4.BeautifulSoup"] Is that how I should be referencing BeautifulSoup in the includes statement? The fella over here didn't know how to do it either: 3rd Party Libraries and Py2exe Do I need to use packages instead of includes or

Install py2exe for python 2.7 over pip: this package requires Python 3.3 or later

二次信任 提交于 2019-12-02 17:00:12
>>> python -c "import sys; print sys.version" 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] >>> pip --version pip 1.5.5 from C:\Python27\lib\site-packages (python 2.7) >>> pip install py2exe <mumble grumble..> RuntimeError: This package requires Python 3.3 or later though official py2exe download page says they have exactly what I need: So how to install py2exe over pip? It is missing from pypi , if you click on the 0.6.9 link it brings you to the 0.9.2.0 python 3 package, there seems to be no 0.6.9 package available to download. Try using pip install http://sourceforge

py2exe + sqlalchemy + sqlite problem

与世无争的帅哥 提交于 2019-12-02 16:21:40
I am playing around with getting some basic stuff to work in Python before i go into full speed dev mode. Here are the specifics: Python 2.5.4 PyQt4 4.4.3 SqlAlchemy 0.5.2 py2exe 0.6.9 setuptools 0.6c9 pysqlite 2.5.1 setup.py: from distutils.core import setup import py2exe setup(windows=[{"script" : "main.py"}], options={"py2exe" : {"includes" : ["sip", "PyQt4.QtSql","sqlite3"],"packages":["sqlite3",]}}) py2exe appears to generate the .exe file correctly, but when i execute dist/main.exe i get this in the main.exe.log Traceback (most recent call last): File "main.py", line 18, in <module> File

py2exe fails with pandas import

南楼画角 提交于 2019-12-02 11:27:35
问题 I have a python script that I want to make into an executable using py2exe. It fails when I try to import pandas (this is literally all I have in my example failing script): import pandas The traceback looks like: File "c:\users\***\appdata\local\enthought\canopy\user\lib\site_packages\py2exe\mf.py", line 724, in import_hook return Base.import_hook(self,name,caller,fromlist,level) RuntimeError: maximum recursion depth exceeded I suspect that the problem may have something to do with the