This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: Turtle module does not work
Type: behavior Stage: resolved
Components: Library (Lib) Versions: Python 3.10
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: aledeaux, mark.dickinson, terry.reedy
Priority: normal Keywords:

Created on 2021-03-17 16:06 by aledeaux, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (6)
msg388931 - (view) Author: Adrian LeDeaux (aledeaux) Date: 2021-03-17 16:06
So when I try to do the command "import turtle" all I get back is: 

Traceback (most recent call last):
  File "<pyshell#4>", line 1, in <module>
    import turtle
  File "/Users/Virsatech/Documents/", line 2, in <module>
    t = turtle.Pen()
AttributeError: partially initialized module 'turtle' has no attribute 'Pen' (most likely due to a circular import)

that error exactly. And I have tried many times. Anyone know how to fix?
msg388933 - (view) Author: Mark Dickinson (mark.dickinson) * (Python committer) Date: 2021-03-17 16:14
You have a local file named ``, which is conflicting with the standard library `turtle` module.  Rename your local file to something else, then you'll be able to import the standard library `turtle` module.
msg388934 - (view) Author: Adrian LeDeaux (aledeaux) Date: 2021-03-17 16:16
Oh, OK. I am not an expert on python so I did not understand the error. Thanks for the help, and I will update you if the problems continue.
msg388936 - (view) Author: Adrian LeDeaux (aledeaux) Date: 2021-03-17 16:21
That fixed it.
msg388944 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2021-03-17 17:19
For next time, the turtle module is not part of IDLE.
msg388956 - (view) Author: Adrian LeDeaux (aledeaux) Date: 2021-03-17 18:35
Date User Action Args
2022-04-11 14:59:42adminsetgithub: 87697
2021-03-17 18:35:23aledeauxsetmessages: + msg388956
2021-03-17 17:19:40terry.reedysetassignee: terry.reedy ->
messages: + msg388944
components: + Library (Lib), - IDLE
2021-03-17 16:26:11mark.dickinsonsetstatus: open -> closed
resolution: not a bug
stage: resolved
2021-03-17 16:21:27aledeauxsetmessages: + msg388936
2021-03-17 16:16:10aledeauxsetmessages: + msg388934
2021-03-17 16:14:57mark.dickinsonsetnosy: + mark.dickinson
messages: + msg388933
2021-03-17 16:06:02aledeauxcreate