Error: _tkinter.TclError: invalid command name "::blt::graph" with function available_backends()

202 views
Skip to first unread message

mhecht

unread,
Mar 19, 2010, 5:05:15 AM3/19/10
to scitools
Hi again,

here is the next (beginners?) problem. With the backend test:

from scitools.std import *
backends = available_backends()
print 'Available backends:', backends

I get the following result using Python 2.5.4 under windows and the
newest versions of scitools, scipy,numpy, matplotlib:

scitools.easyviz backend is matplotlib

Checking if you have all the Easyviz backends...
Traceback (most recent call last):
File "plot.py", line 2, in <module>
backends = available_backends()
File "F:\Python25\Lib\site-packages\scitools\easyviz\utils.py", line
18, in available_backends
test_if_module_exists(module, abort=False, raise_exception=True,
msg='')
File "F:\Python25\Lib\site-packages\scitools\misc.py", line 18, in
test_if_module_exists
__import__(modulename)
File "F:\Python25\Lib\site-packages\scitools\easyviz\blt_.py", line
894, in <module>
plt = BltBackend() # create backend instance
File "F:\Python25\Lib\site-packages\scitools\easyviz\blt_.py", line
54, in __init__
self._init()
File "F:\Python25\Lib\site-packages\scitools\easyviz\blt_.py", line
65, in _init
self.figure(self.getp('curfig'))
File "F:\Python25\Lib\site-packages\scitools\easyviz\blt_.py", line
739, in figure
fig._g = Pmw.Blt.Graph(frame)
File "f:\Python25\lib\site-packages\Pmw\Pmw_1_3\lib\PmwBlt.py", line
260, in __init__
Tkinter.Widget.__init__(self, master, _graphCommand, cnf, kw)
File "F:\Python25\lib\lib-tk\Tkinter.py", line 1942, in __init__
(widgetName, self._w) + extra + self._options(cnf))
_tkinter.TclError: invalid command name "::blt::graph"


Other Tk applications work well.

mhecht

unread,
Mar 20, 2010, 8:35:53 PM3/20/10
to scitools
Hi,

I tried to go on withthe command and found that the error is produced
in module blt_.py
at line

fig._g = Pmw.Blt.Graph(frame)
fig._g.pack(expand=1, fill='both')

the Pmw module is installed with version 1.3.2 and I use Python 2.5.4

Reply all
Reply to author
Forward
0 new messages