cx-freeze

ModuleNotFoundError: No module named 'google' on python 3.6.7

别说谁变了你拦得住时间么 提交于 2019-12-29 01:59:14
问题 I'm making a script that receives some args and use these args to manipulate a Firebase Realtime Database. When I run the script on cmd (I'm on a Windows 10 computer) by typing mpython myScript.py arg1 arg2 ... it works fine. But when I use cx_Freeze to build my .exe it says that there are modules missing Missing modules: ? Cookie imported from requests.compat ? OpenSSL.SSL imported from urllib3.contrib.pyopenssl ? OpenSSL.crypto imported from urllib3.contrib.pyopenssl ? StringIO imported

After creating python exe file with cx_freeze the file doesn't do anything

回眸只為那壹抹淺笑 提交于 2019-12-28 17:48:27
问题 I recently created used cx_freeze to create a python 3.2.2 exe file. When I tried to run the exe file nothing happened. Here is the code for my test.py file: print("hello world") for i in range(5): print(i) Here is the code for my testSetup.py file: from cx_Freeze import setup, Executable exe = Executable( script="test.py", base="Win32GUI", targetName="Test.exe" ) setup( name = "Test", version = "0.1", description = "I wish programming was this easy", executables = [exe]) The build directory

After creating python exe file with cx_freeze the file doesn't do anything

帅比萌擦擦* 提交于 2019-12-28 17:45:03
问题 I recently created used cx_freeze to create a python 3.2.2 exe file. When I tried to run the exe file nothing happened. Here is the code for my test.py file: print("hello world") for i in range(5): print(i) Here is the code for my testSetup.py file: from cx_Freeze import setup, Executable exe = Executable( script="test.py", base="Win32GUI", targetName="Test.exe" ) setup( name = "Test", version = "0.1", description = "I wish programming was this easy", executables = [exe]) The build directory

cx_Freeze ImportError: cannot import name

笑着哭i 提交于 2019-12-28 06:58:10
问题 I'm trying create an executable for Windows for a GUI application in tkinter using the ttk module. I made an exe with cx_freeze, but when I run the app in the console it gives me the following error: D:\My Dropbox\python\SAR Calculator\src\dist_tk> Traceback (most recent call last): File "C:\Python31\lib\site-packages\cx_Freeze\ 7, in <module> exec(code, m.__dict__) File "sarcalc_tk.py", line 14, in <module> File "C:\Python31\lib\tkinter\__init__.py", li from tkinter import _fix ImportError:

import _tkinter # If this fails your Python may not be configured for Tk

最后都变了- 提交于 2019-12-28 02:53:32
问题 Some initial information: I have windows 10 on my computer and all programs are 64-bit versions. I'm writting a game in python (3.6.1) using tkinter and now I would like to convert it to .exe. I have used cx_freeze (5.0.1) and it made the build, but when I try to open the game a window opens and then closes immediately. Therefore I tried to open it via cmd and the following error pops up: File "sliks.py", line 1, in <module> File "C:\Users\Tinka\AppData\Local\Programs\Python\Python36\lib

What could be the reason for fatal python error:initfsencoding:unable to load the file system codec?

为君一笑 提交于 2019-12-28 02:09:06
问题 I am using Python 3.7 (64-bit) and installed cx_Freeze for converting .py into .exe. I used this command prompt to convert Python script into an executable: python [filename] build It successfully build the executable. But when I executed my EXE file, I just get output: fatal python error:initfsencoding:unable to load the file system codec ImportError: invalid flags 1530052318 in 'encoding' Current thread 0X000013f8 : How to solve it and successfully make an executable file using cx_Freeze ?

python tkinter exe built with cx_Freeze for windows won't show GUI

前提是你 提交于 2019-12-25 18:41:53
问题 PROBLEM SOLVED. the issue was with jaraco module, that i used for clipboard manipulation, i used pyperclip instead. I made a python app with tkinter that works fine, but I wanted to make an exe from it so it's user friendly in windows. I used cx_Freeze library for that, that works fine too, but not always. When creating the exe using cx_Freeze you can specify base parameter, if you give none that will open 2 windows, cmd window and a GUI window for your app. To get rid of the cmd window you

cx_freeze app opens then closes quickly

▼魔方 西西 提交于 2019-12-25 17:02:15
问题 i am trying to turn my python game into an exe file using cx_Freeze. The build finishes but i cannot open the app. I ran it in cmd and it says: __import__(name+"__init__") ImportError:No module named 'pygame.py__init__' not sure what this means here is my setup code: import cx_Freeze import os executables = [cx_Freeze.Executable("pygame.py.py")] os.environ['TCL_LIBRARY'] = "C:\\New folder\\tcl\\tcl8.6" os.environ['TK_LIBRARY'] = "C:\\New folder\\tcl\\tk8.6" cx_Freeze.setup( name="Speed",

Cx_freeze exe failing to completely import docx

孤人 提交于 2019-12-25 14:13:51
问题 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 setup script. from cx_Freeze import setup, Executable includefiles = ['logo.ico','db.db','dbloc.bin'] includes = [] excludes = [] packages = ['tkinter','docx','sys', 'sqlite3', 'os', 'hashlib', 'random', 'uuid', 'base64', 'tempfile'

cx freeze exe not running (nothing happens)

假如想象 提交于 2019-12-25 07:49:05
问题 Windows 7 x64, Python 2.7 (Anaconda distribution), cx_Freeze 5.0 I am having trouble converting my python script to an executable using cx freeze. I can create an exe using the setup file below (with no errors mentioned) although in when building there are lots of missing modules with a “?” next to it – I'm not sure if this is important or not. Missing modules: ? imported from nbformat.validator ? AppKit imported from matplotlib.backends.backend_cocoaagg ? Carbon imported from plistlib ?