1

I tried to convert a .py to .exe, but a traceback is occurring when the .exe is opened, showing this message:

Traceback (most recent call last): File "Desformatador_1.0.py", line 1, in <module> ModuleNotFoundError: No module named 'PySimpleGUI'

The app run normally on VSCode as .py, but the same isn't true when converted... I already tried to use the hidden import in auto-py-to-exe, filling the input with PySimpleGUI. I also tried to paste the PySimpleGUI fold into my app directory, It didn't work as well. Well, I'm new into the programming world and was very excited when I finally wrote some useful code, but this traceback really have been a thorn in my side. (I'm using Windows 10 and Anaconda Prompt.)

Pedro Ryan
  • 31
  • 3

1 Answers1

2

The psgcompiler app solved the problem, thanks Mike!

Pedro Ryan
  • 31
  • 3
  • Awesome! Glad you're up and running! Thanks for letting others know it's one solution among many for creating an EXE from your Python code. – Mike from PSG Feb 15 '22 at 23:56