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
1 answer

Getting pyinstaller .exe program to run from clicking file?

I have a command line based program that I've turned into an executable using PyInstaller. I would like the program to launch a command prompt and run when clicked. Currently I can only get it to run from the command prompt. When I click it, a blank…
Brandon Force
  • 73
  • 1
  • 8
0
votes
2 answers

CxFreeze changes default encoding back to ascii

When I run a script as is, and freezes it with cxFreze, I got encoding errors. After looking into it, the problem is that cxFreeze seems to go back to the 'ascii' encoding, although Python uses 'utf-8' as default. Here's the simple script that I…
vincent-lg
  • 539
  • 7
  • 15
0
votes
0 answers

Python3 cx_Freeze error 'no module named gi'

I am trying to use cx_Freeze with a python3 programme I have written which uses Gtk. I ran cxfreeze-quickstart and then python setup.py build using the setup.py file created for me. However, I got this error: ImportError: No module named 'gi'. This…
Fliss
  • 45
  • 2
  • 11
0
votes
1 answer

Executable generated with cx_freeze opens for an instant before closing

So I made an executable of my python script using cx_freeze but when I open it the window only stays for a fraction of a second before disappearing. I opened it directly with cmd and this is the error it displayed: Traceback (most recent call…
0
votes
1 answer

AttributeError: 'NoneType' object has no attribute 'split'?

I am trying to make a script executable with py2exe. Here is my setup.py code: import cx_Freeze executables = [cx_Freeze.Executable("Email.py")] cx_Freeze.setup( name="Email", options={"build_exe": {"packages":["pygame"], …
White Shadow
  • 444
  • 2
  • 10
  • 26
0
votes
1 answer

Python: Can't run Python executable file created by cx_freeze (with text file)

I have written a Python program to take the backup of all objects of MySQL db individually. The program works fine when run on my machine, but when I use cx_freeze to create an executable file, it fails to run on the other machine. I found the cause…
Abhishek B
  • 37
  • 11
0
votes
0 answers

.exe doesn't do anything after using cx_Freeze to make PyQt app executable

I have big GUIapp which contains lot of libraries such us PyQT4, matplotlib, pandas and etc... I've used cx_Freeze to make it to make it executable and everything went smoothly. After opening .exe it just doesn't do anything. pls see my setup.py…
Arman Avetisyan
  • 349
  • 2
  • 10
0
votes
1 answer

"UserWarning: Duplicate name"- when trying to make .exe with cx_Freeze

I'm trying to convert a python script to executable Setup: Windows 7 Enterprise 64-bit WinPython-64bit-3.5.2.3Qt5 (Python 3.5.2 64-bit cx_Freeze v. 4.3.4 (came with winPython) File to be converted as exe: matplotlib_eg.py (an example file), from…
Niko Föhr
  • 28,336
  • 10
  • 93
  • 96
0
votes
0 answers

python 2.7 import scipy

I create an excutable with cx_Freeze import sys from cx_Freeze import setup, Executable import scipy import os base = None build_exe_options = {"packages": ["os","sys"], "includes": ["pandas","sys"]} setup( name =…
mouride touba
  • 55
  • 1
  • 4
0
votes
1 answer

python cx_freeze problem ascil

I want to make EXE file by use py2exe or cx_freeze. so I was try to make exe file with py2exe but no luck. so now I was test with cx_freeze but it also failed. if anyone can help me much apprecaite following is setup.py file in cx_freeze from…
paul
  • 327
  • 1
  • 7
  • 24
0
votes
2 answers

Exporting Python 3.5 and Tkinter to EXE or MSI

I'm using Python 3.5 and would like to export my python code for me to send to others who do not have Python installed. Thing is Pyinstaller doesn't work as I get this error: CX_Freeze also doesn't work for me either as Tkinter still presents a…
King
  • 827
  • 2
  • 10
  • 20
0
votes
1 answer

cxFreeze and Jaraco: ImportError

I'm trying to create an IRC client using the irclib library. When I try to freeze the script using cxFreeze, however, I always run into that error: Traceback (most recent call last): File…
vincent-lg
  • 539
  • 7
  • 15
0
votes
1 answer

cx_Freeze: no base named Console

I am trying to compile a simple "Hello, world!" python script using cx_freeze (linux). I installed cx-freeze via the SourceForge tar file, because I had to apply this patch. However, when I run: cx_Freeze-4.3.3$ ./cxfreeze hello.py Traceback (most…
asc11
  • 419
  • 3
  • 7
0
votes
0 answers

cx_freeze executable runs from cmd but not on click

After dealing with all .egg issues with cx_freeze, I'm having issues running the .exe on click or from .bat. If I run the .exe from cmd, it runs perfectly. But if I click on the .exe, I get a popup list of errors that goes off the page. I've…
j.do
  • 21
  • 4
0
votes
1 answer

cx_Freeze - Building exe - Windows 64bit - Invalid Syntax

Trying to build a exe file but am having an error I don't understand. I followed a tutorial so unless it had bad instructions I don't see what is wrong. cmd print screen -Code- import cx_Freeze executables = [cx_Freeze.Executable('Wedgie la…