homepage

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.

classification
Title: idle not working
Type: behavior Stage: resolved
Components: IDLE Versions: Python 2.7
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: ccgm, zach.ware
Priority: normal Keywords:

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:23adminsetgithub: 69761
2015年11月07日 20:44:23ccgmsetmessages: + msg254297
2015年11月07日 03:29:56zach.waresetstatus: open -> closed

nosy: + zach.ware
messages: + msg254253

resolution: not a bug
stage: resolved
2015年11月06日 23:46:50ccgmcreate

AltStyle によって変換されたページ (->オリジナル) /