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

Cannot fix pywintypes.error: (2, 'BeginUpdateResource', 'The system cannot find the file specified.')

I am trying to build an .exe file of my Python application. I have tried various ways to create a setup file from both Github and Stackoverflow and I keep getting this same error: pywintypes.error: (2, 'BeginUpdateResource', 'The system cannot find…
RedCode
  • 363
  • 1
  • 6
  • 23
0
votes
1 answer

How to prevent Python build from failing

I am trying to build a basic Python tkinter application I developed. When I try building the application with cx_freeze via the command prompt, I get the following error output: C:\Users\RedCode\PycharmProjects\DatabaseExample>python setup.py…
RedCode
  • 363
  • 1
  • 6
  • 23
0
votes
0 answers

My script closed if I used cx_Freeze with python to convert py file to exe

Welcome all, I'm using Python 2.7 and cx_Freeze and when I got executed file and when I try to run it, it open a cmd for a sec and closed directly. the code of the main script is : import time import xlrd import xlsxwriter from openpyxl import…
0
votes
0 answers

Missing required dependencies when running from CMD

My problem is as follows. I'm trying to package a python script a wrote to run on other computers with CX_freeze. After some fiddling I got the script packaged but when I went to run the code I got: Miless-foobar-Pro:~ milesconn$…
MilesConn
  • 301
  • 2
  • 13
0
votes
1 answer

Best way to convert a .py file written in Python 3.6 to an .exe?

I have a program that I've written in Python 3.6 and I'd like to convert it to an .exe so I can distribute it without the requirement of Python or any of the modules I use in the code. Most methods I've seen do not support Python 3.6, which is why…
Foxes
  • 1,137
  • 3
  • 10
  • 19
0
votes
2 answers

Building error with setuptools: RuntimeError

I've been using cxFreeze to build my Python code for some time and had no issue, until today. I'm not sure the problem comes from cxFreeze, though. Although there are some RuntimeError exceptions on the web, they don't exactly match what I…
vincent-lg
  • 539
  • 7
  • 15
0
votes
0 answers

cx_Freeze not importing python file

Problem My problem is that i'm trying to use cx_Freeze to make an exe for my program, so I ran python setup.py build, and the build went successfully, but when I went to run main.exe, it gave me an error saying there is no module named text. My…
user8016859
0
votes
0 answers

Python2.7 cx_Freeze missing module Controller

When I execute the exe file created with cs_Freeze, i have this error : Missing modules: ? Controleur imported from main__main__ ? _emx_link imported from os ? ce imported from os ? fcntl imported from subprocess ? org.python.core imported from…
0
votes
1 answer

openSuse and cx_Freeze 4.3.3 : ImportError: libwx_gtk2u_adv-suse.so.1: No such file or directory

I'm trying to create a binary file with cx_Freeze 4.3.3 on openSuse 42.1 (I use wxPython3.0), but on an empty openSuse system, I can't run my program... here is my setup.py file : #!/usr/bin/python # -*- coding: utf-8 -*- import sys from cx_Freeze…
Kredge
  • 9
  • 1
  • 1
  • 4
0
votes
1 answer

cx_Freeze with Tkinter

I'm a french so sorry for my english. I actually create a Python 3.6.1 program that use tkinter, paramiko, telnetlib and many other, and I want to create an exe with cx_Freeze. With a "Hello World" program it success, but when I try with just…
Rafiki
  • 1
  • 2
0
votes
1 answer

cx_Freeze Build of Tkinter Application Extremely Buggy

I recently created a small game using tkinter (python version 3.6.1) and froze it using cx_Freeze. The game has four buttons: an undo button, a restart button, a "find legal moves" button, and a "find best move button". The "find best move" button…
Isaac Saffold
  • 1,116
  • 1
  • 11
  • 20
0
votes
1 answer

Import file cx_Freeze

I have a problem, everytime I use python setup.py build, it doesn't import the all files, like ws.ini, tcl.dll, tk.dll and etc. And whitout this files my app.exe doesn't work. I tried to copy and paste these files and the application works normally,…
0
votes
0 answers

cx freeze module not correctly installed

so i have a python file that imports another python file to run it. works perfectly. Then i would want to convert it to an exe file. after serveral attempts i got it to run and call in its packages as an import another python file that only does a…
maxsieg
  • 25
  • 3
0
votes
1 answer

cx_Freeze: Python error in main script(_tkinter.TclError)

I am using python 3.4 Trying to build an exe for win_xp using cx_freeze. Developed the script and build on win 7. Tested there, working fine. But when I try to run the exe in win xp, it throws following during execution. Tried Googling but cound…
Rendevou
  • 33
  • 7
0
votes
1 answer

Problems with Cx_freeze

If I'm actually asking you for help, it's because I spend many hours for nothing into trying to fix my problem: I would like to compile my python script into .exe: (I am using Python 32 bits 3.1.4 and pygame) I have 4 files: Class.pyc,…
Hawk Eyes
  • 3
  • 3