[Idle-dev] Strange error

Tony Lownds tony@lownds.com
Tue, 24 Dec 2002 09:20:25 -0800


--============_-1171372026==_ma============
Content-Type: text/plain; charset="us-ascii" ; format="flowed"

Hi,

I'm seeing a strange bug.

When I start up IDLE, and enter a line into the untitled window, I 
get this message:

Exception in Tkinter callback
Traceback (most recent call last):
   File 
"/BinaryCache/python/python-3.root~193/usr/lib/python2.2/lib-tk/Tkinter.py", 
line 1292, in __call__
     return apply(self.func, args)
   File "idlelib/EditorWindow.py", line 1014, in newline_and_indent_event
     if line == sys.ps1:
AttributeError: 'module' object has no attribute 'ps1'

The error stops happening if I have opened a Python Shell window.

Anyone else seeing this?

-Tony
--============_-1171372026==_ma============
Content-Type: text/html; charset="us-ascii"

<!doctype html public "-//W3C//DTD W3 HTML//EN">
<html><head><style type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
 --></style><title>Strange error</title></head><body>
<div><tt><font size="+1" color="#000000">Hi,</font></tt></div>
<div><tt><font size="+1" color="#000000"><br></font></tt></div>
<div><tt><font size="+1" color="#000000">I'm seeing a strange
bug.</font></tt></div>
<div><tt><font size="+1" color="#000000"><br></font></tt></div>
<div><tt><font size="+1" color="#000000">When I start up IDLE, and
enter a line into the untitled window, I get this
message:</font></tt></div>
<div><tt><font size="+1" color="#000000"><br></font></tt></div>
<div><tt><font size="+1" color="#000000">Exception in Tkinter
callback<br>
Traceback (most recent call last):<br>
&nbsp; File
&quot;/BinaryCache/python/python-3.root~193/usr/lib/python2.2/lib-tk/<span
></span>Tkinter.py&quot;, line 1292, in __call__<br>
&nbsp;&nbsp;&nbsp; return apply(self.func, args)<br>
&nbsp; File &quot;idlelib/EditorWindow.py&quot;, line 1014, in
newline_and_indent_event<br>
&nbsp;&nbsp;&nbsp; if line == sys.ps1:<br>
AttributeError: 'module' object has no attribute 'ps1'</font></tt><br>
<tt><font size="+1" color="#000000"></font></tt></div>
<div><tt><font size="+1" color="#000000">The error stops happening if
I have opened a Python Shell window.</font></tt></div>
<div><tt><font size="+1" color="#000000"><br></font></tt></div>
<div><tt><font size="+1" color="#000000">Anyone else seeing
this?</font></tt></div>
<div><tt><font size="+1" color="#000000"><br></font></tt></div>
<div><tt><font size="+1" color="#000000">-Tony</font></tt></div>
</body>
</html>
--============_-1171372026==_ma============--