cx-freeze

cx_Freeze build error?

ⅰ亾dé卋堺 提交于 2019-12-18 08:49:08
问题 I am trying to create a binary from a python,flask and boto3 app. I am having trouble running the pip install cx_Freeze command too work. I am getting the following error : It seems to be not fetching the right system libraries. Also, can anyone suggest any tools to package python apps into binaries? Failed building wheel for cx-Freeze Running setup.py clean for cx-Freeze Failed to build cx-Freeze Installing collected packages: cx-Freeze Running setup.py install for cx-Freeze ... error

Cannot load mkl_intel_thread.dll on python executable

拈花ヽ惹草 提交于 2019-12-18 08:40:52
问题 I'm trying to create an executable python program that runs on windows without python being installed, for this I'm using cx_Freeze. But I get the following error: "Cannot load mkl_intel_thread.dll" On my PC, which has python installed (miniconda3), I built the executable using cx_Freeze, and when I ran the executable I also would get "Cannot load mkl_intel_thread.dll". I fixed this by going to my python folder, Library\bin, and copied the mkl_intel_thread.dll file to where the executable is

ImportError: cannot import name MAXREPEAT with cx_Freeze

无人久伴 提交于 2019-12-18 05:39:26
问题 I'm running into an issue with cx_Freeze when running a frozen application (works fine unfrozen). When running the program it results in the following traceback: Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/cx_Freeze/initscripts/Console.py", line 27, in <module> exec code in m.__dict__ File "PythonApp/mainframe.py", line 3, in <module> File "/usr/local/lib/python2.7/site-packages/dbus/__init__.py", line 103, in <module> from dbus._dbus import Bus, SystemBus,

How can I hide the console window when freezing wxPython applications with cxFreeze?

旧巷老猫 提交于 2019-12-17 21:47:11
问题 I'm developing a Python application using wxPython and freezing it using cxFreeze. All seems to be going fine apart from this following bit: When I run the executable created by cxFreeze, a blank console window pops up. I don't want to show it. Is there any way I could hide it? It doesn't seem to be documented on the cxFreeze site and Googling didn't turn up much apart from some similar sorta problems with Py2Exe. Thanks. 回答1: This worked to some extent but it has issues. My program runs in

from . import _methods ImportError: cannot import name '_methods' in cx-freeze python

試著忘記壹切 提交于 2019-12-17 19:38:19
问题 exe build successfully by using cx-freeze. But it shows the following error when I execute the exe file: from . import _methods ImportError: cannot import name '_methods' 回答1: This question was already answer here: Why am I getting this ImportError? but for the sake of completeness here is the answer for this specific case: cx_freeze is not importing the optional module _method , so you have to tell him explicitly to do it. additional_mods = ['numpy.core._methods', 'numpy.lib.format'] setup

cx_Freeze: “No module named 'codecs'” Windows 10

不羁岁月 提交于 2019-12-17 16:56:06
问题 I am currently making a game using pygame module. I have followed the following links' directions. https://pythonprogramming.net/converting-pygame-executable-cx_freeze/ I have solved some problems such as KeyError KeyError: 'TCL_Library' when I use cx_Freeze AttributeError Attribute Error while using cx_Freeze The build of setup.py has been done, but as I run the exe file of the game, it crashes with Fatal Python error: Py_Initialize: unable to load the file system codec Fatal Python error:

KeyError: 'TCL_Library' when I use cx_Freeze

ε祈祈猫儿з 提交于 2019-12-17 01:59:47
问题 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

KeyError: 'TCL_Library' when I use cx_Freeze

谁说胖子不能爱 提交于 2019-12-17 01:59:07
问题 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

UnicodeDecodeError only with cx_freeze

五迷三道 提交于 2019-12-14 03:54:13
问题 I get the error: "UnicodeDecodeError: 'ascii' codec can't decode byte 0xa0 in position 7338: ordinal not in range(128)" once I try to run the program after I freeze my script with cx_freeze. If I run the Python 3 script normally it runs fine, but only after I freeze it and try to run the executable does it give me this error. I would post my code, but I don't know exactly what parts to post so if there are any certain parts that will help just let me know and I will post them, otherwise it

When I try to compile and .exe I get ImportError: No module named six

限于喜欢 提交于 2019-12-14 02:26:17
问题 I've tried making an exe from a program using py2exe, cx_freeze and pyinstaller. All of which give me an error 'ImportError: No module named six' when I go to launch the .exe The .exe is able to be created. I've looked through the forums and all of them say to pip install six (it's already installed). I've tried uninstalling and re-installing six. One post mentioned uninstalling matplotlib, so I did that. When I instlalled pyinstaller one of the requirements was that six be installed! So this