Can run the program from the cmd prompt. Can run the program in the IDLE environment. But can't click on the exe in the dist folder and have it successfully run.
Tried modifying the .spec file to include the locations of the tktreectrl and treectrl folders. Also tried modifying the .spec file to include the tcl, tkinter, and Tktreectrl as hiddenimports. I've also set the debug option so that I can trace the issue when running the exe.
When I run the exe by clicking on it in the dist folder, I get the error message ...failed to execute script test.py... and then I get the message ...can't find package treectrl.
Tktreectrl folder is a subfolder of the python37\lib\sitepackage folder.
treectrl folder (2.4.1) is a subfolder of the python\tcl folder.
Anyone have a clue how to resolve this?
What’s the exact working of the can't find package treectrl message? Is it a ModuleNotFoundError, a FileNotFoundError, DistributionNotFoundError or something else? They all need handling in different ways.