[SciPy-user] RPM building trouble

Pearu Peterson pearu at scipy.org
Tue Oct 5 03:13:48 CDT 2004



On Tue, 5 Oct 2004, Michael Reimpell wrote:

>
>>> 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)

Sorry, I wasn't clear enough: to avoid the above error, use 
F2PY-2.43.239_1835 or higher.

>> 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))

Try the following commands from a fresh Python prompt:

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

Hmm, I thought gui_thread would warn if there have been wx imported before 
gui_thread.start(). Now that I try it, also

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

works fine here.

> Btw, scipy.test() fails with scipy CVS from 2004-10-04:
> ======================================================================
> FAIL: check_bad (scipy.linalg.matfuncs.test_matfuncs.test_sqrtm)
..
> Probably a typo.

Nope, its a bug.

Pearu



More information about the SciPy-user mailing list