cx-freeze

cx_Freeze 5.0: ImportError: No module named 'scipy.__config__'

故事扮演 提交于 2019-12-04 13:02:37
Problem I get the following error when trying to run an .exe built with cx_Freeze: File "C:\\WinPython-64bit-3.5.2.3Qt5\python-3.5.2.amd64\lib\site-packages\scipy\__init__py", line 105 in <module> from scipy.__config__ import show as show_config ImportError: No module named 'scipy.__config__' During handling of the above exception, another exception occurred: ... File "C:\\WinPython-64bit-3.5.2.3Qt5\python-3.5.2.amd64\lib\site-packages\scipy\__init__py", line 105 in <module> raise ImportError(msg) ImportError: Error importing scipy: you cannot import scipy while being in scipy source directory

cx_Freeze fails to include Cython .pyx module

a 夏天 提交于 2019-12-04 11:33:26
I have a Python application to which I recently added a Cython module. Running it from script with pyximport works fine, but I also need an executable version which I build with cx_Freeze. Trouble is, trying to build it gives me an executable that raises ImportError trying to import the .pyx module. I modified my setup.py like so to see if I could get it to compile the .pyx first so that cx_Freeze could successfully pack it: from cx_Freeze import setup, Executable from Cython.Build import cythonize setup(name='projectname', version='0.0', description=' ', options={"build_exe": {"packages":[

SyntaxError when using cx_freeze on PyQt app

喜你入骨 提交于 2019-12-04 10:56:46
This is quite annoying problem that occurs when trying to build .exe file from Python 3 script using PyQt4. I think it is connected with using uic module for dynamic loading of .ui files. cx_freeze returns: File "E:\Python32_32\lib\site-packages\cx_Freeze\finder.py", line 366, in _LoadModule module.code = compile(codeString, path, "exec") File "E:\Python32_32\lib\site-packages\PyQt4\uic\port_v2\load_plugin.py", line 41 except Exception, e: ^ SyntaxError: invalid syntax I have solved this problem some time ago but I have recently encountered it again. Finding solution on the web isn't easy so I

cx_Freeze Exe Application closes as soon as opens

大憨熊 提交于 2019-12-04 09:41:32
I am trying to just convert my pygame python project to a .exe file using cx_Freeze. The setup file executes correctly and without error, but the issue is that when I run my .exe file the console window will open and close and my game window will not appear. The setup.py I am using: import os os.environ['TCL_LIBRARY'] = "C:\\Users\\MY_USERNAME\\AppData\\Local\\Programs\\Python\\Python35-32\\tcl\\tcl8.6" os.environ['TK_LIBRARY'] = "C:\\Users\\MY_USERNAME\\AppData\\Local\\Programs\\Python\\Python35-32\\tcl\\tk8.6" import cx_Freeze executables = [cx_Freeze.Executable("main.py")] cx_Freeze.setup(

error 3 on dateutil/zoneinfo using cx_freeze and pandas

柔情痞子 提交于 2019-12-04 06:57:09
When I try to compile the hello.py file with cx_freeze, I get the following error with pandas 0.15.2 but no error with 0.15.1. Has someone any idea on how to correct it ? I have include the dateutil/zoneinfo files with the include_files function but the problem still occurs. hello.py: import numpy as np import pandas as pd import matplotlib import matplotlib.pyplot as plt print 'hello world' df_dates = pd.date_range(start='01/01/2013', freq='H', periods=100) df = pd.DataFrame(range(len(df_dates)), index=df_dates) print df print df.info() df.plot() plt.savefig('test.png') plt.show(block=False)

Why am I getting a “no module named cx_Freeze” error after installing cx_freeze?

元气小坏坏 提交于 2019-12-03 17:39:32
问题 I am trying to compile a python program and I am using python 3.2. So I downloaded cx_freeze and installed it. When I try to run the setup.py in cmd it says: "importerror: no module named cx_freeze" I have removed cx_freeze and tried to re-install it, this time however, in the "select the location where cx_freeze should be installed" part of the installation I selected python from registry (which is all I did before) and also selected "python from another location" (and choose my C:\python32\

Cx-Freeze Error - Python 34

筅森魡賤 提交于 2019-12-03 16:55:52
问题 I have a Cx_Freeze setup file that I am trying to make work. What is terribly frustrating is that it used to Freeze appropriately. Now, however, I get the following error: edit. the error that shows up is not a Python exception through the console, but a crash report when attempting to launch the resulting exe file generated through the freeze. 'File 'notetest.py', line 1, in _find_and_load importlib_bootstrap.py, line 2214 .... AttributeError 'module' object has no attribute '_fix_up_module'

Use WiX or Inno Setup to bundle the installation of several MSI files

我的未来我决定 提交于 2019-12-03 16:20:51
I use cx-freeze to create an MSI installer for a Python application. Let's call it application "A". It depends on another application "B". I would like my installer for "A" to include and run the MSI installer for "B". How can I create a bootstrapping/chaining installer using Inno Setup or the WiX toolset? Here is a basic Inno Setup script that bundles two MSI installations into a single setup program. Since the installer only exists to install MSI files, there is no need for an application directory. To avoid creating the application directory, use "CreateAppDir=no". (thanks TLama!) [Setup]

cx_freeze “zlib not avaiable” error when using multiple threads

做~自己de王妃 提交于 2019-12-03 15:14:20
I have a Python application which works perfectly when run through the standard interpreter, but not when frozen with cx_freeze . My application makes use of the python Threading module, and typically has around 5 components running, each of which can be individually enabled / disabled in its configuration, and each running in their own individual thread. With 1 or 2 components enabled, no issue. However, when 3 or more components are enabled, I see the following error message for all or almost all of my threads: Exception in thread Thread-1: Traceback (most recent call last): File "C:\Python

Freeze a program created with Python's `click` pacage

瘦欲@ 提交于 2019-12-03 14:02:53
问题 I've got a command line program that uses Python's click package. I can install and run it locally, no problem with: pip install --editable . # (or leave out the editable of course) Now, I'd like to create an executable file that can be distributed and run standalone. Typically, since I'm in a Windows environment, I would use one of py2exe , pyinstaller or cx_Freeze . However, none of these packages work. More specifically, they all generate an executable, but the executable does nothing. I