cx-freeze

cx freeze set custom .exe icon

拜拜、爱过 提交于 2019-12-11 04:24:36
问题 I am converting a .py file to a .exe file using cx_freeze. My current setup file is working but I can not seem to change it so that my .exe file has the custom icon I have made. I have tried a few different ways and none of them seem to be working. Any advice would be very helpful. Thank you for your time. Attempt one import sys from cx_Freeze import setup, Executable include_files = ['autorun.inf'] base = None if sys.platform == "win32": base = "Win32GUI" setup(name = "Calculator", version =

How to disable cx_freeze to autodetect all modules

半世苍凉 提交于 2019-12-11 04:22:10
问题 cx_freeze build includes all modules, that installed on my machine, so freezed build becomes a huge. How to disable autodetection feature? I just want to build small PyQt application: import sys from cx_Freeze import setup, Executable path = sys.path + ["app"] includes = ["app.core", "app.utils"] excludes = ["tcl"] build_exe_options = { "path": path, "icon": "resources\icons\clock.ico"} base = None if sys.platform == "win32": base = "Win32GUI" setup( name = "app", version = "1.1", description

python3 & pyqt4 & cx_freeze: no module named 'sip'

[亡魂溺海] 提交于 2019-12-11 04:15:56
问题 I just recently learned some python & pyqt basics, and today i wanted to convert a program I made to exe. I'm using python 3.4.1 and PyQt4 installed via binary installer (my system is 32-bit Windows 7 Enterprise, if it makes any difference). So I found Cx_Freeze should be a viable tool for the job, but as for now, I have spent several hours trying to make it work. I installed Cx_Freeze from this site (after installing it from pypi.python.org and getting some error considering modules; this

Can´t freeze a script with matplotlib basemap and cx_freeze

可紊 提交于 2019-12-11 04:00:30
问题 back again. I am still working on it but I can not fix it The script is running fine but when I freeze it using cx_freeze a cx_freeze error appears. at the end of the message says OSError:proj data directory not found. Expecting it at: C:\python34........mpl_toolkits\basemap\data Is the data not included in the build directory created by cx_freeze ? I am using the following script for freezing base = None def find_data_file(pyproj): if getattr(sys,'XXXXs.exe',False): datadir = os.path.dirname

Error when freezing pandas/NumPy 1.7.0 code with cx_Freeze

巧了我就是萌 提交于 2019-12-11 03:51:35
问题 I am trying to freeze a Python script with cx_Freeze. The script makes use of pandas. When I run the executable created by cx_Freeze, I get the following Traceback: [...] File "C:\Python27\lib\site-packages\pandas\__init__.py", line 6, in <module> from . import hashtable, tslib, lib File "ExtensionLoader_pandas_hashtable.py", line 11, in <module> File "numpy.pxd", line 156, in init pandas.hashtable (pandas\hashtable.c:20273) File "C:\Python27\lib\site-packages\numpy\__init__.py", line 147, in

Keep getting a 'filedialog' error after creating executable with cx_Freeze

与世无争的帅哥 提交于 2019-12-11 03:35:28
问题 I am trying to create an executable using cx_Freeze from a python script and it appears that certain portions of the tkinter module are not getting loaded into the executable file. The script file contains the import statements: from tkinter import * from tkinter.filedialog import askopenfile, asksaveasfile from tkinter.messagebox import * import subprocess import time Within my script I have some code that looks like this: f_outfile = filedialog.asksaveasfile(initialdir=r'c:\Program Files

cx_freeze: QODBC driver not loaded

冷暖自知 提交于 2019-12-11 02:39:18
问题 my python application looks like: test.py from PyQt4 import QtCore from PyQt4 import QtGui from PyQt4 import QtSql import sys import atexit if __name__ == "__main__": app = QtGui.QApplication(sys.argv) db = QtSql.QSqlDatabase.addDatabase('QODBC') sys.exit(app.exec_()) If i run this application, everything works fine. However, if I create an executable with cx_freeze, I always get the following error: QSqlDatabase: QODBC driver not loaded QSqlDatabase: available drivers: I use the following

Python 3.2: cx_freeze compiles my program, but in debug mode

会有一股神秘感。 提交于 2019-12-11 02:33:02
问题 I'm making a game with Python 3.2 and Pygame. I've successfully managed to use cx_freeze to bundle everything into an executable, and it runs. Fine. The only problem is, even when I pass the -OO flag to my setup.py , my game is compiled in debug mode. (I've confirmed it with print statements that __debug__ is indeed True .) The problem is, my game has debugging features that are disabled automatically in release mode. I don't want to distribute the debugging features of my game, and I don't

How to build python class structure for matplotlib to export ot .exe with cx_freeze?

烈酒焚心 提交于 2019-12-11 02:21:17
问题 I built a code to generate and play random musical notes. It is working great within python, but I would like to make it into an .exe stand alone program, so people without python can use it. I show an image below of the output. It creates a matplotlib figure with a 'TkAgg' backend. There are 5 buttons and an user entry box that all work. I used cx_freeze to try to package it, and I worked through all of the errors. I also got some of the examples to work. I can see the the build folder is

cx_Freeze copies path

拜拜、爱过 提交于 2019-12-10 23:49:52
问题 I am using cx_Freeze to generate a windows binary for my PyQt app. But the binary installer that is generated seems to still contain references to files on MY machine. (The one that generated the binary). So I can't distribute the generated installer to other machines. When the program is launched on another machine it seems look for paths that only exist on my machine. my setup.py looks like this: import sys from cx_Freeze import setup, Executable """ To build on windows: python.exe setup.py