[SciPy-user] RPM building trouble

Michael Reimpell M.Reimpell at tu-bs.de
Tue Oct 5 04:24:12 CDT 2004


>     MR>  from scipy import plt import gui_thread gui_thread.start()
>     MR>  plt.plot((1,2,3))

> Could you please restart Python and try the same commands once again
> (immediately after it fails).  It should work then.  If it does not,
> please let the list know.  Thanks.

It does not work even when I restart Python and try again. Also, if I don't 
restart Python and try again, python segfaults.

My problem seems to be related to the LANG shell variable:

$ echo $LANG
de_DE at euro
$ python
Python 2.3.3 (#1, May  7 2004, 10:31:40)
[GCC 3.3.3 20040412 (Red Hat Linux 3.3.3-7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gui_thread
>>> gui_thread.start()
>>> from scipy import plt
>>> plt.plot((1,2,3))
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python2.3/site-packages/scipy/plt/interface.py", line 466, in 
plot
    validate_active()
  File "/usr/lib/python2.3/site-packages/scipy/plt/interface.py", line 57, in 
validate_active
    if _active is None: figure()
  File "/usr/lib/python2.3/site-packages/scipy/plt/interface.py", line 29, in 
figure
    _figure.append(plot_class(title=title))
  File "/usr/lib/python2.3/site-packages/scipy/plt/wxplt.py", line 629, in 
__init__
    wx.wxFrame.__init__(self, parent, id, title,pos,size)
  File "/usr/lib/python2.3/site-packages/wxPython/frames.py", line 151, in 
__init__
    self.this = framesc.new_wxFrame(*_args,**_kwargs)
  File "<string>", line 4, in new_wxFrame
AttributeError: AttrHolder instance has no attribute 'result'
>>> plt.plot((1,2,3))
Speicherzugriffsfehler

but with
$ LANG=C python
Python 2.3.3 (#1, May  7 2004, 10:31:40)
[GCC 3.3.3 20040412 (Red Hat Linux 3.3.3-7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gui_thread
>>> gui_thread.start()
>>> from scipy import plt
>>> plt.plot((1,2,3))
<scipy.plt.wxplt.plot_frame instance; proxy of C++ wxFrame instance at 
_9f463c8_wxFrame_p>

The plotting window appears as expected.

Kind regards,
Michael



More information about the SciPy-user mailing list