0

I am just trying to do some learning with turtle. But for some reason I get this error message when trying to import and run the script:

macOS 11 or later required !
[1]    1673 abort      python3 day16_turtle.py

Here is the code I tried to run:

import turtle

timmy = turtle.Turtle()

print(timmy)

I can import turtle normal but when I try to run this line it gives me the above error to timmy = turtle.Turtle()

Also, the VS Code shows the below 3 messages:

GIT_ASKPASS=/private/var/folders/qz/1q1pzc_13tng37ltmc0r3gz40000gn/T/AppTranslocation/A692D70A-09BC-4A39-A204-0526042BE3EB/d/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass.sh
VSCODE_GIT_ASKPASS_NODE=/private/var/folders/qz/1q1pzc_13tng37ltmc0r3gz40000gn/T/AppTranslocation/A692D70A-09BC-4A39-A204-0526042BE3EB/d/Visual Studio Code.app/Contents/Frameworks/Code Helper (Renderer).app/Contents/MacOS/Code Helper (Renderer)
VSCODE_GIT_ASKPASS_MAIN=/private/var/folders/qz/1q1pzc_13tng37ltmc0r3gz40000gn/T/AppTranslocation/A692D70A-09BC-4A39-A204-0526042BE3EB/d/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass-main.js

Also, my mac produces a problem report (which I won't post it here, see photo):

Does anyone know why is this?? I'm using MacOS 11.1, VS Code, Python 3.9

j_zzzz
  • 11
  • 2

2 Answers2

1

Seems like it's a known issue with the way brew installs Python and doesn't support tkinter on macOS 11. I am just going to wait for a fix and hopefully it will be solved next brew update && upgrade I do. Reference here: Interpreter crashes trying to use tkinter library

j_zzzz
  • 11
  • 2
-1

I had the same issue. Solved it by installing Python3.9.1 directly from python.org (uninstalling existing 3.9 not required).

Mash
  • 1