py2exe

py2exe and Django Import Error no module named apps

坚强是说给别人听的谎言 提交于 2019-12-04 14:36:50
I'm trying to make a standalone Django (1.8.2) app using py2exe. To achieve that I have a setup.py file with all settings required by py2exe: modules to be included, not to include, etc. The py2exe console parameter (within my setup.py) is set to 'manage.py'. After running it with python setup.py py2exe py2exe runs succesfully adding all (?) required modules and my Django apps. I get an manage.exe file - seems this is working, right? However, after running the manage.exe file I get the following error: File "manage.py", line 11, in <module> File "django\core\management\__init__.pyo", line 338,

SVG images dont appear after compiling PyQt4 python code with py2exe

房东的猫 提交于 2019-12-04 11:09:35
I wrote python application using svg images as icons. QtGui.QIcon(':icons/icon.svg') <- just like this it works on my comuter but after compiling it with py2exe and running on another computer, theres no icons. if i try e.g. bmp format, all works fine. so i think it could be some library problem. I don't know what PyQt4 uses for svg graphics. in setup.py file i wrote dllList = ('mfc90.dll','msvcp90.dll','qtnetwork.pyd','qtxmlpatterns4.dll', 'qsvg4.dll', 'qsvgd4.dll') origIsSystemDLL = py2exe.build_exe.isSystemDLL def isSystemDLL(pathname): if os.path.basename(pathname).lower() in dllList:

Problem with loading win32file.pyd on python 2.6

a 夏天 提交于 2019-12-04 09:32:34
问题 I can't make py2exe to pack correctly even a simple script that uses win32file I'm constantly getting the following error message: Traceback (most recent call last): File "dependency_checker.py", line 1, in <module> File "win32file.pyc", line 12, in <module> File "win32file.pyc", line 10, in __load ImportError: DLL load failed: The specified procedure could not be found. The script looks as follows: import win32file print "Hello world!" And here is the setup.py: from distutils.core import

pack a software in Python using py2exe with 'libiomp5md.dll' not found

独自空忆成欢 提交于 2019-12-04 09:07:08
问题 I have Python 2.7 on Window 7 OS. I wish to pack my project.py in an Executable using py2exe. Following the instruction i wrote a setup.py file from distutils.core import setup import py2exe setup(console=["project.py"]) and I got this message i tried to exclude ' libiomp5md.dll ' from distutils.core import setup import py2exe setup(console=["SegmentationAccuracy.py"]) dll_excludes = ['libiomp5md.dll'] but always i got the same error message "error: libiomo5md.dll: No such file or directory"

OpenCV with standalone python executable (py2exe/pyinstaller)

非 Y 不嫁゛ 提交于 2019-12-04 06:05:08
问题 I have a python program that uses OpenCV to get frames from a video file for processing. I then create a standalone executable using py2exe (also tried pyinstaller and got same error). My computer and the target computer are both Windows 7, but the target computer does not have python installed. I use OpenCV to read the frame rate and individual images from a video file. Problem: When I run the executable on the target computer the frame rate is returned as 0.0 and I cannot read frames. If

How to build PyQT project?

不羁的心 提交于 2019-12-04 04:59:20
I have a simple PyQT project. I would like to know how to build it in Windows in such way, that it becomes runnable executable. I don't want to require user to install heavy QT framework for his computer. How to make executable with only necessary parts of QT? I use py2exe for deploying a Windows standalone GUI cross-platform (under Linux, all the python libs are available on the Linux hosts). You run the py2exe "setup" to build an .exe+, and py2exe pulls the binary bits and your python code and builds into a loadable, runnable Windows executable pack. Python 2.5 on windows was the long-time

Is it possible to build exe on Vista and deploy on XP using py2exe

China☆狼群 提交于 2019-12-04 03:45:58
I have created some program using python on Windows Vista. But I want to deploy it on Windows XP. Is it necessary to make new build on windows XP? Or there is possibility to make build that will work on both of these systems? EDIT (EDIT 2 - very simple program does not work also): My setup: from distutils.core import setup import py2exe setup(console=['orderer.py']) Using dependency explorer i checked that dependencies are: msvcr90.dll kernel32.dll +ntdll.dll Almost solved: I figured out that installing: http://www.microsoft.com/downloads/details.aspx?FamilyID=9b2da534-3e03-4391-8a4d

.exe Icon Doesn't Change [py2exe]

两盒软妹~` 提交于 2019-12-04 03:45:40
问题 My icon file myicon.ico in same directory with setup.py. When I run py2exe, myproject.exe doesn't have icon. I looked for solution but couldn't find. setup.py code is: from distutils.core import setup import py2exe setup( windows=[{ "script": "myproject.py", "icon_resources": [(0, "favicon.ico")], }] ) OS: Win8.1 64bit 回答1: It appears py2exe has a 4-year-old bug on handling icons, but due to its description, I managed to make this workaround: setup_dict = dict( windows = [{'script': "script

ImportError: cannot import name Publisher

跟風遠走 提交于 2019-12-04 03:04:25
I succesfully created an executable version (Py2exe, Pyinstaller) of my application. When I try to run the app from .exe, I get an error as follows in the log file: Traceback (most recent call last): File "CreateAS.pyw", line 8, in <module> ImportError: cannot import name Publisher I am really stuck in this part. Could you help me out? Thanks Casey I'm guessing that you are using a version of wxPython that is >= 2.8.11.0 ? If so, the wx.lib.pubsub package has changed. This page describes the changes. There is also a thread on the wxPython mailing list here that talks about this. To make this

load pyd files from a zip from embedded python

蹲街弑〆低调 提交于 2019-12-04 01:21:05
问题 I can load Python modules (.py, .pyc, .pyd) from a zip file by calling "import some_module" from a Python interpreter only after sys.path has been extended to include the zip file and only after I have run import zipextimporter zipextimporter.install() The latter is required for .pyd modules. I can also load Python .py and .pyc modules from Python embedded in C++. However, in order to also load .pyd modules from embedded Python I added PyRun_SimpleString("import zipextimporter"); The C++ exe