PyOxidizer: Tkinter module missing in build

Very happy to see a tool like this coming along. I’m having an issue with a small GUI application. It compiles fine. But it neither run with pyoxidizer run or as built binary.

Traceback (most recent call last):
  File "importlib.util", line 94, in find_spec
  File "gui", line 2, in <module>
  File "tkinter", line 36, in <module>
ModuleNotFoundError: No module named '_tkinter'
Segmentation fault: 11

This is on a Mac so I’m building x86_64-apple-darwin. I know my local python 2 seems to lack tkinter, my local python 3 does not. But from what I understand you pull other python builds. I’m guessing they don’t have tkinter for some reason. Maybe not the most used extension, but quite useful to generate simple GUI.

Let me know if I can do anything to assist with figuring out the issue.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 2
  • Comments: 16 (7 by maintainers)

Most upvoted comments

Same issue but with just this single line - I think because python static link is missing Tk

>>> import tkinter 
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "tkinter", line 36, in <module>
ModuleNotFoundError: No module named '_tkinter'