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

cx_Freeze with PyQt5 and Threading

If I run the thread_test.py code below, my function in the thread runs fine. However, if I compile it with cx_Freeze, then it gets hung up at the call to glob. It doesn't give an error and the gui remains responsive, but the thread just seems to…
Scott B
  • 2,542
  • 7
  • 30
  • 44
0
votes
0 answers

Python: how to stop a program using sqlite3 crashing when freezing with cx_Freeze?

I'm working on a project which implements sqlite databases from Python 3.6. It works fine when the script is run from the editor, but when I freeze it using cx_Freeze, the executable crashes immediately. It appears to be the line 'import sqlite3'…
0
votes
2 answers

cx_freeze - unable to import openpyxl

I am using cx_freeze to create a .exe file which accesses the openpyxl module. However when the application tries to import openpyxl it crashes, telling: "Python stopped working" It seems to be some kind of bug with cx_freeze, so far I haven't found…
Bjango
  • 333
  • 5
  • 15
0
votes
1 answer

Create and update SQLite db from python .exe-file (using cx_Freeze)

Greetings! This is my first question here, after having used the forum for several years. I will do my best to follow the guidelines, please comment with improvement suggestions to my question. My program gathers info from the steamspy.com API in…
0
votes
1 answer

Converting .py file to exe with cx_Freeze

It was converting my .py file to .exe file perfectly fine before, but somehow now it is showing the following errors: WARNING: Tried to load multiple incompatible Qt wrappers. Some incorrect files may be copied. Traceback (most recent call…
Aadit
  • 199
  • 1
  • 6
  • 17
0
votes
3 answers

i am using cx_freeze to build a executable of py file with pyqt5. Following is the error

I am new to software development and I am using cx_freeze to make an executable file of a hello.py python file which is using PyQt5 module. The following error occurs repeatedly. I am using python 3.6 and PyQt5 as stated. AttributeError: module…
Akash Kumar
  • 81
  • 1
  • 1
  • 10
0
votes
1 answer

I used cx_freeze to generate Python executable files. But execute files only flashed

Later I experimented with a simple python program with no import,which use same way to generate executable program,and It can use def sum(a,b): sum1 = a + b return sum1 a = int(input('please enter a number')) b = int(input('please enter…
0
votes
1 answer

How do I convert my code from python3.6 to exe using cxfreeze?

NOTE: Before marking this as duplicate please read the whole post first I'm trying for hours to convert my python 3.6 code to exe, I've searched everywhere and tried everything, the most helpful place was there: Best method of converting .py to .exe…
0
votes
0 answers

Cause of cx_Freeze "internal objdump command failed" error in OSX Sierra?

I'm trying to build a project using cx_Freeze. The project builds, but crashes whenever I open it. During the build I'm getting this error... fatal error:…
Emily
  • 2,129
  • 3
  • 18
  • 43
0
votes
0 answers

Kill process after running

I generate an executable from python script with cxfreeze. It works correctly, but when the running is finished the process continue to live, in fact for example I cannot delete the folder that contains the exe. How can I stop the program after…
user7331766
  • 91
  • 2
  • 11
0
votes
1 answer

Application Rapidly Opens and Closes Multiple Consoles Before Opening (PyQt5, Cx_Freeze & Py2Exe)

I'm attempting to freeze my Python application and have been running into the same problem when using both Cx_Freeze and Py2Exe. Once I've built/frozen the code I start up the executable and rapidly about a half dozen consoles flash (open and close…
aoh
  • 1,090
  • 2
  • 13
  • 25
0
votes
1 answer

Using cx_Freeze to create executable (cannot import _tkinter, DLL load failed)

I am trying to create an executable from my Python project using cx_Freeze, but keep running into this error: Here's my setup.py: import cx_Freeze import os, sys os.environ['TCL_LIBRARY'] =…
o.o
  • 3,563
  • 9
  • 42
  • 71
0
votes
1 answer

Error converting .py file to .exe file using cx_Freeze

I have a .py file that i want to convert in .exe file. I used cx_Freeze for converting that. But after converting when i'm trying to run the .exe file it shows following error- H:\Python\Practice\Download Bollywood Song\build\exe.win32-3.5>cmd /K…
MD. Khairul Basar
  • 4,976
  • 14
  • 41
  • 59
0
votes
1 answer

Strange cx_Freeze Error

I am creating a application with Python and cx_Freeze. The program itself works great, doing what it is supposed to, but the setup script won't work very well. The setup script is here-- from cx_Freeze import setup, Executable import sys,…
Lumater
  • 23
  • 5
0
votes
1 answer

cx_freeze AttributeError: module 'dis' has no attribute '_unpack_opargs'

I have been trying for quite some time now to make my Python program run on pc's that don't have python installed. I have issues because I'm using python 3.6.0. In this post I am going to discuss a method I got from this video. The first thing I…
I. Wewib
  • 333
  • 1
  • 3
  • 9