cx-freeze

Compiled with CX_FREEZE, Beautiful Soup program wont run in Console

大憨熊 提交于 2019-12-10 23:15:13
问题 This is the error I am getting when I run the EXE file of the program. The program runs fine in Pycharm but generates such error in console. bs4.FeatureNotFound: Couldn't find a Tree Builder with features you requested. Do you need to install a parser library? import sys from cx_Freeze import setup, Executable build_exe_options = {"packages": ["bs4, urllib, requests"], "excludes": [""]} base = None setup( name = "Weather", version = "0.9.0", options = {"program": build_exe_options},

Hiding the console window

佐手、 提交于 2019-12-10 20:04:59
问题 problem I started designing GUI applications using Python and Tkinter. When I freeze a script using cxFreeze then when I run that EXE file on a machine. Then first the console window (a black DOS shell in the case of Windows XP) opens and then the main window(Tk() instance) gets initialized. goal The console window must not appear. Only the Tk() instance should appear. code root = Tk() Label(root,text="hey").pack() root.mainloop() specs Windows XP SP 3 Python 2.7 Tkinter 8.5 回答1: When using

Python 3.3.4 Cx_Freeze ImportError: DDL load failed: The specified module could not be found

£可爱£侵袭症+ 提交于 2019-12-10 20:03:03
问题 I am attempting to use cx_Freeze to turn a .py file that I wrote in Python 3.3.4. In running the build command, I get the following error. C:\Python33>c:\python33\python.exe setup.py build running build running build_exe Traceback (most recent call last): File "setup.py", line 22, in <module> executables=executables File "c:\python33\lib\site-packages\cx_Freeze\dist.py", line 365, in setup distutils.core.setup(**attrs) File "c:\python33\lib\distutils\core.py", line 148, in setup dist.run

python cx_Freeze egg problem

帅比萌擦擦* 提交于 2019-12-10 18:49:26
问题 im trying to build an executable (for 32bit windows xp) from a python script (which uses lots of eggs) i considered py2exe(0.6.9), PyInstaller (1.4) and cx_Freeze (4.1.2) py2exe doesnt like eggs for breakfast PyInstaller doesnt like python 2.6 for lunch) so i went with cx_Freeze (supposed to support eggs seamlessly since 4.0). but for some reason it doesnt. what parameters do i pass in order for files inside an egg to be recognized? 回答1: Unpack your eggs module in your source directory and

Google API and cx_Freeze not working properly

删除回忆录丶 提交于 2019-12-10 18:49:22
问题 I have made a Python program that is capable of uploading files into Google Drive. The .py file works perfectly and does not give any errors. But as I'm going to distribute it for people who do not have Python installed, I must turn the program and the resources into a .exe. I have done this with cx_Freeze. I have used it before and it has always worked. But now, the Google Drive API seems to be causing errors when the .exe is run. Here are the errors it gives: Traceback (most recent call

how to build .exe for python 3.5+, 3.6 if possible?

烈酒焚心 提交于 2019-12-10 15:34:19
问题 Is there now an easy protocol to build a .exe from python 3.5+, using modules pyqtgraph, qt5, theano, pymc3, numpy, scipy, os and sys, and opening a simple GUI stored in a '.ui' file ? I lost hours and eventually failed to make one (for w7-64 bits). Help ! preliminary failure with py2exe: I first install py2exe for python 3 but it turns out this is not compatible with my python 3.6 yet, so I downgraded to python 3.5… to get a bunch of errors. Then I went to forums and tried the proposed cures

cx_freeze error with pyodbc

删除回忆录丶 提交于 2019-12-10 15:06:49
问题 if you have a simple program name pyodbcTest.py import pyodbc print "pass" and then use cx_freeze to compile it cxfreeze --targe-dir=cxTest pyodbcTest.py and then run that program it throws the following error. C:\temp\pythonWork\cxTest>pyodbcTest.exe Traceback (most recent call last): File "C:\Python27\lib\site-packages\cx_Freeze\initscripts\Console.py", line 27, in <module> exec code in m.__dict__ File "pyodbcTest.py", line 1, in <module> RuntimeError: Unable to import decimal Any ideas?

Using cx_freeze in PyQt5, can't find PyQt5

时光总嘲笑我的痴心妄想 提交于 2019-12-10 11:53:03
问题 I want to build a standalone binary file for windowz(xp, 7, ...) from my python3(+ PyQt5) script and I inevitably use cx_freeze because other freezing apps do not work with python3 (like py2exe , pyinstaller ). I read the cx_freeze docs and lots of stackoverflow asks ans use this config for setup.py‍‍‍ file : import sys from cx_Freeze import setup, Executable path_platforms = ( "C:\Python33\Lib\site-packages\PyQt5\plugins\platforms\qwindows.dll", "platforms\qwindows.dll" ) includes = ["atexit

cx_Freeze exe file opens for a second then closes

左心房为你撑大大i 提交于 2019-12-10 11:44:48
问题 Whenever I try to open the .exe file, a black screen opens and flickers for a second then closes. No error shows up at all. Here's my setup.py file: import sys from cx_Freeze import setup, Executable setup( name = "Robot Game", version = "1.1", executables = [Executable("Robot Game.py", base = "Win32GUI")]) 来源: https://stackoverflow.com/questions/23000282/cx-freeze-exe-file-opens-for-a-second-then-closes

cx_freeze ImportError: No module named 'idna'

孤人 提交于 2019-12-08 20:45:33
I'm using python 3.6 Trying to make and exe from my .py file. but when I run python setup.py build it give me an error raise ImportError("No module named %r" % name) ImportError: No module named 'idna' My setup file is like this setup file Save: # thanks to https://www.youtube.com/watch?v=GSoOwSqTSrs from cx_Freeze import setup, Executable setup( name='KutsalAklinNerde?', version='0.1', #Further information about its version description='Parse stuff', #It's description executables= [Executable("Example.py")]) as setup.py in the same directory of your Example.py (the .py you want to convert to