Python Forum

Full Version: Error with using pyinstaller to convert python script in Mac OS
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi guys,

I'm a newbie with python and I have hit the following pyinstaller module (version 3.4) error, when I attempted to convert my python 3.7 script into a single executable file. The OS that I'm running is Mac OS High Sierra.

my-mbp$ pyinstaller -i my_icon.ico -F my_python_script

Traceback (most recent call last):
File "site-packages/PyInstaller/loader/rthooks/pyi_rth__tkinter.py", line 28, in <module>
FileNotFoundError: Tcl data directory "/var/folders/1q/z_bxcfqs2_9c2n1t_1dqpjrm0000gn/T/_MEImYnHOZ/tcl" not found.
[3343] Failed to execute script pyi_rth__tkinter


Can someone please advise me on how to resolve this issue, as I couldn't find any solution on the Internet. Thank you in advance.
Look at this fix.
(Oct-19-2018, 02:11 PM)snippsat Wrote: [ -> ]Look at this fix.

Thank you for your reply.


I tried that method from that article before but it didn’t work out for me.