py2exe

py2exe windows service problem

╄→尐↘猪︶ㄣ 提交于 2019-12-03 10:58:33
问题 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

Bundling PyQwt with py2exe

萝らか妹 提交于 2019-12-03 10:01:24
I have a standard setup script for py2exe with which I bundle PyQt-based applications into Windows .exe files. Today I tried a simple script that uses the PyQwt module, and it doesn't seem to work. py2exe runs alright, but when I execute the .exe it creates, it dumps the following into a log file and doesn't run: Traceback (most recent call last): File "qwt_test.pyw", line 5, in <module> File "zipextimporter.pyo", line 82, in load_module File "PyQt4\Qwt5\__init__.pyo", line 32, in <module> File "zipextimporter.pyo", line 98, in load_module ImportError: MemoryLoadLibrary failed loading PyQt4

using py2exe with wxPython and Matplotlib

六眼飞鱼酱① 提交于 2019-12-03 09:40:51
问题 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

py2exe - “The following modules appear to be missing”

匿名 (未验证) 提交于 2019-12-03 09:05:37
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: First time using stackoverflow so go easy please. I used py2exe before on my old computer and it worked fine. Unfortunately when trying to use it on my new one the exe. file just doesn't work. I get these errors when trying to convert the .py file. My setup .py from distutils . core import setup import py2exe setup ( windows =[ 'Test.py' ]) My Test.py to convert to exe. def Test (): print 'TEST' Test () The Errors I receive: The following modules appear to be missing [ 'IronPythonConsole' , 'System' , 'System.Windows.Forms

py2exe the following modules appear to be missing

匿名 (未验证) 提交于 2019-12-03 08:41:19
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: As the title says, when I'm trying to use py2exe to create a Windows executable file, I get this error: The following modules appear to be missing ['Carbon', 'Carbon.Files', 'ElementC14N', 'OpenSSL.SSL', '_frozen_importlib', '_imp', '_scproxy', '_sysconfigdata', 'backports.ssl_match_hostname', 'builtins', 'certifi', 'charade.universaldetector', 'configparser', 'datrie', 'genshi.core', 'html', 'html.entities', 'html.parser', 'http', 'http.client', 'http.cookies', 'http.server', 'importlib.machinery', 'importlib.util', 'ipaddr', 'ipaddress',

ImportError: No module named cycler

匿名 (未验证) 提交于 2019-12-03 08:41:19
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am using wxpython and matplotlib to develop a software,when I complete my work, I want to convert the python files to "*.exe" file by py2exe,so it can be used in Windows.Here is the "setup.py" file. from distutils.core import setup import py2exe import sys includes = ["encodings", "encodings.*"] sys.argv.append("py2exe") options = {"py2exe": { "bundle_files": 1 ,"dll_excludes":["MSVCP90.dll"]}} setup(options = options, zipfile=None, console = [{"script":'test.py'}]) Then I executed this script by python setup.py to generate test.exe ,and

Py2Exe, [Errno 2] No such file or directory: &#039;numpy-atlas.dll&#039;

匿名 (未验证) 提交于 2019-12-03 08:36:05
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have included matplotlib in my program, I searched about numpy_atlas.dll on google and I seem to be the only one on Earth with this problem. setup.py from setuptools import setup import py2exe setup(console=['EulerMethod.py']) Running Py2Exe results in error C:\(..obmitted..)>python setup.py py2exe running py2exe *** searching for required modules *** *** parsing results *** ...... ...obmitted... ...... *** finding dlls needed *** error: [Errno 2] No such file or directory: 'numpy-atlas.dll' 回答1: Sounds like py2exe can't find dll.

Creating an executable file from python script

匿名 (未验证) 提交于 2019-12-03 07:50:05
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have created a GUI program using python and wxpython. It is now ready to be turned into an executable file. I have tried for the last two days following various instructions from py2exe. All instructions for Command Prompt refer to older versions of windows and I'm using windows 7. I have never used Command Prompt before as I'm still new to programming. Is py2exe going to best way to create an executable file or is there a better option? I have followed instructions on creating a setup.py file and it reads: from distutils.core import setup

Creating an Exe with Selenium Module: Py2exe/Pyinstaller

纵饮孤独 提交于 2019-12-03 05:17:45
问题 I've looked everywhere. Stackoverflow, various messageboards, the py2exe website, the pyinstaller website...nothing is helping. Including the selenium module, particularly making an exe that supports firefox, seems impossible. I am starting to pull out my hair because using either py2exe and pyinstaller is becoming a huge headache. Both py2exe and pyinstaller have their share of problems. My goal is to make one single exe file , without any extra directories, so that other people can use my

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

旧街凉风 提交于 2019-12-03 03:32:58
问题 >>> 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? 回答1: 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