cx-freeze, runpy and multiprocessing – multiple paths to failure

I used cx_freeze for a project at work. I’m not sure if this is your problem… but I was using the Anaconda distribution, and cx_freeze was not properly gathering the .dll’s that I needed for my project. The solution was to: Install a plane version of Python make an environment with the packages that I … Read more

This application failed to start because it could not find or load the Qt platform plugin “cocoa”

When building an app with cx_Freeze on MacOSX all dependent libraries (.so files on MacOSX) are packaged into the application bundle. It is this that makes the application portable to other systems, without requiring a second install of Qt. When launching the Application, the libraries should therefore be loaded from within the bundle. However, in … Read more

How do I use cx_freeze?

Add import sys as the new topline You misspelled “executables” on the last line. Remove script = on last line. The code should now look like: import sys from cx_Freeze import setup, Executable setup( name = “On Dijkstra’s Algorithm”, version = “3.1”, description = “A Dijkstra’s Algorithm help tool.”, executables = [Executable(“Main.py”, base = “Win32GUI”)]) … Read more

KeyError: ‘TCL_Library’ when I use cx_Freeze

You can work around this error by setting the environment variables manually: set TCL_LIBRARY=C:\Program Files\Python35-32\tcl\tcl8.6 set TK_LIBRARY=C:\Program Files\Python35-32\tcl\tk8.6 You can also do that in the setup.py script: os.environ[‘TCL_LIBRARY’] = r’C:\Program Files\Python35-32\tcl\tcl8.6′ os.environ[‘TK_LIBRARY’] = r’C:\Program Files\Python35-32\tcl\tk8.6′ setup([..]) But I found that actually running the program doesn’t work. On the cx_freeze mailinglist it was mentioned: I have … Read more

How can I bundle other files when using cx_freeze?

Figured it out. from cx_Freeze import setup,Executable includefiles = [‘README.txt’, ‘CHANGELOG.txt’, ‘helpers\uncompress\unRAR.exe’, , ‘helpers\uncompress\unzip.exe’] includes = [] excludes = [‘Tkinter’] packages = [‘do’,’khh’] setup( name=”myapp”, version = ‘0.1’, description = ‘A general enhancement utility’, author=”lenin”, author_email=”le…@null.com”, options = {‘build_exe’: {‘includes’:includes,’excludes’:excludes,’packages’:packages,’include_files’:includefiles}}, executables = [Executable(‘janitor.py’)] ) Note: include_files must contain “only” relative paths to the setup.py script … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)