py2exe

Creating executable with Py2exe and matplotlib errors

时光毁灭记忆、已成空白 提交于 2019-12-08 06:23:58
问题 I have been searching this forum and many others and cannot seem to get a good method of creating an executable. I have tried several different methods (py2exe, pyinstaller and cx_freeze) and all seem to give me some kind of error. When i tried pyinstaller, I received the error that "no _imaging C module is installed". Everything I search says that it has to do with PIL, but my code is not using PIL. When I tried py2exe, I keep receiving the following error: File "Scout_Tool.py", line 18, in

Where can I get obscure DLL so py2exe will compile?

允我心安 提交于 2019-12-08 05:31:54
问题 I am running py2exe to convert a rather large (~20k lines) python file into an executable. It's an older program and is written in python 2.7, 32 bit, so it does not translate well to a minimum working example. On running py2exe I encounter the following error: error: [Errno 2] No such file or directory: 'libopenblas.UWVN3XTD2LSS7SFIFK6TIQ5GONFDBJKU.gfortran-win32.dll' Having this dll in the Python27/DLLs folder will solve this issue, but after scouring the depths of google I have been unable

py2exe - “The following modules appear to be missing”

偶尔善良 提交于 2019-12-08 02:14:52
问题 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',

Call MS Access module function from Python after compiling with py2exe fails

。_饼干妹妹 提交于 2019-12-08 01:56:56
问题 I have been running the python code below for approx a year now. But am about to move onto a new job. In order to make things easy for the department I am leaving, I want to compile this code into a .exe file. I have tried compiling against Python 2.5 and 2.7 with the same results. But when when running the exe file I get the following error H:\development\DMS_Import_Data\dist>import_data.exe Run Live or Development Import (L = Live, D = Dev, X = Exit):l 5:3:2012 10:56 Opening Live Database..

Packing a Scrapy application using Cx_freeze or Py2Exe

五迷三道 提交于 2019-12-08 01:06:47
问题 I'm trying to package a web scraping script (built using scrapy) to run as a standalone application for my boss to use. I built a small desktop GUI using Tkinter that calls my Scrapy spiders through an os.system call. My current build implementation (using cx_Freeze) is below. It successfully packages my program into an .exe that works properly on my machine. However, when I try to port it to another Windows machine and run it, the GUI works but the system calls do not. I figure this is

Converting PyGTK to exe

拟墨画扇 提交于 2019-12-07 22:31:29
I've been looking around for hours now. The only thing that makes sense to me is http://fnch.users.sourceforge.net/portablepygtkwindows.html But it takes up >40MB of space and it is too big for me. Other tutorials are either too complicated for me to go through them or the results I obtained didn't work. I've tried py2exe but the import gtk fails. I've tried pyinstaller. The GTK files were included but not the glade file. I would wish to have it all in a single standalone .exe. But now my priority is to have it properly working in windows without Python. Any effort to help is much appreciated.

Creating a Python .exe file: py2exe invalid image error

喜你入骨 提交于 2019-12-07 19:41:32
问题 I want to create a .exe file. I'm using Python 2.7.3 with wxPython for the GUI. I've installed py2exe for Python 2.7 and tried to create a .exe file following the tutorial at http://www.py2exe.org/index.cgi/Tutorial When I try to run my created .exe file, I get following error: File "wx\_gdi.pyc",line823, in BitmapFromImage wx._core.PyAssertionError: C++ assertion "image.OK()" failed at ..\..\src\msw\bitmap.cpp(802) in wxBitmap::CreateFromImage(): invalid image So I looked into my code and

Pygame.mixer module missing?

守給你的承諾、 提交于 2019-12-07 18:58:11
问题 I am trying to make a small program for a friend and it needs to run a .wav file it works fine when i run it in python but when i compile it in py2exe it gives me this --> phone.exe:23: RuntimeWarning: use mixer: DLL load failed: The specified module could not be found. (ImportError: DLL load failed: The specified module could not be found.) Traceback (most recent call last): File "phone.py", line 23, in <module> File "pygame\__init__.pyc", line 70, in __getattr__ NotImplementedError: mixer

How to correct TCL_LIBRARY and TK_LIBRARY with py2exe

試著忘記壹切 提交于 2019-12-07 12:27:30
问题 I made a single slideshow.py file to display some photo correction with Tkinter widget, it runs perfectly on my windows & linux. To made it run on windows without python and tcl installed, I use py2exe to compile it into a win32 executable, setup.py is simple: from distutils.core import setup import py2exe setup(windows=["slideshow.py"]) Then I run "python setup.py py2exe", it generate a "dist" folder in c:\Users\d2xia\ccm_wa\utils\tfps\, and "tcl", "library.zip", "slideshow.exe" and so on

py2exe ImportError: no module named <package I have impemented>

半城伤御伤魂 提交于 2019-12-07 11:45:27
问题 I have implemented a package names myUtils, it consists of folder 'myUtils', file ' init .py' and a number of *.py files with names != 'myUtils'. This package is included in myOtherProject.py and can be found/used when I run them from Eclipse. However, when I run py2exe on myOtherProject.py, resulting exe cannot find this module(error message "ImportError: no module named myUtils"). Trimmed version of my setup.exe: from distutils.core import setup import py2exe, sys sys.path.append(pathTo