cx-freeze

exe created using cx_freeze not working properly

白昼怎懂夜的黑 提交于 2019-12-25 03:26:11
问题 use=input('what do you wanna do \n1.press w to create a new file\n2.press r to read a file:\n') if use=='r': read() elif use=='w': write() else : print('OOPS! you enter a wrong input\n') user() when i run this code using IDLE it runs properly but when i created a exe of this python file using cx_freeze then the if and elif conditions are not working for 'r' and 'w' respectively. for any input it always goes to the else statement. I am using python 3.2 and cx_freeze 3.2 回答1: Just for a quick

Error while opening a python file converted into executable using cx_Freeze

亡梦爱人 提交于 2019-12-25 01:58:49
问题 I used cx_Freeze to convert a simple python program made using pygame and tkinter into an executable. However, when I try to open the .exe file. This is the setup.py file which I used to convert the game into executable import cx_Freeze import os.path PYTHON_INSTALL_DIR = os.path.dirname(os.path.dirname(os.__file__)) os.environ['TCL_LIBRARY'] = os.path.join(PYTHON_INSTALL_DIR, 'tcl','tcl8.6') os.environ['TK_LIBRARY'] = os.path.join(PYTHON_INSTALL_DIR, 'tcl', 'tk8.6') executables = [cx_Freeze

Why does cx_Freeze use Win32GUI rather than Win64GUI?

谁说胖子不能爱 提交于 2019-12-25 00:05:12
问题 The command line of an application built with cx_Freeze can be hidden with Win32GUI . Why does cx_Freeze choose to reference Win32GUI rather than Win64GUI ? This suggests that cx_Freeze has either not been updated to include this feature, or is calling a 32 bit command and yet almost all Windows computers are now 64 bit. Is there a reason why the inplamenters chose to call it this? I have researched for a long time but have not found any answer, any thoughts would be appreciated. Thank you.

cx-Freeze executable ImportError: No module named 'zipfile'

烂漫一生 提交于 2019-12-24 17:57:35
问题 I'm on Windows 7, as are all potential users of my program. I packaged a Python program I wrote into an executable file using cx_Freeze, with the following command: python setup.py build This generates a build directory that contains my_program.exe. The executable works flawlessly on my computer, but on a coworker's machine, it throws an exception: ImportError: No module named 'zipfile' Here's my setup.py, where zipfile is explicitly included (and it's definitely in library.zip): import sys

python: win32com and cx_Freeze - error

白昼怎懂夜的黑 提交于 2019-12-24 17:13:05
问题 I'm trying to compile a Python 3.3 script using cx_Freeze. The script uses win32com.client to control MediaMonkey. This works perfect when I directly run it. But when I compile it, it throws this exception. Traceback (most recent call last): File "O:\Python\3\lib\site-packages\cx_Freeze\initscripts\Console3.py", line 27, in <module> exec(code, m.__dict__) File "test.py", line 6, in <module> sdb = win32com.client.DispatchWithEvents("SongsDB.SDBApplication", MMEventHandler) File "O:\Python\3

Error executing the result of cx_freeze using pycrypto

ぐ巨炮叔叔 提交于 2019-12-24 15:40:54
问题 I am trying to freeze a Little python program using pycrypto library in Windows. Last version of everything including cx_freeze. After running >python setup.py build apparently everything goes nice. But running the exe file generated reports the following error : ImportError: cannot import name _AES The error is reported by AES.py file which is part of pycrypto lybrary. I have copied the pycrypto structure in the same directory where setup.py is and I played with the contents of setup.py

python cx_Freeze askopenfile

折月煮酒 提交于 2019-12-24 15:31:34
问题 Following file (Python 3.7) does everything it is supposed to do. When I press the “Open file” button it opens “askopenfilename” dialog. import tkinter as tk from tkinter import ttk from tkinter import filedialog as fd from tkinter import messagebox from os import path class GUI(tk.Tk): def __init__(self): self.win=tk.Tk() self.create_widgets() def exitfcn(self): result = tk.messagebox.askquestion('Warning', 'Exit?') if result == 'yes': self.win.destroy() # Button callback def getFileName

creating exe using cx_freeze, but move exe to root directory to deploy

偶尔善良 提交于 2019-12-24 15:27:19
问题 I created a new script with cx_freeze's template. Then I'm running python setup.py build to create the exe. If I move main.exe to the root folder cx_freeze test it will fail to run. All I want is to move .exe up 1 or two directories. Here's my code: main.py foo = input("Complete") setup.py: from cx_Freeze import setup, Executable # Dependencies are automatically detected, but it might need # fine tuning. buildOptions = dict( packages = [], excludes = [], includes = ["atexit"] ) # include

cx_freeze “cannot get zipimporter”

痴心易碎 提交于 2019-12-24 15:14:33
问题 The last program I wrote in Python27 (in windows7 64x, exe with cx_freeze 3.4.1) work without problem on almost all computers, but with one computer (also with windows7 64x) I get the following error-message : cx_Freeze Fatal Error cannot get zipimporter instance I tried to fix it with the following : I deleted all non-ASCII from the code (included those in the comments). I added the modul "zlib" to the includes in the setup and in the import of the program. I added "include_msvcr" : True to

cx_Freeze help. ImportError

让人想犯罪 __ 提交于 2019-12-24 11:50:40
问题 I'm a newbie to cx_Freeze and I need some help. I'm writing an application with python 3.3, pyqt4 and some more libraries (scipy, numpy, matplotlib, dxfwrite). Now I'm trying to freeze the application with cx_Freeze under windows7. I'm using cx_Freeze-4.3.2.win-amd64-py3.3 and the following setup.py for cx_Freeze: import sys from cx_Freeze import setup, Executable build_exe_options = {"packages": ["os"], "excludes": ["tkinter"] } setup( name = "Barrel Cam Editor", version = "0.2.0",