Issue 25575: idle not working (original) (raw)

Issue25575

Created on 2015-11-06 23:46 by ccgm, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
Python idle problem.png ccgm,2015-11-06 23:46 PNG showing error message and sample code
Messages (3)
msg254242 - (view) Author: G (ccgm) Date: 2015-11-06 23:46
I'm teaching Python in a computer lab with 28, new this Sept., Mac Minis. One of the machines will run from the command line in Terminal but will not run using IDLE. I'm using the turtle module for graphics. I've attached a screen snap of the code and error message. The top part of the image shows error message using IDLE. The bottom part of the image shows the same code runs from the command line. I just updated the OS to OSX 11.11.1 and it still did not fix the issue. Any ideas on how to fix it?
msg254253 - (view) Author: Zachary Ware (zach.ware) * (Python committer) Date: 2015-11-07 03:29
Check the traceback carefully, it shows exactly where the problem is, though it's not immediately obvious until it's bitten you a time or two. You are running /Users/a5/Desktop/z.py which imports turtle, but you have a turtle.py in /Users/a5/Desktop which is found before the standard library turtle. Your command line test works because it is run from a different directory. Just remove or rename /Users/a5/Desktop/turtle.py and it will work. There have been other reports about this lately, and there are on-going discussions about what can be done to try to prevent this situation.
msg254297 - (view) Author: G (ccgm) Date: 2015-11-07 20:44
Hi, Thanks for getting back to me,. I will try this first thing Monday when I'm back at work. George > On Nov 6, 2015, at 8:29 PM, Zachary Ware <report@bugs.python.org> wrote: > > > Zachary Ware added the comment: > > Check the traceback carefully, it shows exactly where the problem is, though it's not immediately obvious until it's bitten you a time or two. You are running /Users/a5/Desktop/z.py which imports turtle, but you have a turtle.py in /Users/a5/Desktop which is found before the standard library turtle. Your command line test works because it is run from a different directory. Just remove or rename /Users/a5/Desktop/turtle.py and it will work. > > There have been other reports about this lately, and there are on-going discussions about what can be done to try to prevent this situation. > > ---------- > nosy: +zach.ware > resolution: -> not a bug > stage: -> resolved > status: open -> closed > > _______________________________________ > Python tracker <report@bugs.python.org> > <http://bugs.python.org/issue25575> > _______________________________________
History
Date User Action Args
2022-04-11 14:58:23 admin set github: 69761
2015-11-07 20:44:23 ccgm set messages: +
2015-11-07 03:29:56 zach.ware set status: open -> closednosy: + zach.waremessages: + resolution: not a bugstage: resolved
2015-11-06 23:46:50 ccgm create