Python Forum
Error with using pyinstaller to convert python script in Mac OS
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error with using pyinstaller to convert python script in Mac OS
#1
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.
Reply
#2
Look at this fix.
Reply
#3
(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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Python - pyinstaller Hyster 0 400 Mar-05-2025, 07:11 PM
Last Post: Hyster
  Pyinstaller and a custom python script mentat 0 1,163 Sep-27-2024, 04:42 PM
Last Post: mentat
Sad "PriceSystem" Python Script error to Shopify API Alphetto 0 943 Jul-04-2023, 10:03 AM
Last Post: Alphetto
  Using pyinstaller with .ui GUI files - No such file or directory error diver999 3 8,391 Jun-27-2023, 01:17 PM
Last Post: diver999
  Python Script to convert Json to CSV file chvsnarayana 8 4,968 Apr-26-2023, 10:31 PM
Last Post: DeaD_EyE
  Pyinstaller error amdi40 7 4,725 Sep-20-2022, 04:13 PM
Last Post: Axel_Erfurt
  KivyMD App to APK Convert Error Nick_MC 0 3,817 Jul-18-2022, 08:59 AM
Last Post: Nick_MC
  Make console show after script was built with Pyinstaller --NOCONSOLE? H84Gabor 0 1,880 May-05-2022, 12:32 PM
Last Post: H84Gabor
  "<class 'typeerror'>: don't know how to convert" error GiggsB 3 5,596 Feb-28-2022, 06:45 PM
Last Post: GiggsB
  Pyinstaller 3 Python 2 mckymntl 0 1,863 Feb-07-2022, 06:28 AM
Last Post: mckymntl

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020