cx-freeze

Cx-Freeze : Showwarning AttributeError: 'NoneType' object has no attribute 'write'

生来就可爱ヽ(ⅴ<●) 提交于 2020-06-27 14:57:42
问题 Scripts works fine on source file with using Anaconda alongside with Python 3.4. When i cxfreeze (v 4.3.4) it with following setup file: from cx_Freeze import setup, Executable setup(executables=[Executable("main.py", base="Win32GUI")], version='0.2') I got following error on the server: DBOps.py", line 54, in executemany "C:\Users\user\Anaconda3\lib\site-packages\MySQLdb\cursors.py", line 286, in executemany File "FileC:\Users\user\Anaconda3\lib\site-packages\MySQLdb\cursors.py", line 127,

cx-freeze PermissionError: [Errno 13] Permission denied

故事扮演 提交于 2020-05-24 05:20:42
问题 I am attempting to use cx_Freeze as an alternative to my usual application for converting .py to .exe (auto-py-to-exe). When I run it in cmd I get: C:\WINDOWS\system32>cxfreeze-quickstart Project name: FE Version [1.0]: 1.0 Description: File Edit and more!!! Python file to make executable from: File Create.py Executable file name [File Create]: File Create Executable (C)onsole application, (G)UI application, or (S)ervice [C]: C Save setup script to [setup.py]: C:\Users\tom\Documents\python\

cx_freeze Error: Module not found tkinter

百般思念 提交于 2020-05-16 04:27:48
问题 I started having some issues with miniconda and PyCharm so I had to reinstall them. However, now when I use cx_freeze to create .exe I get the error below. Here is my code: from tkinter import * from tkinter import ttk from ttkthemes import ThemedTk from ttkthemes import themed_tk as tk import os from tkinter import messagebox import getpass import pyodbc import test import time class Application(object): def __init__(self,master): self.master=master self.itemIn = ttk.Button(master, text="In"

cx_freeze exe file works in anaconda prompt but not in windows cmd command prompt?

喜欢而已 提交于 2020-04-16 05:03:22
问题 I have spent most of the day trying to compile an exe file from my python script and running it through the vanilla cmd command prompt. I finally managed to create the exe-file, but weirdly it only runs in the anaconda prompt and not in the cmd. Here is the full error message/traceback: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\lib\site-packages\cx_Freeze\initscripts\__startup__.py", line 14, in run module.run() File "C:\ProgramData\Anaconda3\lib\site-packages\cx

cx_freeze exe file works in anaconda prompt but not in windows cmd command prompt?

六月ゝ 毕业季﹏ 提交于 2020-04-16 05:03:13
问题 I have spent most of the day trying to compile an exe file from my python script and running it through the vanilla cmd command prompt. I finally managed to create the exe-file, but weirdly it only runs in the anaconda prompt and not in the cmd. Here is the full error message/traceback: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\lib\site-packages\cx_Freeze\initscripts\__startup__.py", line 14, in run module.run() File "C:\ProgramData\Anaconda3\lib\site-packages\cx

Python Pygame and cx_Freeze [closed]

泄露秘密 提交于 2020-04-11 15:18:41
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 21 days ago . I am packing my code to exe now. Successfully created setup.py , built it but my executable file opens and then closes. I don't understand what is the problem (It's not an error I checked). So what do you think? 来源: https://stackoverflow.com/questions/60765308/python-pygame-and-cx-freeze

pip install cx_Freeze command not working

末鹿安然 提交于 2020-03-28 07:08:04
问题 pip install cx_Freeze Gives this error:- Collecting cx_Freeze Using cached https://files.pythonhosted.org/packages/5f/16/eab51d6571dfec2554248cb027c51babd04d97f594ab6359e0707361297d/cx_Freeze-5.1.1.tar.gz Installing collected packages: cx-Freeze Running setup.py install for cx-Freeze ... error ERROR: Complete output from command 'c:\users\alok\appdata\local\programs\python\python37-32\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'C:\\Users\\Alok\\AppData\\Local\\Temp\\pip

pip install cx_Freeze command not working

岁酱吖の 提交于 2020-03-28 07:07:48
问题 pip install cx_Freeze Gives this error:- Collecting cx_Freeze Using cached https://files.pythonhosted.org/packages/5f/16/eab51d6571dfec2554248cb027c51babd04d97f594ab6359e0707361297d/cx_Freeze-5.1.1.tar.gz Installing collected packages: cx-Freeze Running setup.py install for cx-Freeze ... error ERROR: Complete output from command 'c:\users\alok\appdata\local\programs\python\python37-32\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'C:\\Users\\Alok\\AppData\\Local\\Temp\\pip

cx_freeze doesn't get installed in python 3.8.0

做~自己de王妃 提交于 2020-03-06 09:52:10
问题 I'm trying to install cx_freeze to convert my python code into an executable. But it always shows the error below. I looked into the problem and found that I should downgrade my python version because there is no cx_freeze that supports Python 3.8. NOTE It turns out that cx_freeze installation on Python 3.8 is possible if you download the development version directly from Git. Using cached https://files.pythonhosted.org/packages/14/74

cx_Freeze - Preventing including unneeded packages

╄→гoц情女王★ 提交于 2020-02-19 09:51:23
问题 I have coded a tiny python program using PyQt4. Now, I want to use cx_Freeze to create a standalone application. Everything works fine - cx_Freeze includes automatically all necessary modules; the resulting exe works. The only problem is that cx_Freeze packs plenty of unneeded modules into the standalone. Even though I only use QtCore and QtGui, also modules like sqlite3, QtNetwork, or QtScript are included. Surprisingly, I find also PyQt5 dlls in the resulting folder. It seems to me as if cx