A-Z Index of IT Support

If you have a python-based standalone program on your Mac (e.g. one made with pyinstaller) then you may find that upgrading to macOS "High Sierra" or greater breaks it.

If you have no way to recompile the App for the new OS (which is the best solution), then here are the steps you need to take to fix the problem. High Sierra abandons TCL and TK framework versions 8.4 (in favour of 8.5) and these steps will allow programs depending on version 8.4 to run again.


1  Enter Recovery Mode

Restart your Mac holding down ⌘ and R until you see the Apple symbol in the middle of the screen - this restarts the computer in recovery mode


2  Disable SIP

Click the Utilities menu and select Terminal. Type:
 
csrutil disable 
 
and press return.


3  Restart Normally

Close the Terminal app. Click the  menu and select Restart (and start up normally)


4  Prepare required TCL and TK files

Once you’re logged in, create two folders, one named TK and one named TCL. Copy these two zip files TK_8_4.zip and TCL_8_4.zip, one into each folder with the corresponding name and then double-click to expand them. They should both produce a folder with the name “8.4”.


5  TK Framework Tweak

In the Finder, select Go > Go to Folder… and enter this:
 
/System/Library/Frameworks/Tk.framework/Versions
 
You should be seeing two icons, “8.5” and “Current"
Copy the folder “8.4” from the folder named “TK” from step 4 into this new folder, alongside “8.5" and “Current"


6  TCL Framework Tweak

In the Finder, select Go > Go to Folder… and enter this:
 
/System/Library/Frameworks/TCL.framework/Versions
 
You should be seeing two icons, “8.5” and “Current"
Copy the folder “8.4” from the folder named “TCL” from step 4 into this new folder, alongside “8.5" and “Current”


7  Re-enable SIP Mode

You may want to re-enable SIP mode after doing this "surgery" - 

Restart your Mac holding down ⌘ and R until you see the Apple symbol in the middle of the screen - this restarts the computer in recovery mode
 
Click the Utilities menu and select Terminal. Type:
 
csrutil enable 
 
and press return.
 
Close the Terminal app. Click the  menu and select Restart (and start up normally)



Options for this page:

Search All Guides | Search How-to Guides Only | List How-to Guides | Search FAQs Only





Page Last Updated: 30/04/2018 by Webmaster
© 2019 Department of Biochemistry
View printer-friendly version of this page