cx-freeze

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

懵懂的女人 提交于 2019-12-21 20:53:24
问题 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

cx_Freeze fails to include Cython .pyx module

孤者浪人 提交于 2019-12-21 19:21:16
问题 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

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

那年仲夏 提交于 2019-12-21 05:36:20
问题 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? 回答1: 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

Creating MSI with cx_freeze and bdist_msi for PySide app

青春壹個敷衍的年華 提交于 2019-12-20 14:48:06
问题 I have a PySide application that I'm trying to package into an MSI using cx_freeze. I can successfully create an MSI installer, but I'm having trouble figuring out how to list additional modules to be included in the package. Here's my setup.py script: import sys from cx_Freeze import setup, Executable company_name = 'My Company Name' product_name = 'My Gui' bdist_msi_options = { 'upgrade_code': '{66620F3A-DC3A-11E2-B341-002219E9B01E}', 'add_to_path': False, 'initial_target_dir': r'

Creating MSI with cx_freeze and bdist_msi for PySide app

邮差的信 提交于 2019-12-20 14:46:28
问题 I have a PySide application that I'm trying to package into an MSI using cx_freeze. I can successfully create an MSI installer, but I'm having trouble figuring out how to list additional modules to be included in the package. Here's my setup.py script: import sys from cx_Freeze import setup, Executable company_name = 'My Company Name' product_name = 'My Gui' bdist_msi_options = { 'upgrade_code': '{66620F3A-DC3A-11E2-B341-002219E9B01E}', 'add_to_path': False, 'initial_target_dir': r'

cx_Freeze- ImportError: cannot import name setup

老子叫甜甜 提交于 2019-12-20 06:33:36
问题 I'm using a Windows 7 machine with cx_Freeze 4.3.1 with Python 3.3, both Python and cx_Freeze are 32-bit versions. I've written a setup.py script that looks like this: import sys from cx_Freeze import setup, Executable setup( name = "Macro Generator", version = "1.1", description = "Writes Macros for you", executables = [Executable("program.py")] ) When I navigate to the setup.py file location and try to create this executable from the command prompt using: python setup.py build I receive the

How do I use cx_Freeze on mac?

社会主义新天地 提交于 2019-12-20 03:29:11
问题 I used python 3.4 and cx_Freeze on my mac. I was trying to convert my python script into a stand alone application here is the code I got in my setup.py file: application_title = "Death Dodger 1.0" main_python_file = "DeathDodger-1.0.py" import sys from cx_Freeze import setup, Executable base = None if sys.platform == "win32": base = "Win32GUI" includes = ["atexit","re"] setup( name = application_title, version = "1.0", description = "Sample cx_Freeze script", options = {"build_exe" : {

ImportError: DLL load failed when importing win32clipboard in application frozen with cx_Freeze

安稳与你 提交于 2019-12-19 09:26:56
问题 I've got a Python 2.7 program that imports win32clipboard . I tried to freeze it with cx_Freeze 4.2.3 on Windows XP SP3 32-bit, to create an installation MSI. I made a setup.py according to the cx_Freeze documentation, and used the following command: c:\python27\python.exe setup.py bdist_msi When I run it on another PC that doesn't have Python 2.7 installed, I get an exception on the line that imports win32clipboard : ImportError: DLL load failed: The specified module could not be found. I

Moving all the DLL and PYD to a sub-folder with cx_Freeze

一个人想着一个人 提交于 2019-12-18 14:58:17
问题 This has come up quite a few times on the cx_Freeze mailing lists (see cx_Freeze and moving files around Creating fewer files when freezing a Python application cx_freeze python single file? ) and it seems to me like it ought to be a simple fix, but I can't see how to begin. I have a python application that depends on scipy, wxpython, numpy and a bunch of other packages that each have a LOT of dynamically linked libraries. The main executable folder gets very cluttered with PYD and DLL files

Import Error when using cx_freeze with pythoncom

不羁的心 提交于 2019-12-18 09:29:07
问题 I have made a simple keylogger program in python. The program works perfectly with Python Interpreter. Then, I converted it into an executable using cx_freeze. The problem now is that there are import errors. I can't find the relevant .pyd files for pythoncom and pywintypes. So, where can I find these files? The surprising thing is that when I copy and paste pythoncom.py and pywintypes.py into the folder, the executable works. 回答1: This problem was discovered after the release of cx_Freeze 5