You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

unexpected quitting of python 3.5

hi guys!

im using MacBook Air (early 2015) with 1.6 GHz processor and 8 gb of ram. I'm mew to MacOS Sierra. I have installed python 3.5 on my Mac. I'm getting an unexpected quitting error as soon I use double quotes. I searched for the issue on internet and got to know to update my tk/tcl with active tcl8.6. I did that too but still facing the same problem. Can u guys plz help me in this issue? I'l be really very thankful.User uploaded file

MacBook Air (13-inch, Early 2015), iOS 10.2

Posted on Dec 14, 2016 7:49 PM

Reply
9 replies

Dec 14, 2016 8:54 PM in response to avid196

The current Python dot org installer for Mac v3.5.2, and its contents — was built on June 26, 2016. This predates macOS Sierra, and probably expects an El Capitan installation environment. Apple continues to ship the outdated Tcl/Tk 8.5.9.


I have Python 3.5.2 built from source code on El Capitan, and have both Apple's Tcl/Tk 8.5.9, and ActiveState's Tcl/Tk 8.6.4 installed. Here is the result of using idle3, which does not crash. I have to fix the idle3 colors...

User uploaded file


With just the Apple Tcl/Tk 8.5.9 (default) frameworks on macOS Sierra 10.12.2, just launching idle3 causes it to crash. Therefore, I am less inclined to believe that the Sierra issues are Tcl/Tk version as much as they are the age of the build against El Capitan frameworks that may have changed for Sierra.

Dec 14, 2016 9:23 PM in response to VikingOSX

I had updated to macOS Sierra 10.12.2, and installed Xcode 8.2 and the corresponding command-line tools. Previously, I mentioned that my Sierra system only had the Apple Tcl/Tk 8.5.9 frameworks installed. I just installed the ActiveState Community Tcl/Tk 8.6.4 frameworks, removed my Python 3.5.2 installation, and then recompiled it.


When I launched idle3, all was normal as shown by the following screen capture, and you will note that the Python build also now picks up the ActiveState Tcl/Tk frameworks as it should:

User uploaded file

Dec 15, 2016 5:54 AM in response to avid196

Do not install Tcl/Tk 8.5.9 into macOS Sierra, as that specific version is already provided by Apple in the operating system installation. Provided that you have not already installed Tcl/Tk 8.5.9 frameworks, then move those specific Tcl/Tk 8.5.9 folders that you have shown — to the Trash.


Etresoft has a point about the keyboard in use.


You need to read about the PYTHONPATH environment variable in the Python v3.5.2 documentation, and make certain that you have it set to the Python v3.5.2 library location — only when you are using Python v3.5.2. If you are launching idle3, and it is looking in the default, blank PYTHONPATH libary location, then it is attempting to use the System Python 2.7.10 libraries, and that will explode idle3 too.


Python dot org only recommends ActiveState 8.5.18 for Python 2.7.12, and 3.5.2 Mac installers. My implementation of Python 3.5.2 is compiled in macOS Sierra with current compilation tools, and that is why I have Tcl/Tk 8.6.4 functionality. Remove your Python 3.5.2, install the recommended ActiveState 8.5.18, and then reinstall Python 3.5.2 back into your /Applications folder.

unexpected quitting of python 3.5

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.