[Tutor] Mistery - Help!

Gregor Lingl glingl@aon.at
Fri, 23 Nov 2001 21:47:51 +0100


This is a multi-part message in MIME format.

------=_NextPart_000_0012_01C17468.802C1D00
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Dear Pythonistas!

Problem-Description (questions ca 35 lines below):

I have a well working Active-Python 2.1 installation in C:\Python21
This includes the installation of Tkinter and IDLE.
Starting IDLE loads the Python2.1.1-Interpreter into the shell.

Now I additionally installed Python2.2b2 from python.org. into=20
C:\Betas\Python22
This works well including (its own copy of) IDLE

BUT NOW the Python2.1 - IDLE (C:\Python21\Tools\idle\idle.pyw)
shows the following strange behaviour:

1. It starts up with the wrong interpreter:

Python 2.2b2 (#26, Nov 16 2001, 11:44:11) [MSC 32 bit (Intel)] on win32
Type "copyright", "credits" or "license" for more information.
IDLE 0.8 -- press F1 for help
>>>=20

2. It uses a mixed sys.path:

>>> import sys
>>> sys.path
['C:\\Python21\\Tools\\idle', 'C:\\Python21\\Tools\\idle', =
'C:\\Betas\\Python22\\DLLs', 'C:\\Betas\\Python22\\lib', =
'C:\\Betas\\Python22\\lib\\lib-tk', 'C:\\Betas\\Python22', =
'C:\\Betas\\Python22\\lib\\site-packages']

Moreover several things don't work properly anymore, especially one
cannot close IDLE via the File-menu. Instead the following error-message =
occurs:

>>> Exception in Tkinter callback
Traceback (most recent call last):
  File "C:\Betas\Python22\lib\lib-tk\Tkinter.py", line 1292, in __call__
    return apply(self.func, args)
  File "C:\Python21\Tools\idle\PyShell.py", line 421, in close
    return PyShellEditorWindow.close(self)
TypeError: unbound method close() must be called with =
PyShellEditorWindow instance as first argument (got PyShell instance =
instead)

>>>

So here my QUESTIONS:

Where does IDLE get the information from concerning the Interpreter to =
use and also
the information converning the path?
NOTE 1: My Path (DOS-Shell) contains only C:\Python21 and NOT =
C:\Betas\Python22
NOTE 2: After deinstalling Python2.2b2 IDLE works as before (with =
Python2.1.1)

What changes are performed on my system through installing Python2.2b2?
=20
Are there configuration files, which can be edited to repair this =
situation?
If you don't know the answer, where should I look for it?

Gregor


------=_NextPart_000_0012_01C17468.802C1D00
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3D"Courier New" size=3D2>Dear Pythonistas!</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" size=3D2>Problem-Description (questions =
ca 35 lines=20
below):</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" size=3D2>I have a well working =
Active-Python 2.1=20
installation in C:\Python21</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>This includes the installation =
of Tkinter=20
and IDLE.</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>Starting IDLE loads the=20
Python2.1.1-Interpreter into the shell.</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" size=3D2>Now I additionally installed =
Python2.2b2=20
from python.org. into </FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>C:\Betas\Python22</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>This works well including (its =
own copy of)=20
IDLE</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" size=3D2>BUT NOW the Python2.1 - IDLE=20
(C:\Python21\Tools\idle\idle.pyw)</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>shows the following strange=20
behaviour:</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" size=3D2>1. It starts up with the wrong=20
interpreter:</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" size=3D2>Python 2.2b2 (#26, Nov 16 2001, =
11:44:11)=20
[MSC 32 bit (Intel)] on win32<BR>Type "copyright", "credits" or =
"license" for=20
more information.<BR>IDLE 0.8 -- press F1 for help<BR>&gt;&gt;&gt; =
</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" size=3D2>2. It uses a mixed =
sys.path:</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" size=3D2>&gt;&gt;&gt; import =
sys<BR>&gt;&gt;&gt;=20
sys.path<BR>['C:\\Python21\\Tools\\idle', 'C:\\Python21\\Tools\\idle',=20
'C:\\Betas\\Python22\\DLLs', 'C:\\Betas\\Python22\\lib',=20
'C:\\Betas\\Python22\\lib\\lib-tk', 'C:\\Betas\\Python22',=20
'C:\\Betas\\Python22\\lib\\site-packages']<BR></FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>Moreover several things don't =
work properly=20
anymore, especially one</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>cannot close IDLE via the =
File-menu.=20
Instead the following error-message occurs:</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" size=3D2>&gt;&gt;&gt; Exception in =
Tkinter=20
callback<BR>Traceback (most recent call last):<BR>&nbsp; File=20
"C:\Betas\Python22\lib\lib-tk\Tkinter.py", line 1292, in=20
__call__<BR>&nbsp;&nbsp;&nbsp; return apply(self.func, args)<BR>&nbsp; =
File=20
"C:\Python21\Tools\idle\PyShell.py", line 421, in =
close<BR>&nbsp;&nbsp;&nbsp;=20
return PyShellEditorWindow.close(self)<BR>TypeError: unbound method =
close() must=20
be called with PyShellEditorWindow instance as first argument (got =
PyShell=20
instance instead)</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" size=3D2>&gt;&gt;&gt;</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" size=3D2>So here my =
QUESTIONS:</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" size=3D2>Where does IDLE get the =
information from=20
concerning the Interpreter to use and also</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>the information converning the=20
path?</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>NOTE 1: My Path (DOS-Shell) =
contains only=20
C:\Python21 and NOT C:\Betas\Python22</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>NOTE 2: After deinstalling =
Python2.2b2 IDLE=20
works as before (with Python2.1.1)</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" size=3D2>What changes are performed on =
my system=20
through installing Python2.2b2?</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" size=3D2>Are there configuration files, =
which can be=20
edited to repair this situation?</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>If you don't know the answer, =
where should=20
I look for it?</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" size=3D2>Gregor</FONT></DIV>
<DIV><FONT face=3D"Courier New" =
size=3D2>&nbsp;</DIV></FONT></BODY></HTML>

------=_NextPart_000_0012_01C17468.802C1D00--