cx-freeze

Converting GUI-application into .exe-file with cx_Freeze: no plugin found for toolkit qt4

≡放荡痞女 提交于 2019-12-05 18:53:04
My program contains mayavi, traits and pyqt5 elements in order to visualize something in 3D. I tried to convert my GUI-Application with cx_Freeze and it created the exe-file ,but running it I got the error: no traitsui.toolkits plugin found for toolkit qt4 After some google and stackoverflow research I figured out that it might has something to do with my environment: see creating standalone exe using pyinstaller with mayavi import According to the suggestions in further google research I added these lines to the top of my code: import imp try: imp.find_module('pyside') # test if PySide if

Failed to build stand-alone application on Mac OS X Yosemite (10.10) with cx_Freeze

断了今生、忘了曾经 提交于 2019-12-05 18:48:06
I tried to build an application with cx_Freeze 4.3.1 on Mac OS X Yosemite 10.10 but it didn't worked. I use python version 2.7 and use Tkinter as my GUI for development. If I use python setup.py bdist_mac on the terminal, the build process fail with the following error message: [Errno2]/Library/Frameworks/Tcl.framework/versions/8.5/TCL no such file or directory The newest version (8.5) of Tcl/Tk is already installed. My setup file looks like this: from cx_Freeze import setup, Executable build_exe_options = { "includes": [], "packages": [], 'excludes' : ['collections.abc', 'urllib.sys'],

Package conflict when installing cx_freeze on anaconda

拜拜、爱过 提交于 2019-12-05 14:09:59
I am trying to install the cx_freeze using anaconda prompt. Following what's on their website, I used: conda install -c pyzo cx_freeze I get this error: UnsatisfiableError: The following specifications were found to be in conflict: - cx_freeze - wincertstore Use "conda info <package>" to see the dependencies for each package. Does anyone know how I have to deal with dependencies here? Thanks. So as of now, simply using pip worked for me. I opened the conda prompt and used the following: pip install cx_freeze 来源: https://stackoverflow.com/questions/50801992/package-conflict-when-installing-cx

How to create .EXE file in python using cx_freeze

本小妞迷上赌 提交于 2019-12-05 12:46:34
I have one application developed in python 3.2, which has inbuilt modules(ex: Tkinter, matplotlib, openpyxl), user defined modules & classes(ex: draw_graph, generate_report), icon files, log file, .csv, .docx etc. I am running this application from script(ex: testapplication.py) I have setup file as import sys from cx_Freeze import setup, Executable exe = Executable( script=r"C:\Python32\testapplication.py", base="Win32GUI", ) setup( name = "TESTApp", version = "0.1", description = "An example", executables = [exe] ) Now I want to create a exe file of this application. can anyone please

cxfreeze aiohttp cannot import compat

女生的网名这么多〃 提交于 2019-12-05 06:52:10
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: File "/usr/local/lib/python3.5/dist-packages/cx_Freeze/initscripts/__startup__.py", line 12, in <module> __import__(name + "__init__") File "/usr/local/lib/python3.5/dist-packages/cx_Freeze/initscripts/Console.py", line 24, in <module> exec(code, m.__dict__) File "server.py", line 1, in <module> File "/usr/local/lib/python3.5/dist-packages/aiohttp/_

Python3 + PyGobject + GTK3 and cx_freeze missing DLLs

北城以北 提交于 2019-12-05 03:43:07
问题 When I make a exe from py python3 + pygobject + gtk3 application using the setup.py from pygobject site it misses some DLL files. what files are missing? 回答1: I have manualy tried what DLLs are required. So if this will help someone: the setup.py must be edited. the missing_dlls list must be: missing_dll = ['libgtk-3-0.dll', 'libgdk-3-0.dll', 'libatk-1.0-0.dll', 'libcairo-2.dll', 'libcairo-gobject-2.dll', 'libgdk_pixbuf-2.0-0.dll', 'libjpeg-8.dll', 'libpango-1.0-0.dll', 'libpangocairo-1.0-0

Python pygame exe build with cx_freeze TCL_LIBRARY error

强颜欢笑 提交于 2019-12-05 00:48:07
问题 I'm following this tutorial here to make a snakegame in pygame. Here is my setup.py code: import cx_Freeze executables = [cx_Freeze.Executable("snake.py")] cx_Freeze.setup( name="Snake", options={"build_exe":{"packages":["pygame"], "include_files":["apple.png","Aenemy.png","bomb.png","cherry.png","enemy.png","fire.png","iceimg.png","snakebod(2).png","snakebod.png","Explosion.wav","Explosion2.wav","jump.wav","Pickup_Coin.wav","Powerup.wav","openingsong.mp3","highscores.txt",]}}, description =

cx_freeze “zlib not avaiable” error when using multiple threads

房东的猫 提交于 2019-12-05 00:09:42
问题 I have a Python application which works perfectly when run through the standard interpreter, but not when frozen with cx_freeze . My application makes use of the python Threading module, and typically has around 5 components running, each of which can be individually enabled / disabled in its configuration, and each running in their own individual thread. With 1 or 2 components enabled, no issue. However, when 3 or more components are enabled, I see the following error message for all or

Having problems with making an .exe with cx_freeze with python and pygame, including additional files

孤街醉人 提交于 2019-12-04 21:16:06
I'm having trouble creating an .exe file with cx_Freeze. I'm trying to use this Pygame game which needs some .png's, .gif's and .ogg's to run. I have tried to compile a simple Python only (no pygame or additional files) using the commmand line and a setup.py, but neither worked and I'm a bit out of my death. I have installed cx_Freeze and checked it worked with ''import cx_freeze' in the IDLE not throwing an error. I'm using Python 3.3 on Windows 7 with the correct versions of pygame and cx_freeze for my python version. Can anyone assist me in creating this .exe? To include files in your .exe

AttributeError: module 'dis' has no attribute '_unpack_opargs' While Building Python 3.6 executable using CX_FREEZE

放肆的年华 提交于 2019-12-04 16:17:58
I have been trying to Convert my Python 3.6 Programs into.EXE. When I build using cx_Freeze. It generates the following error. (See Log Below) I was earlier working with Kivy Module but after the build failed repeatedly I tried it with simple Hello World Program still, It failed. My setup file contains from cx_Freeze import setup, Executable import statement, When I build through python setup.py build It generates this log. F:\Python\test>python setup.py build running build running build_exe Traceback (most recent call last): File "setup.py", line 7, in executables = [Executable('hello.py')])