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. On Tuesday, June 15, 2021 at 12:30:35 PM UTC+1 [email protected] wrote:
> Created a Python distributed exe on Windows 10 that is using > the TkTreeCtrl module. I created the program using pyinstaller --noconsole > --onefile test.py. > > 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? > -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/pyinstaller/8076bc89-affa-4d86-87ae-a38e9bd0a107n%40googlegroups.com.
