FAQ Database Discussion Community


Setting the mac task bar menu with pyqt4 and then applying cx_freeze

python,osx,pyqt4,python-3.4,cx-freeze
I have a gui that has a mac task bar menu, see below: The first 3 items on the menu were created using QtDesigner and their sub items and actions connect fine. I created the extra "file" dynamically to see if this would fix the problem. This menu appears exactly...

Cx_freeze exe failing to completely import docx

python,python-3.x,cx-freeze,python-docx
I have a pretty hefty python script that I'm trying to cx_freeze, however when I run the executable file I keep getting the same error and it appears to be related to the docx module. I'm using Python 3.3.5 with docx 0.7.6-py33 on a Windows 8.1 machine. This is my...

Python file (.py) converted to .exe fails to execute (Python 3.4 + cx_Freeze)

python,python-3.x,cmd,cx-freeze
I converted simple "Hello world ... press enter" script, and converted it to .exe using cx_Freeze module. It runs fine. When i tried to convert littlebit complex script and run it, I got problem. The script it self runs perfect but .exe wouldn't work. symptom: .exe starts, command line flashes...

Packaged python .app file crashing, but packaged python .sh file working fine

python,osx,pyqt4,cx-freeze
I've produced an app using Python 3.4.3, Pyqt4 and some other extras (Poppler being among them) on OS X Yosemite. I'm using cx_freeze to produce a working .app file and eventually, a working msi file. I've been testing the app works properly after building it using the build command as...

Running a packaged Python program in Ubuntu

python,wxpython,cx-freeze,dpkg
I have written a python program and cx_freeze it so that it can be moved to other Linux machine to execute, everything went fine, except the following After freezing all my python code, I then dpkg build it and marked /usr/bin/myProgram as my installation directory, everything went fine, I can...

creating multiple .exe files using CX_freeze

python,converter,cx-freeze
I've been working on a little project and I want to convert the files to an executable. the files below are the files that need be included. Btn1 Btn2 Btn3 ... Scn1 Scn2 Snc3 ... Button.py ConSetup.py Lable.py PicBox.py Scenes.py SimpleGui.py TextBoxes.py I'm not sure if they all need to...

Error while opening the exe file built by cx_freeze

python,python-3.x,matplotlib,pyqt,cx-freeze
I wrote a program using PyQt5, matplotlib, numpy, scipy, nmrglue and managed to build it into exe file with cx_freeze. Here is my setup.py: from cx_Freeze import setup, Executable setup(name= 'NmrAnalysis', version = '1.0', description = 'Analysis System by iceorange', executables = [Executable('MainWindow.py')]) When I execute MainWindow.exe, it says: E:\PycharmProjects\NmrAnalysis\build\exe.win-amd64-3.4>MainWindow.exe...

Python cx_freeze 4.3.4: Setting targetName causes errors

python,python-2.7,distutils,cx-freeze
I am very new to cx_freeze and I am trying to understand it a bit better, I have this setup.py file: import sys from cx_Freeze import setup, Executable # Dependencies are automatically detected, but it might need fine tuning. build_exe_options = {"packages": ["os"], "excludes": ["tkinter"]} setup( name = "guifoo", version...

Fatal Python error when trying to run an executable Python script

python,python-3.4,cx-freeze
I have a Python script that I have turned into an executable using cx-freeze-4.3.4.win32-py3.4. I have Python 3.4 installed on a Windows 7 64-bit machine. Here is my simple setup.py file: from cx_Freeze import setup, Executable setup( name = "myfilename" , version = "0.1" , description = "This is my...

Error importing PIL when using cx_freeze

python,python-3.x,python-imaging-library,cx-freeze
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: c:\Python33>python setup.py...

Create an exe with Python 3.4 using cx_Freeze

python,python-3.4,cx-freeze
I have found two other articles about this problem on Stack Exchange but none of them has a clear answer: is it possible to create a .exe of a Python 3.4 script? The only solution I found was to use cx_Freeze. I used it, and it indeed created an executable...

How do I get compiled python(with cxFreeze) to get the current working directory as the directory where the executable is in?

python,pygame,cx-freeze
I am working on a mac and I am writing a game in python and pygame that needs some sound files to be present in the same directory where the source code is. The thing is it works when I run the source code through the python interpreter. It doesn't...

Extract python script from exe generated with cx_Freeze

python,exe,cx-freeze
Is it possible to get .py text file from .exe file generated with cx_Freeze? If yes, how can I prevent it when I generate exe? I don't want that somebody see my python code. Of course anybody will have access to bytecode, but it much harder to disasemblate it.

How do i convert my Python script (that has imported modules) to a windows exe?

python,py2exe,cx-freeze
Here are the import modules that my script uses : import datetime from dateutil import parser from tkinter import filedialog import tkinter import mailbox import pprint import json import urllib.request from tkinter import * #my script code here How can i convert it into a windows exe. Im using python...

exit() doesn't work with cx_freeze

python,python-3.x,tkinter,cx-freeze
I have a program in which I use a tkinter button to exit the program with the exit() command. However, when I compile the program through cx_freeze, it doesn't work anymore. I also tried with sys.exit() but then the button doesn't work at all (with or without cx_freeze). Any hint...

Add a python flag cx_freeze to executable

python,optimization,distribution,cx-freeze,pyglet
I'm making a game using pyglet, which runs like a tortoise (~30-35 FPS) unless I pass the -O flag to python when running it (which gives me a smooth 60FPS). I'm planning on using cx_freeze to distribute it, but I need the -O flag to be used every time the...

Freeze an app with flask and flask-logging via cx_freeze

python,flask,cx-freeze
I have an app with Flask and Flask-Logging that I have been wanting to turn into an Windows executable with cx_Freeze, but whenever I try to freeze it, and run the resulting executable, it is missing flask.ext.logging which is from flask-logging. Setup.py from cx_Freeze import setup, Executable # Dependencies are...

Frozen Bokeh application too large

python,executable,cx-freeze,bokeh
I have created a Bokeh application based largely on this recipe: http://bokeh.pydata.org/en/latest/docs/gallery/unemployment.html This works great but I need to to be able to distribute this application to my team, most of whom don't have python, let alone bokeh installed. I tried building this into an executable using cx_freeze but the...

AVBin in cxfreeze

python,executable,cx-freeze,pyglet
I'm having a bit of trouble in Python 3 lately. i have a program that uses Pyglet and AVBin to play sound into my game. It's one of my socket tests, so I want to test the game with someone that doesn't even own python. I used to use cx_Freeze...