Questions tagged [cx-freeze]

cx_Freeze is a set of scripts and modules for freezing Python scripts (.py) into executable files for Windows (.exe), Mac OS (.app), or Linux.

cx_Freeze is a set of scripts and modules for freezing Python scripts (.py) into executable files for Windows (.exe), Mac OS (.app), or Linux, in much the same way that py2exe and py2app do. These executable files can run on a system without Python installed.

cx_Freeze works with Python versions 2.7 to 3.8.

For Python version 2.7, the latest stable version of cx_Freeze is 5.1.1 (released December 2017) which can be downloaded here: https://pypi.org/project/cx-Freeze/5.1.1/

For Python versions 3.0 to 3.4, the latest stable version of cx_Freeze is 5.0.2 (released May 2017) which can be downloaded here: https://pypi.org/project/cx-Freeze/5.0.2/

For Python versions 3.5 to 3.8, the latest stable version of cx_Freeze is 6.1 (released January 2020) which can be downloaded here: https://pypi.org/project/cx-Freeze/6.1/

Documentation: http://cx-freeze.readthedocs.io/en/latest/index.html

Project: https://anthony-tuininga.github.io/cx_Freeze/

1734 questions
0
votes
2 answers

my pyqt5 application is working fine on windows but when i run this on Mac the graphics are not as it is

I have developed an application with pyqt5 and it is working fine on windows but when i run this app on mac osx it's graphics are not working fine like the layout of the buttons, labels and other stuff are not showing perfectly. I have created app…
Nilanj
  • 101
  • 12
0
votes
1 answer

Why dose cx_freeze throw the exception like 'MSIError'

I met the question about making .py into .exe. When I try using cx_freeze to pack, I will always get 'MSIError', which is something like this: Traceback (most recent call last): File "setup.py", line 15, in
wsy
  • 140
  • 1
  • 8
0
votes
2 answers

Python cx_Freeze Import Error "No module named humanize"

C:\WINDOWS\system32>py C:\Users\Lenovo\Desktop\RPGTxtGame\setup.py build running build running build_exe Traceback (most recent call last): File "C:\Users\Lenovo\Desktop\RPGTxtGame\setup.py", line 5, in cx_Freeze.setup( name =…
0
votes
0 answers

Python exe file doesnt work

I am using python 3.6 on Windows. I downloaded "cx_Freeze-4.3.3.win-amd64-py3.3" to make my "python script " to an exe file. I managed to get an exe file under build folder but it doesn't work. this is my code #script file which I named…
Ozgur
  • 162
  • 1
  • 10
0
votes
0 answers

Cx_freeze issue for converting .py file to .exe

I am trying to develop an application using the following flow: GUI made in Qt Designer using Qt 5.6.2 Conversion of the GUI file (extension .ui) to py using pyuic5 Transfer of the code in Spyder and adding a few loops in the recently converted…
CVname
  • 347
  • 3
  • 12
0
votes
1 answer

Python 3.6 quit() not working after porting to exe

I have a small tkinter gui that generates some reports. I built a quit button into it. The button works perfectly when I launch the script, but I converted it to an exe with cx_freeze and the entire program is working except the quit button. def…
Joe
  • 2,641
  • 5
  • 22
  • 43
0
votes
1 answer

Errors with cx_Freeze on Python 3.5.3

Running Python 3.5.3 and the latest cx_Freeze. When building the exe, everything runs fine. However, when I run the exe I get a dialogue message saying: # If this fails your Python may no be configured for Tk ImportError: DLL load failed: The…
a.sapp
  • 41
  • 1
  • 9
0
votes
1 answer

How to put the .pyd and subfolders of a cx_Freeze executable in a single folder separately from the executable

I have an executable built with cx_Freeze that I want to distribute. The executable file works, but it's buried in the build folder among tons of other subfolders and .pyd and .dll files, and I'd like to clean it up, ideally having only the…
0
votes
1 answer

Can't find exe files using cx_freeze

I'm new to Python and I'm running Python 3.6. Trying to build an executable using cx_freeze and the code below in a file named "setup.py". I put the python script for the program and the icon file in the python main directory folder. When I type…
0
votes
1 answer

Python cx_freeze build error

I have recently wanted to make my python script executable via cx_freeze. I tried python 3.5 and 3.6 same error... As error I get module.run() in stratup.py line 14 and in line 26 exec(code, m,dict)in console.py (both scripts belongs to…
0
votes
0 answers

Executable created with cx_freeze not working

I have a python GUI program created with PyQt5 which I am trying to freeze into a windows executable using cx_freeze. The build works fine but the program returns a host of errors when I try to run the executable. Below is my setup.py from cx_Freeze…
djangbahevans
  • 153
  • 1
  • 2
  • 6
0
votes
0 answers

Error when trying to execute a python script using py2exe

I tried many ways to make my code executable and I tried (pypinstaller,py2exe,cx_Freeze) without any results, therefore I focused on py2exe and I solved almost all errors which I faced while using this way, but the last error as I attached below is…
0
votes
1 answer

python - Include other python files in cx_Freeze

I am using cx_Freeze to convert my script to executable. My problem is, the cx_Freeze only executing my main.py and not executing my other .py file that are called by my main.py. How can I include my other python files? I'm new to cx_Freeze so I…
Usagi
  • 25
  • 1
  • 13
0
votes
0 answers

How to make PyGame executable not depend on Python?

I've been working on a game for the past couple of days and I finally finished the step of converting it to an executable with cx_Freeze. I asked one of my friends to test it out to see if it worked on non-python computers, he attempted to run it…
Acapla
  • 33
  • 4
0
votes
2 answers

cx_Freeze Import Error: DLL load failed: The specified module could not be found

I wrote a basic program to keep track of customer names, vehicles, mileage, and date, and it also has an option for the user to choose to see a company logo that I drew using the turtle module. Then I used cx_freeze to freeze it as an executable,…
hdaugh90
  • 19
  • 4