cx-freeze

Creating MSI with cx_freeze and bdist_msi for PySide app

烂漫一生 提交于 2019-12-03 08:25:24
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'[ProgramFilesFolder]\%s\%s' % (company_name, product_name), # 'includes': ['atexit', 'PySide.QtNetwork'], # <--

Cx-Freeze Error - Python 34

懵懂的女人 提交于 2019-12-03 06:47:20
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' My setup.py file follows: import sys import os from cx_Freeze import setup, Executable build_exe

How to fix numpy dependencies path on a python 3.7.3 script on Linux frozen with cx_Freeze 6.0b1?

雨燕双飞 提交于 2019-12-02 15:44:46
问题 I am using Debian 9, python 3.7.3 and cx_Freeze 6.0b1. I spent some time installing cx_Freeze on Windows 7 and Debian, I managed to compile the script on both platforms. When I share it, the Windows version runs, but the Linux version raises an error about missing dependencies. The app is still looking for the files in the absolute path, and I don't understand why. When I run cx_Freeze, the .so file are copied to the output directory. My compiled program: import numpy as np import matplotlib

How to fix numpy dependencies path on a python 3.7.3 script on Linux frozen with cx_Freeze 6.0b1?

妖精的绣舞 提交于 2019-12-02 11:56:18
I am using Debian 9, python 3.7.3 and cx_Freeze 6.0b1. I spent some time installing cx_Freeze on Windows 7 and Debian, I managed to compile the script on both platforms. When I share it, the Windows version runs, but the Linux version raises an error about missing dependencies. The app is still looking for the files in the absolute path, and I don't understand why. When I run cx_Freeze, the .so file are copied to the output directory. My compiled program: import numpy as np import matplotlib.pyplot as plt f=open('hello.txt','w') f.write('Hello World') f.close() y=lambda x:np.sqrt(x) x=range(10

cx_Freeze- ImportError: cannot import name setup

喜夏-厌秋 提交于 2019-12-02 08:29:23
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 following error. Traceback (most recent call last): File "setup.py", line 2, in <module> from cx

Cx_Freeze and Plotly

北城以北 提交于 2019-12-02 08:07:09
I am trying to build an exe of an application that uses plotly using cx_freeze. I have previously built the application using matplotlib but have switched the graphing over to plotly. I can build the application but when I try to plot, I get the following error. url = py.plot(fig, filename='pandas-box-plot') File "C:\Python34\lib\site-packages\plotly\offline\offline.py", line 284, in p lot get_plotlyjs(), File "C:\Python34\lib\site-packages\plotly\offline\offline.py", line 48, in ge t_plotlyjs plotlyjs = resource_string('plotly', path).decode('utf-8') File "C:\Python34\lib\site-packages\pkg

No module named bs4 when using cx-freeze

耗尽温柔 提交于 2019-12-02 06:54:34
问题 I am trying to convert my python script in to standalone executable for Windows using cx-freeze. For that I just typed this command cxfreeze PlaylistDownloader.py (PlaylistDownloader.py is my script file) then it did the following things. PS C:\Users\BK\Desktop\#YoutubePlayListDownloader> cxfreeze PlaylistDownloader.py creating directory C:\Users\BK\Desktop\#YoutubePlayListDownloader\dist copying C:\Python27\lib\site-packages\cx_Freeze\bases\Console.exe -> C:\Users\BK\Desktop\

No module named bs4 when using cx-freeze

安稳与你 提交于 2019-12-02 06:45:43
I am trying to convert my python script in to standalone executable for Windows using cx-freeze . For that I just typed this command cxfreeze PlaylistDownloader.py (PlaylistDownloader.py is my script file) then it did the following things. PS C:\Users\BK\Desktop\#YoutubePlayListDownloader> cxfreeze PlaylistDownloader.py creating directory C:\Users\BK\Desktop\#YoutubePlayListDownloader\dist copying C:\Python27\lib\site-packages\cx_Freeze\bases\Console.exe -> C:\Users\BK\Desktop\#YoutubePlayListDownloader\dist \PlaylistDownloader.exe copying C:\Windows\SYSTEM32\python27.dll -> C:\Users\BK

Compiling with Python 3.3

寵の児 提交于 2019-12-02 05:44:51
问题 Let me start by saying I have only very recently started programming. I don't know how to use the cx_freeze script. I don't know how to make the word 'python' work in commandline. I am just looking for complete and detailed directions on how to make a .py file into a .exe file that can work without Python. I haven't had luck with cx_freeze and nothing else seems to work with 3.3. Can anyone tell me wher to start? 回答1: Unfortunately, cx_freeze is the only way to do it as far as I can tell.

cx_Freeze - how do I convert multiple files into the build folder

前提是你 提交于 2019-12-02 04:50:58
问题 I've made a program which launches another python program using os.startfile() . I wanted to have this as two exe files, launching the second by using subprocess.call() instead, in 1 build folder but I don't know how to do this. I tried making a setup file for both, creating 2 build folders and then copying 1 of the exe files into the other's build folder but got this: Traceback (most recent call last): File "C:\Python34\lib\site-packages\cx_Freeze\initscripts\__startup__.py", line 12, in