Hi Eryk,
If I do:
"c:\Program Files\Python36\python.exe" -m idlelib beersong.py
I see the following :
=======================
Traceback (most recent call last):
File "c:\Program Files\Python36\lib\idlelib\pyshell.py", line 4, in <module>
from tkinter import *
File "C:\Users\kinyip\Desktop\Python Codes\tkinter.py", line 1, in <module>
from turtle import *
File "c:\Program Files\Python36\lib\turtle.py", line 116, in <module>
from tkinter import simpledialog
ImportError: cannot import name 'simpledialog'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\Program Files\Python36\lib\runpy.py", line 193, in
_run_module_as_main
"__main__", mod_spec)
File "c:\Program Files\Python36\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "c:\Program Files\Python36\lib\idlelib\__main__.py", line 6, in <module>
import idlelib.pyshell
File "c:\Program Files\Python36\lib\idlelib\pyshell.py", line 7, in <module>
"Your Python may not be configured for Tk. **", file=sys.__stderr__)
NameError: name 'sys' is not defined
========================================================================================
Any suggestion ?
Kin
-----Original Message-----
From: eryk sun [mailto:[email protected]]
Sent: Friday, April 28, 2017 8:27 AM
To: [email protected]
Cc: Yip, Kin <[email protected]>
Subject: Re: "Edit with IDLE" doesn't work any more ?
On Fri, Apr 28, 2017 at 12:04 PM, Yip, Kin <[email protected]> wrote:
>
> I've tried to do :
>
> "c:\program files\python36\pythonw.exe" -m idlelib mypythoncodes.py
Change this to use "python.exe" and run it from a command prompt. This way you
can see the traceback if an exception is raised.
--
https://mail.python.org/mailman/listinfo/python-list