cx-freeze

ImportError when using cx_Freeze with scipy

感情迁移 提交于 2019-12-12 13:24:27
问题 I'm trying to use cx_Freeze to generate a .app from a python project. Generally I have it working, but some of my modules which depend on scipy have an import error when executed: No module named '_csr' under the build folder I see a file: scipy.sparse.sparsetools._csr.so and watching the output of the build command seems to suggest that it's copying csr: $ python3 setup.py bdist_mac | grep csr m scipy.sparse.csr /usr/local/lib/python3.3/site-packages/scipy/sparse/csr.py m scipy.sparse

Cx_Freeze cannot find pkg_resources/*.*'

主宰稳场 提交于 2019-12-12 12:14:02
问题 I'm trying to build an EXE using a cx_Freeze setup.py file with the following command: python setup.py bdist_msi The command's output ends with: Copying data from package pkg_resources... error: [Error 3] The system cannot find the path specified: 'C:\Program Files\Anaconda2\lib\site-packages\setuptools-27.2.0-py2.7.egg\pkg_resources/*.*' I'm not sure what to make of it. I've checked and the setuptools' egg exists, and inside it there is a pgk_resources library, and I'm not sure what to do. I

py2exe doesn't find all dependencies

喜你入骨 提交于 2019-12-12 10:46:02
问题 I am trying to create an exe from python code. I can run the code just fine from the command line like this: python myScript.py I have installed py2exe from here: http://sourceforge.net/projects/py2exe/files/py2exe/0.6.9/ And, have a setup.py that looks like this: from distutils.core import setup import py2exe setup(console=['myScript.py']) And, I run the setup.py like this: python setup.py py2exe I get the following in the output: The following modules appear to be missing ['Carbon', 'Carbon

cx_Freeze and Python 3.4

人盡茶涼 提交于 2019-12-12 06:28:19
问题 I can properly produce an executable using cx_freeze in windows 64bit system.But when I want use the executable in windows 32bit system,it can not work,how can I make it available in other computer whose system is 32bit.` import sys from cx_Freeze import setup, Executable base = None if sys.platform == "win32": #base = "Win32GUI" base = "Console" exe = [Executable(script = r'E:\programming\python\lx\sange\test_GUI.py', base = base, targetName = 'test.exe')] setup( name = "guifoo", version =

cx-freeze error on build

前提是你 提交于 2019-12-12 04:46:35
问题 I keep getting this error when trying to do a build on Win 7 64bit: C:\Users\Tom>python C:\Users\Tom\Documents\setup.py build running build running build_exe copying C:\Users\Tom\Anaconda\lib\site-packages\cx_Freeze\bases\Win32GUI.exe -> build\exe.win32-2.7\NJM_GUI.exe copying C:\Users\Tom\Anaconda\python27.dll -> build\exe.win32-2.7\python27.dll Stamped: build\exe.win32-2.7\NJM_GUI.exe Traceback (most recent call last): File "C:\Users\Tom\Documents\setup.py", line 29, in <module> executables

Executable generated with cx_freeze opens for an instant before closing

别等时光非礼了梦想. 提交于 2019-12-12 03:53:37
问题 So I made an executable of my python script using cx_freeze but when I open it the window only stays for a fraction of a second before disappearing. I opened it directly with cmd and this is the error it displayed: Traceback (most recent call last): File "C:\Python32\lib\site-packages\pygame\__init__.py", line 117, in <module> try: import pygame.display File "ExtensionLoader_pygame_display.py", line 22, in <module> File "ExtensionLoader_pygame_display.py", line 14, in __bootstrap__ File

Can't run python script converted to exe

廉价感情. 提交于 2019-12-12 03:23:56
问题 I have created a python program that sends data to google spreadsheets using the following external libaries: json gspread oauth2client The program works as expected, however when I tried to convert it to an executable, I would get the following error every time I rune the .exe file: Traceback (most recent call last): File "C:\Python27\lib\site-packages\cx_Freeze\initscripts\Console.py", line 27, in <module> exec(code, m.__dict__) File "Demo.py", line 13, in <module> File "C:\Python27\lib

Issue with matplotlib and cx_freeze

拟墨画扇 提交于 2019-12-12 03:09:13
问题 I'm trying to freeze a console-based program that uses matplotlib.pyplot to generate and save plots. (I don't need to preview or view the plots in anyway before they are saved.) Here's my setup.py script: from cx_Freeze import setup, Executable import os os.environ['TCL_LIBRARY'] = "C:\\Program Files\\Anaconda3\\tcl\\tcl8.6" os.environ['TK_LIBRARY'] = "C:\\Program Files\\Anaconda3\\tcl\\tk8.6" setup(name='FLOUResence.exe', version='0.1', options = {"build_exe": {"packages":["pandas", "numpy",

EnsureDispatch error when using cx_freeze for making exe

烂漫一生 提交于 2019-12-12 02:05:25
问题 I am working with Python 3.4 on Windows 7. My setup file is as follows: from cx_Freeze import setup, Executable, sys exe=Executable( script="XYZ.py", base="Win32Gui", ) includefiles=[] includes=[] excludes=[] packages=[] setup( version = "1.0", description = "XYZ", author = "MAX", name = "AT", options = {'build_exe': {'excludes':excludes,'packages':packages,'include_files':includefiles}}, executables = [exe] ) from distutils.core import setup import py2exe, sys, os, difflib sys.argv.append(

compile python application with setup.py

≯℡__Kan透↙ 提交于 2019-12-12 01:11:45
问题 I already pointed at the problem of exporting my pygame into an executable for distribution purpose. I still have the problem that when I run the setup.py (I use python version 3.7.0) and build the app, the app directly crashes and I cannot open the unix executable either. Here is exactly what I did so far: my setup.py: from cx_Freeze import setup, Executable # Dependencies are automatically detected, but it might need # fine tuning. build_exe_options = {"include_files" : ["pic.png", "sound