Problems with idle under Python 2.3.a1

Nadav Horesh NadavH at envision.co.il
Thu Jan 9 06:16:20 EST 2003


I succeded to compile Python2.3.a1 under RH8.0 almost smoothly, and add 
some external module (mxTools, PIL, Numeric, numarray etc.). The only 
obstacle I had:

   1. I had to move manually libpython2.3.so to /usr/local/lib and rerun
      the make file.
   2. I have both Tk8.4 and 8.3, so I had to change one header file in
      PIL, in order to explictly use the 8.3 version.

But, what I could not figure out is, why when I try to save a new file I 
created via IDLE, I get the following announcement, and no file is saved:

[GCC 3.2.1] on linux2
Type "copyright", "credits" or "license" for more information.
IDLE 0.8 -- press F1 for help

##  Start here
 >>> Exception in Tkinter callback
Traceback (most recent call last):
  File "/usr/local/lib/python2.3/lib-tk/Tkinter.py", line 1306, in __call__
    return apply(self.func, args)
  File "/usr/local/lib/python2.3/site-packages/idlelib/IOBinding.py", 
line 255, in save
    self.save_as(event)
  File "/usr/local/lib/python2.3/site-packages/idlelib/IOBinding.py", 
line 263, in save_as
    filename = self.asksavefile()
  File "/usr/local/lib/python2.3/site-packages/idlelib/IOBinding.py", 
line 415, in asksavefile
    return self.savedialog.show(initialdir=dir, initialfile=base)
  File "/usr/local/lib/python2.3/lib-tk/tkCommonDialog.py", line 54, in show
    s = self._fixresult(w, s)
  File "/usr/local/lib/python2.3/lib-tk/tkFileDialog.py", line 58, in 
_fixresult
    path, file = os.path.split(result)
  File "/usr/local/lib/python2.3/posixpath.py", line 65, in split
    i = p.rfind('/') + 1
AttributeError: '_tkinter.Tcl_Obj' object has no attribute 'rfind'


Any ideas?
  Nadav.







More information about the Python-list mailing list