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
Sad "PriceSystem" Python Script error to Shopify API Alphetto 0 444 Jul-04-2023, 10:03 AM
Last Post: Alphetto
  Is there a *.bat DOS batch script to *.py Python Script converter? pstein 3 3,269 Jun-29-2023, 11:57 AM
Last Post: gologica
  Using pyinstaller with .ui GUI files - No such file or directory error diver999 3 3,382 Jun-27-2023, 01:17 PM
Last Post: diver999
  Python Script to convert Json to CSV file chvsnarayana 8 2,535 Apr-26-2023, 10:31 PM
Last Post: DeaD_EyE
  Pyinstaller error amdi40 7 2,966 Sep-20-2022, 04:13 PM
Last Post: Axel_Erfurt
  KivyMD App to APK Convert Error Nick_MC 0 2,334 Jul-18-2022, 08:59 AM
Last Post: Nick_MC
  Make console show after script was built with Pyinstaller --NOCONSOLE? H84Gabor 0 1,213 May-05-2022, 12:32 PM
Last Post: H84Gabor
  "<class 'typeerror'>: don't know how to convert" error GiggsB 3 3,373 Feb-28-2022, 06:45 PM
Last Post: GiggsB
  Pyinstaller 3 Python 2 mckymntl 0 1,231 Feb-07-2022, 06:28 AM
Last Post: mckymntl
Question convert autohotkey script to python / macro - press key when pixel get colour willson94d 1 3,660 Jan-01-2022, 08:13 PM
Last Post: Yoriz

Forum Jump:

User Panel Messages

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