BIGPESH
BIGPESH

Reputation: 83

cx_Freeze No module named 'Tkinter'

Currently when I use cx_freeze to build my python script, it runs the build and creates it, but when you go to run the exe it comes up with the below error...

error

My setup.py script looks like the below...

enter image description here

After the setup.py has run it creates the below files along with the exe...

enter image description here

When you run the MOSIEwin.exe I get the above error, I really do not understand as to why its not finding Tkinter as it looks to be importing it in the package?

Any help would be appreciated :)

Thanks

Upvotes: 0

Views: 156

Answers (1)

Kevin
Kevin

Reputation: 36

The solution is described here. Essentially, you can drop down into ./lib and rename "Tkinter" to "tkinter". It has also been addressed in the cx_freeze issue tracker here.

Upvotes: 2

Related Questions