Download Cx_freeze For Python 3.6 =LINK=

0 views
Skip to first unread message

Brynn Cropp

unread,
Jan 21, 2024, 12:52:35 AM1/21/24
to prasoplaira

I have decided for practice purposes, I'd write a Passwordgenerator and make it an executable.
My script is running as it is intended, and the compiling works as well, but when I run the exe file, nothing happens.I run a Windows 10 system and use Python 3.6.x and I am not a beginner of python itself.

download cx_freeze for python 3.6


Download Zip ••• https://t.co/qY4jvPPQIe



It is not supported in cx_freeze. There was discussion about it on mailing list. As I recall, the author stated that others (PyInstaller, Py2Exe) use some dirty hacks to achieve that. Some anti-virus programs can consider that behavior as a virus also.

A further option under Windows is to use the bdist_msi command to create a single Microsoft Installer file (.msi) for your application, as mentioned by @QuaziRabbi. This command has few cx_Freeze-specific options documented here to customize the installer. This command overloads the bdist_msi command of the distutils package which itself brings some more options to customize the installer. The available options are not documented, one need to look at the source code of the distutils package. Interesting examples are Use cx-freeze to create an msi that adds a shortcut to the desktop and cx_freeze bdist_msi: create registry entries?

My scripts usually just have a tkinter gui that call some other python files.Very specific use cases so they aren't huge projects. Most have 2-3 python files maximum and very few imports (tkinter, sys, os).They become throwaway executables after a while.

I have read about py2exe, pyinstaller, cx_freeze but unsure of advantages, drawbacks. Ideally I just want one file someone can run and doesn't take ages to run (otherwise they could just install python and run the script, but I don't want that).

I am running a multi-page Dash app, version 1.2.0, on Python 3.9.0. Everything works fine when I run it locally on the development server (through python index.py) as well as when I run it locally on a production waitress server.

Here in my app.py, I add the stylesheet to the external_stylesheets list, and I also use the suggested cx_freeze method to locate my style.css file. I can confirm that the style.css file appears in the asset_path.

You mispelled the module's name. It is cx_freeze, not cx-freeze. BTW, I am having problems with this for some reason, although it used to work before. Anyways, this is going to work for you cause I am using a ported version of Ubuntu (Ubuntu MATE for RPi 2, for the interested).

So, this isn't convenient, but compiling python3 from source code would allow you to install cx_freeze via pip. You could use something like checkinstall to replace your system version of python3 for convenient uninstallation and versioning.

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 just created an exe with cx_Freeze and proudly handed it over to a co-worker.....and it promptly crashed ("The application was unable to start correctly") I was curious to know if he must have python already installed and ready to go when he runs my exe or if it is something else that I should be worried about. (If that is the case, I will do some more research)

I have coded a tiny python program using PyQt4. Now, I want to use cx_Freeze to create a standalone application. Everything works fine - cx_Freeze includes automatically all necessary modules; the resulting exe works.

These files have no file extensions, but appear to be Python scripts. When you run python.exe cxfreeze-postinstall from the command prompt, two batch files are being created in the Python scripts directory:

Make sure the Version of Python is correct, if you have more than one version on your computer, just simply type "python" in console to check the version of your python. I just had this problem earlier.

I have a python script which gets an image from the internet, downloads it, sets as desktop background and updates after on minute. The problem is most likely cx_Freeze not including the os module, as the same code with absolute paths works fine. My code also works perfectly, until it goes through freezing. It works before it is frozen when I load throught the console, run from IDLE or double-click on it. Whenever i run the frozen file I get the error (If i use setup.py or cxfreeze file.py:

I then rolled back python to 3.6-32bit and everything worked flawlessly, just a heads up to whoever else gets this, unless you can get cx_freeze 6.0 installed it may be easier to rollback to python3.6 (or make a virtualenv of it).

I am trying to convert a python game (made with pygame) into a exe file for windows, and I did using cx_Freeze. No problems there.
The thing is that when I launch myGame.exe, it opens the normal Pygame window and a console window(which I do not want).

I've been at this the whole day now and I'm about throw my computer out the window. I made a UI using tkinter, matplotlib and PIL. If I run the code this works perfectly, however when freezing using cx_freeze, I get the following when doing python setup.py build:

And as I said above it works fine. Is there a way ta manually do the import or something similar? I've read on many websites that cx_freeze has issues sometimes importing some dependencies of some modules.

Solution:I found a similar error on StackOverflow, and the OP seemed to have found a solution to his own problem. He said that he incorrectly used pip install on a version of a package he was installing, and it made the package download as a .egg file, which seems to cause problems with cx_freeze. Might not be the solution, but it's worth checking out in terms of troubleshooting.

Hey am relatively new to compiling python scripts to exe. Im using cx_freeze to compile my scripts and once its built i run the exe and it gives me this error. Have google around alot but not too sure. Error is:

Sometimes the TSM Desktop application install can be corrupted, the easiest way to resolve this cx_freeze error is to uninstall the application, download a fresh installer and then re-install the application.

Download the application:

You may also need to use the alternative download link, instead.

Basically, what these converters do is take your py script, place the py installation and necessary 3rd party modules near your py script, and when you launch that resulted EXE, the exe calls python.exe with your script.

However, you still need to distribute your exe somehow, and that is where CX_FREEZE comes into play. Not only cx_freeze converts your py script into an exe, you have the option to create an MSI which you can give your users to install.

PyInstaller is a tool to convert regularpython scripts to standalone executables. The standard packaging producesa tiny executable and a custom directory structure to host dynamic librariesand Python code (zipped compiled bytecode).

Like other tools in the produce executables space, cx_Freeze packagesPython traditionally. On Windows, this entails shipping a pythonXY.dll.cx_Freeze will also package dependent libraries found by binaries youare shipping. This introduces portability problems, especially on Linux.

In this program we importing pythonCX_Freeze setup and executable. Next we call setup() function with 4 parameters. First parameter name, this is the name of the program that we want to execute, second is version, this is the version number to give it, description if we want then we write necessary line otherwise blank it and last one is executable function with one parameter.

Now given a build directory and within this directory we find another directory and within that directory we find our executable. If every step is done correctly then it should parse the search result of basic form on python.com and display result for 20 seconds before closing.

Second, cx_freeze is rather tricky. cxfreeze game.py might not be enough to get a working executable. It is a far better practice to set up a setup.py file. See the source code of the Fabula setup file as an example:

I have removed cx_freeze and tried to re-install it, this time however, in the "select the location where cx_freeze should be installed" part of the installation I selected python from registry (which is all I did before) and also selected "python from another location" (and choose my C:\python32\ directory). Then I got this error:

So, when you type in "python setup.py build" to cmd, what it tries to do is look for python.exe in the folder you are in, and if it doesn't find it there then looks to system paths (which you can access with the command "echo %PATH%").

So it looks there, it finds python and runs it - but python doesn't have cx_Freeze. Why? Because the python in the system path is an older version you have!! For me it was 2.6.5, despite me using 3.3. And this older version naturally didn't have cx_Freeze in it because I installed it to 3.3. This also explains why trying "import cx_Freeze" in IDLE works without problems.

This will allow you to then run the pip command for python package installation as it will be installed with the system python. I also recommend once you have pip using the virtualenv package and pattern. :)

df19127ead
Reply all
Reply to author
Forward
0 new messages