cx-freeze

cx_Freeze crashing Python 3.7.0

a 夏天 提交于 2019-11-26 18:01:00
Is Python 3.7.0 supported with cx_Freeze 6.0b1 (latest version)? I just created a simple project and it works with Python 3.5.4 but it does not in Python 3.7.0 where it shows: Fatal Python error: initfsencoding: unable to load the file system codec zipimport.ZipImportError: can't find module 'encodings' I've reported this upstream as #399 . The fix for this bug exists: pull request 395: Compilation correct .pyc files for Python 3.7.0 . You can apply it by hand to your existing installation. 来源: https://stackoverflow.com/questions/51314105/cx-freeze-crashing-python-3-7-0

build a .exe for Windows from a python 3 script

六眼飞鱼酱① 提交于 2019-11-26 17:21:41
问题 I would like building an executable for a python 3 script that: imports pyqtgraph (with pyqt5) imports theano and pymc3 also imports numpy, scipy, sys, os opens a simple GUI made with qt designer and stored in a ‘.ui' file will be distributed on machines with Windows 7+ I tried several tools (py2exe, pyinstaller, pynsist, cx_Freeze) during hours but failed each time. my 'less worse’ result was with pyinstaller (see below) without theano part (and so without a part of the script). Can anyone

KeyError: 'TCL_Library' when I use cx_Freeze

北城以北 提交于 2019-11-26 11:20:28
When I use cx_Freeze I get a keyerror KeyError: 'TCL_Library' while building my pygame program. Why do I get this and how do I fix it? My setup.py is below: from cx_Freeze import setup, Executable setup( name = "Snakes and Ladders", version = "0.9", author = "Adam", author_email = "Omitted", options = {"build_exe": {"packages":["pygame"], "include_files": ["main.py", "squares.py", "pictures/Base Dice.png", "pictures/Dice 1.png", "pictures/Dice 2.png", "pictures/Dice 3.png", "pictures/Dice 4.png", "pictures/Dice 5.png", "pictures/Dice 6.png"]}}, executables = [Executable("run.py")], ) You can

Getting “ImportError: DLL load failed: The specified module could not be found” when using cx_Freeze even with tcl86t.dll and tk86t.dll added in

心已入冬 提交于 2019-11-26 10:02:59
问题 I am trying to convert a .py file to .exe using cx_Freeze 5.1.1., but an ImportError: DLL load failed pops up every time I try to run the file. Based on the suggested solutions here and here, I added tcl86t.dll and tk86t.dll to the list of included files. They appear in the build folder, but the error message keeps popping up. Here is my setup.py: import sys import os from cx_Freeze import setup, Executable os.environ[\"TCL_LIBRARY\"] = r\"C:/Users/Name/AppData/Local/Programs/Python/Python36

tkinter program compiles with cx_Freeze but program will not launch

谁都会走 提交于 2019-11-26 09:59:56
问题 I\'m trying to create an executable following this tutorial https://github.com/anthony-tuininga/cx_Freeze/tree/master/cx_Freeze/samples/Tkinter After some tweaking I\'m able to compile the project but when i click the .exe the mouse loading animation fires but nothing ever loads. This questions has been asked previously but was never resolved. Where to start looking in the code when your .exe doesn't work after cx_freeze? My app file from tkinter import * from tkinter import messagebox root =

Creating cx_Freeze exe with Numpy for Python

落花浮王杯 提交于 2019-11-26 09:52:22
问题 Im trying to create a basic exe using cx_Freeze. It works for .py programs that don\'t have numpy but I can\'t get one made correctly with numpy. *Any ideas on how to fix this? is there something i need to include in my setup.py? When I go to run the exe it says: c:\\Python32\\Scripts\\dist>Assignment4_5.exe Traceback (most recent call last): File \"C:\\Python32\\lib\\site-packages\\cx_Freeze\\initscripts\\Console3.py\", line 2 7, in <module> exec(code, m.__dict__) File \"c:\\Python32\

cx_Freeze converted GUI-app (tkinter) crashes after pressing plot button

两盒软妹~` 提交于 2019-11-26 08:29:57
问题 I\'ve been dealing with this for days now and hope to find some help. I developed a GUI-application with imported modules tkinter, numpy, scipy, matplotlib, which runs fine in python itself. After having converted to an exe everything works as expected, but NOT the matplotlib section. When I press my defined plot button, the exe simply closes and doesn\'t show any plots. So I thought to make a minimal example, where I simply plot a sin-function and I\'m facing the same issue: Works perfect in

Requests library: missing SSL handshake certificates file after cx_Freeze

拜拜、爱过 提交于 2019-11-26 07:48:29
问题 I\'m building an application in python 3.3 which uses the requests library. When I try to get a URL with SSL connection I want to verify it with verify = true. This works perfectly when running my python scripts. When I freeze the same scripts it crashes. It misses something and I really cant figure out how to integrate it in my frozen application. I get the following error (which also triggers other errors, but I don\'t post them here): Traceback (most recent call last): File \"C:\\Python33

cx_Freeze crashing Python 3.7.0

三世轮回 提交于 2019-11-26 06:09:09
问题 Is Python 3.7.0 supported with cx_Freeze 6.0b1 (latest version)? I just created a simple project and it works with Python 3.5.4 but it does not in Python 3.7.0 where it shows: Fatal Python error: initfsencoding: unable to load the file system codec zipimport.ZipImportError: can\'t find module \'encodings\' I\'ve reported this upstream as #399. 回答1: The fix for this bug exists: pull request 395: Compilation correct .pyc files for Python 3.7.0. You can apply it by hand to your existing

How can I bundle other files when using cx_freeze?

非 Y 不嫁゛ 提交于 2019-11-26 04:38:40
问题 I\'m using Python 2.6 and cx_Freeze 4.1.2 on a Windows system. I\'ve created the setup.py to build my executable and everything works fine. When cx_Freeze runs, it moves everything to the build directory. I have some other files that I would like included in my build directory. How can I do this? Here\'s my structure: src\\ setup.py janitor.py README.txt CHNAGELOG.txt helpers\\ uncompress\\ unRAR.exe unzip.exe Here\'s my snippet: setup ( name=\'Janitor\', version=\'1.0\', description=\