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

cx_Freeze encodings for creating macOS application

I am trying to create a standalone Python3 macOS application including tkinter and selenium by using cx_Freeze. There are three files in my project: tkinter_tab3.py (contains GUI) user.txt (contains user info) ver004.py (called from…
Julian Rachman
  • 575
  • 3
  • 15
8
votes
3 answers

cx_Freeze - The appdirs package is required

I`m trying to convert a .py script to an .exe cx_Freeze compiles the exe succesfully. However when I run the exe file it throws this error: ImportError: The 'appdirs' package is required; normally this is bundled with this package so if you get…
jortiexx
  • 217
  • 2
  • 8
8
votes
1 answer

cx_freeze and single-file eggs

I'm trying to use cx_freeze on Windows 7 with a python2.7 distutils script, and it seems to get tripped up on 2 packages: rsa & pyasn1: error: [Error 3] The system cannot find the path…
Scott Hunter
  • 48,888
  • 12
  • 60
  • 101
8
votes
1 answer

PyInstaller: “ImportError: No module named htmlentitydefs”

I made the executable with pyinstaller like this (no --onefile or other options) > pyinstaller brdg2.py When i run it, here's what i get (screenshot of the command prompt before it closed). From other threads, the warning at the start seem to be…
sewdio
  • 113
  • 1
  • 5
8
votes
0 answers

What does the "__LINKEDIT segment does not cover the end of the file" mean?

What does the __LINKEDIT segment does not cover the end of the file mean? I am currently bundling an application on OSX and keep running into this error when actioning my python application which has been built using CX_Freeze. I am also getting…
Matt Seymour
  • 8,880
  • 7
  • 60
  • 101
8
votes
3 answers

how to use cx_freeze in linux to create a package to be used in windows

how to use cx_freeze in linux to create a one package to be used in windows like .exe or .bin file. I tested cx_freeze in linux but that make package for linux and in windows is unknown. for example : $ cxfreeze gui.py and this is file that maked…
alireza
  • 1,173
  • 4
  • 19
  • 40
8
votes
2 answers

using cx_freeze on flask app

I am using Flask to develop a python app. At the moment, I want this app to be run locally. It runs locally fine through python, but when I use cx_freeze to turn it into an exe for Windows, I can no longer use the Flask.render_template() method. The…
Sixhobbits
  • 1,508
  • 3
  • 17
  • 26
7
votes
1 answer

Distributing python on Mac, Linux, and Windows using cx_freeze: can I generate all apps from one platform?

I'm setting up a scripted build of a cross-platform python app (Python 3) and I'd like to create all the distributables from linux. Is that possible?
Drew
  • 12,578
  • 11
  • 58
  • 98
7
votes
0 answers

Cx_freeze fails when trying to add an Icon: [WinError 2] The system cannot find the file specified

This is a very interesting problem, I was attempting to add an icon to my cx_freeze executable but whenever I do it crashes, Note: I'm running windows 10 and using python 3.8.2 My setup.py file is as follows: from cx_Freeze import setup, Executable…
7
votes
1 answer

Ubuntu, cx_Freeze and multiprocessing.Manager() conflict in case "spawn" type processes

Env: Ubuntu - 18.04 Python - 3.6.6 cx_Freeze - 6.1 Code: Simple main_script.py file (example in repository - https://github.com/Yuriy-Leonov/cython_multiprocessing_issue ) import multiprocessing if __name__ == '__main__': print("step-1") …
Yuriy Leonov
  • 536
  • 1
  • 9
  • 33
7
votes
1 answer

How to create a msi by using cx_freeze which will accept command line input

let's say I have an msi "foo.msi" If I want to pass an option like foo.msi
Rohan Nagalkar
  • 433
  • 2
  • 5
  • 15
7
votes
1 answer

cxfreeze aiohttp cannot import compat

I'm trying to use cx_freeze to build a binary dist for an web application written in Python 3 using the aiohttp package. Basically I did: cxfreeze server.py and got a dist output But when running the ./server binary, I got the following message: …
lang2
  • 11,433
  • 18
  • 83
  • 133
7
votes
2 answers

Python 2.7 Cx_Freeze: ImportError: No module named __startup__

I am trying to compile a hello world program in Python into a stand-alone binary/package on Linux using cx_Freeze. When cx_Freeze is run, it completes without an error but when I attempt to run the generated executable, I am given the…
Tomas Regnier
  • 71
  • 1
  • 2
7
votes
4 answers

ImportError: No module named 'queue' while running my app freezed with cx_freeze

I am using python 3.4. I am able to run my python script without any problem. But While running my freezed python script , following error have appeared. I am able to freeze my script successfully too with cx_freeze. C:\Program Files…
user2678648
  • 157
  • 1
  • 1
  • 9
7
votes
2 answers

Scipy and CX_freeze - Error importing scipy: you cannot import scipy while being in scipy source directory

I'm having trouble compiling an exe while using cx_freeze and scipy. In particular, my script uses from scipy.interpolate import griddata The build process seems to complete successfully, however when I try to run the compiled exe, I get the…
Praxis
  • 934
  • 2
  • 17
  • 31