Pmw.Blt and python 2.0/2.1

David Buscher dfb at mrao.cam.ac.uk
Fri Mar 9 13:46:29 CET 2001


I've used Pmw.Blt with Python 1.5.2 with no problems, but I can't get it
to work with Python 2.0 or 2.1. I can get Pmw to work fine, but not
Pmw.Blt. Is there a known problem with this? Here is the session
transcript:

Python 2.1b1 (#1, Mar  8 2001, 20:37:37)
[GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)]
on linux2
Type "copyright", "credits" or "license" for more
information.
>>> from Tkinter import *
>>> root=Tk()
>>> import Pmw
>>> Pmw.Blt.haveblt(root)
0
>>> root.tk.call('package', 'require', 'BLT')
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
TclError: couldn't load file "/usr/lib/libBLT.so.2.4":
/usr/lib/libBLT.so.2.4: undefined symbol:
Tk_CanvasTagsParseProc
>

The same dialogue on python1.5 has no problems

Python 1.5.2 (#1, Feb  1 2000, 16:32:16)  [GCC
egcs-2.91.66 19990314/Linux (egcs- on linux-i386
Copyright 1991-1995 Stichting Mathematisch Centrum,
Amsterdam
>>> from Tkinter import *
>>> root=Tk()
>>> import Pmw
>>> Pmw.Blt.haveblt(root)
1
>>> root.tk.call('package', 'require', 'BLT')
'2.4'

I'm running Redhat 6.2, and the 1.5.2 python is 'out of the box', while
the 2.1 is compiled from source - could this cause problems?

My deduction from this output is that this is a problem with the way
tkinter loads shared libraries - has this changed from 1.5 to 2.0/2.1? I'm
using the same shared libraries for tk and blt in all cases.

thanks
David

--------------------------------------+----------------------------------
 Cavendish Laboratory                 |  Phone +44 1223 337302
 Madingley Road                       |  Fax   +44 1223 354599
 Cambridge CB3 0HE, UK                |  http://www.mrao.cam.ac.uk/~dfb
--------------------------------------+----------------------------------




More information about the Python-list mailing list