[SciPy-user] RPM building trouble

Michael Reimpell M.Reimpell at tu-bs.de
Tue Oct 5 02:56:28 EDT 2004


> > Also, recent versions of f2py fail completely building rpms with
> > "python setup.py bdits_rpm --fix-python", because of path problems in
> > setup.py (complains about missing 'src'-directory). This is a known issue
> > at least since F2PY-2.39.235_1693.
>
> Hmm, just tried building F2PY-2.43.239_1835 rpms in Red Hat Linux release
> 9 (Shrike) and had no problems. So, try the latest version of F2PY.
On fedora core 2 with f2py2e cvs from 2004-10-04, resp. F2PY-2.43.239_1835,
python setup.py bdist_rpm --fix-python 
fails with output: 
  
+ /usr/bin/python setup.py install --root=/var/tmp/F2PY-buildroot 
--record=INSTALLED_FILES
F2PY Version 2.43.239_1835
Traceback (most recent call last):
  File "setup.py", line 131, in ?
    if 'install' in sys.argv and need_scipy_distutils():
  File "setup.py", line 49, in need_scipy_distutils
    os.chdir('src')
OSError: [Errno 2] No such file or directory: 'src'
Error: Bad exit status from /var/tmp/rpm-tmp.28604 (%install)

> When use_main=1 then old hooks of gui_thread are used and these are
> unsupported. Try with gui_thread.start() and report any problems to this
> list. Of cource, it is assumed that you are using CVS version of scipy.

scipy CVS from 2004-10-04

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

fails with: 
 
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'

using
wxGTK-2.4.2-4.1.fc2.fr
wxGTK2-2.4.2-0.fdr.2.2
wxGTK-common-2.4.2-0.fdr.2.2
wxGTK2-gl-2.4.2-0.fdr.2.2


Btw, scipy.test() fails with scipy CVS from 2004-10-04:
======================================================================
FAIL: check_bad (scipy.linalg.matfuncs.test_matfuncs.test_sqrtm)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.3/site-packages/scipy/linalg/tests/test_matfuncs.py", 
line 102, in check_bad
    assert_array_almost_equal(dot(esa,esa),a)
  File "/usr/lib/python2.3/site-packages/scipy_test/testing.py", line 681, in 
assert_array_almost_equal
    assert cond,\
AssertionError:
Arrays are not almost equal (mismatch 6.25%):
        Array 1: [[ 1.       0.       0.       0.     ]
 [ 0.       0.03125  0.       0.     ]
 [ 0.       0.       0.03125  0.     ]
 [ ...
        Array 2: [[ 1.       0.       0.       1.     ]
 [ 0.       0.03125  0.       0.     ]
 [ 0.       0.       0.03125  0.     ]
 [ ...


----------------------------------------------------------------------
Ran 944 tests in 2.290s

FAILED (failures=1)

Probably a typo.

Kind regards,
Michael




More information about the SciPy-User mailing list