cx-freeze

cx_freeze Tkinter 'Module not Found'

て烟熏妆下的殇ゞ 提交于 2021-02-10 14:21:01
问题 I am trying to create an executable from my python scripts. I am using Windows 7, cx_freeze 5.0.2 and Python 3.6. I know Tkinter isn't included in the normal libraries and that you need to add something similar to the following 2 lines: os.environ['TCL_LIBRARY'] = "C:\\Program Files\\Python35\\tcl\\tcl8.6" os.environ['TK_LIBRARY'] = "C:\\Program Files\\Python35\\tcl\\tk8.6" Except of course for 3.6 and in my location, however I can't find their directory in Anaconda 3.6 I create the following

ImportError: cannot import name '_ni_support' — Using cx-freeze with scipy

爱⌒轻易说出口 提交于 2021-02-10 14:14:13
问题 I have used cx-freeze to make an executable file from my python 3 script. The issue is that apparently cx-freeze is having a hard time importing scipy scripts. I had to resolve other issues previously, e.g. adding the tcl library files manually. Anyway, my setup files is below: from cx_Freeze import setup, Executable import os os.environ['TCL_LIBRARY'] = "C:\\Users\\Gobryas\\AppData\\Local\\Continuum\\anaconda3\\tcl\\tcl8.6" os.environ['TK_LIBRARY'] = "C:\\Users\\Gobryas\\AppData\\Local\

ImportError: cannot import name '_ni_support' — Using cx-freeze with scipy

走远了吗. 提交于 2021-02-10 14:08:12
问题 I have used cx-freeze to make an executable file from my python 3 script. The issue is that apparently cx-freeze is having a hard time importing scipy scripts. I had to resolve other issues previously, e.g. adding the tcl library files manually. Anyway, my setup files is below: from cx_Freeze import setup, Executable import os os.environ['TCL_LIBRARY'] = "C:\\Users\\Gobryas\\AppData\\Local\\Continuum\\anaconda3\\tcl\\tcl8.6" os.environ['TK_LIBRARY'] = "C:\\Users\\Gobryas\\AppData\\Local\

Packaged tkinter GUI using cx_freeze on MacOS results in a black GUI

女生的网名这么多〃 提交于 2021-02-08 05:57:46
问题 I am building a tkinter GUI for a friend in Python 3.8.3 on a Mac running macOS Catalina 10.15.2 and trying to freeze it using cx_freeze 6.1. When I run the python application in my local environment the application works perfectly. (screenshot: tkinter GUI in local environment) When I package the application using cx_freeze and try to run the Linux executable the tkinter window opens but it is all black and I cannot see anything in it (screenshot: tkinter GUI after packaging with cx_freeze)

cx_freeze: can't find a usable init.tcl in the following directories

久未见 提交于 2021-02-07 05:48:05
问题 As far as I'm aware, cx_freeze is the only app able to make Python scripts to .exe files. However, I would like to make a GUI exe in Python 3. And after freezing a simple Tkinter GUI and running the exe, I get the following error: > _tkinter.TclError: Can't find a usable init.tcl in the following directories: > {C:\Users\User\Desktop\tkinter\build\exe.win32-3.1\tcl} > C:/Users/User/Desktop/tkinter/build/exe.win32-3.1/tcl8.5 > C:/Users/User/Desktop/tkinter/build/lib/tcl8.5 > C:/Users/User

Python 3.6 quit() not working after porting to exe

若如初见. 提交于 2021-02-05 11:39:24
问题 I have a small tkinter gui that generates some reports. I built a quit button into it. The button works perfectly when I launch the script, but I converted it to an exe with cx_freeze and the entire program is working except the quit button. def quits(): quit() I created the quit button to call this quits function because I read that just calling quit directly could cause problems. Anyone have any idea why this is not working as an exe? 回答1: As per the comments the quit function doesn't work

Python 3.6 quit() not working after porting to exe

戏子无情 提交于 2021-02-05 11:38:39
问题 I have a small tkinter gui that generates some reports. I built a quit button into it. The button works perfectly when I launch the script, but I converted it to an exe with cx_freeze and the entire program is working except the quit button. def quits(): quit() I created the quit button to call this quits function because I read that just calling quit directly could cause problems. Anyone have any idea why this is not working as an exe? 回答1: As per the comments the quit function doesn't work

cx_freeze error with tkinter library treectrl converting to exe setup

无人久伴 提交于 2021-01-28 04:23:09
问题 I am using python version 3.7 , I used this external library named treectrl and it works perfectly fine when I run my .py file but when I converted into exe file using cx_freeze it is giving me error NomodulleFound named tkinter. I have tried other small programs which does not use this library and I converted them in to exe file they work perfectly fine. So the idea which I got is that there is problem with this library. So I can't figure out what part this. I provided all codes , all

Python script to executable with cx_Freeze, exe does nothing

风流意气都作罢 提交于 2021-01-04 04:16:25
问题 I have decided for practice purposes, I'd write a Passwordgenerator and make it an executable. My script is running as it is intended, and the compiling works as well, but when I run the exe file, nothing happens. I run a Windows 10 system and use Python 3.6.x and I am not a beginner of python itself. I looked up various pages on the internet, but I found nothing that helped me on that problem, my first problem was that the compiling didn't work but I already found that solution. Edit: I

Python script to executable with cx_Freeze, exe does nothing

时光毁灭记忆、已成空白 提交于 2021-01-04 04:13:32
问题 I have decided for practice purposes, I'd write a Passwordgenerator and make it an executable. My script is running as it is intended, and the compiling works as well, but when I run the exe file, nothing happens. I run a Windows 10 system and use Python 3.6.x and I am not a beginner of python itself. I looked up various pages on the internet, but I found nothing that helped me on that problem, my first problem was that the compiling didn't work but I already found that solution. Edit: I