cx-freeze

Why will .exe created with cx_Freeze not run? It tells me: python33.dll is not found

女生的网名这么多〃 提交于 2019-12-12 00:59:27
问题 I have successfully frozen my Python 3.3 application using cx_Freeze into an .exe and it runs fine until I move the enclosing folder which contains image files and suchlike to another folder or try on another (Windows) computer and run it. A Windows error then says: The application has failed to start because the extension python33.dll was not found. Is there any way I can fix this? 来源: https://stackoverflow.com/questions/16087227/why-will-exe-created-with-cx-freeze-not-run-it-tells-me

Cx_Freeze - Include Modules automatically

瘦欲@ 提交于 2019-12-11 20:20:09
问题 should I include modules that I have used in my .py like os module in code below or its done automatically?and what about exclude?I have used pyqt4 in my .py is it necessary to add its name in this setup.py file? import sys from cx_Freeze import setup, Executable # Dependencies are automatically detected, but it might need fine tuning. build_exe_options = {"packages": ["os"], "excludes": ["tkinter"]} # GUI applications require a different base on Windows (the default is for a # console

cx_Freeze executable not displaying matplotlib figures

浪尽此生 提交于 2019-12-11 16:55:39
问题 I am using Python 3.5 and I was able to create an executable using cx_Freeze but whenever I try to run the executable it runs without error but it cannot display any matplotlib figure. I have used Tkinter for my GUI. I have tried putting matplotlib backend as tkinter but figures are still not displaying.I cannot share the whole code as it is huge. Kindly Help. 回答1: The following example adapted from the matplotlib example Embedding In Tk and from the cx_Freeze sample Tkinter works for my

Cx_freeze with lxml.html TypeError

六眼飞鱼酱① 提交于 2019-12-11 14:54:48
问题 import lxml.html Gives me error when i want to compile with cx_freeze: Traceback (most recent call last): File "C:\Python27\Scripts\cxfreeze", line 5, in <module> main() File "C:\Python27\lib\site-packages\cx_Freeze\main.py", line 188, in main freezer.Freeze() File "C:\Python27\lib\site-packages\cx_Freeze\freezer.py", line 572, in Freeze self._FreezeExecutable(executable) File "C:\Python27\lib\site-packages\cx_Freeze\freezer.py", line 186, in _FreezeExecutable exe.copyDependentFiles,

Strange error using cx-freeze to build a PySide program osx

左心房为你撑大大i 提交于 2019-12-11 12:55:02
问题 I am using cx-freeze4.3.3 on a 64-bit mac running python 2.7.8 installed via the anaconda python distribution. The program is very simple as follows: import sys from PySide.QtGui import QApplication, QDialog app = QApplication(sys.argv) form = QDialog() form.show() app.exec_() The setup.py file is standard, with the following included: options = { 'build_exe': { 'includes': 'atexit' } } executables = [ Executable('test.py', base=base) ] When running python setup.py build , the following error

cx_freeze sre_constants.error nothing to repeat

ぃ、小莉子 提交于 2019-12-11 11:51:45
问题 I updated Python from 3.3.2 to 3.3.3, but that might not be the problem. If I start my python application directly it is OK. But when I freeze it to exe with cx_freeze the sqlalchemy connection in C:\Python33\lib\site-packages\sqlalchemy\engine\url.py line 184 uses re.compile and throws C:\Python\32-bit\3.3\lib\sre_compile.py line 362 in _simple sre_constraints.error: nothing to repeat but in my sre_compile.py file on line 362 is no raise error nothing to repeat. cx_freeze must use an old

How to add an icon to a cx_Freeze executable?

China☆狼群 提交于 2019-12-11 08:55:47
问题 I have looked at previous question that address this issue and I am very sure I have implemented the code correctly. Whenever I run the "build_msi" command on my setup script it only creates a build folder that is empty inside. Whenever I remove the icon parameter from the Executable function the installer builds correctly. This is the code. from cx_Freeze import Executable, setup executables = [Executable("FlappyBird.py", base = 'Win32GUI', shortcutName = 'Flappy Bird', shortcutDir =

TCL_LIBRARY in cx_freeze

自古美人都是妖i 提交于 2019-12-11 07:33:09
问题 i am trying to build an exe file from my python script using the cx_freeze library. this is my code: import easygui easygui.ynbox('Shall I continue?', 'Title', ('Yes', 'No')) and this is my setup code: import cx_Freeze import sys import matplotlib base = None if sys.platform == 'win32': base = "Win32GUI" executables = [cx_Freeze.Executable("tkinterVid28.py", base=base, icon="clienticon.ico")] cx_Freeze.setup( name = "SeaofBTC-Client", options = {"build_exe": {"packages":["easygui","matplotlib

cx_freeze module dependency

假装没事ソ 提交于 2019-12-11 07:24:20
问题 So my python script depends on another module I created. This module reads in a text file. The script, the module, and the file it reads are normally in the same directory when I run from source and everything works great. I compiled with cx_freeze, and when I run it, the imported module fails. The module tries to read the file and says it can't find it, and everything stops right there. The text file is included in the library.zip, and the build folder (probably unnecessarily, but I figured

Where to start looking in the code when your .exe doesn't work after cx_freeze?

↘锁芯ラ 提交于 2019-12-11 07:17:05
问题 So I've been working a while on a tkinter program that kills windows explorer and pulls up a dialogue box with an image, button, and canvas. So I got the python script itself to work. But when I try to compile it with cx_Freeze for use on my other 64 bit windows computer, and then run it, nothing happens. No errors, no dialogue messages, nothing. Just a loading animation over the cursor for a few seconds before it stops. I made a batch file that pauses the application before it finishes in