[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

building python-numpy on




Hi,

I was trying to rebuild python-numpy 1.6.1-3 (the version currently in experimental) on squeeze. A straight

debuild binary

seems to come really close. I do need to get python-sphinx from backports.

It errors out at the end with the following error. I don't have any idea how to fix it.

Can anyone help me get past this? Please CC me on any reply, I'm not subscribed. Thanks.

                                                     Regards, Faheem

*************************************************************************

Ran 3541 tests in 44.650s

OK (KNOWNFAIL=3, SKIP=4)
[255665 refs]
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "numpy/__init__.py", line 127, in <module>
    raise ImportError(msg)
ImportError: Error importing numpy: you should not try to import numpy from its source directory; please exit the numpy source tree, and relaunch
        your python intepreter from there.
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "numpy/__init__.py", line 127, in <module>
    raise ImportError(msg)
ImportError: Error importing numpy: you should not try to import numpy from its source directory; please exit the numpy source tree, and relaunch
        your python intepreter from there.
[7401 refs]
make[1]: [override_dh_auto_install] Error 1 (ignored)
make[1]: Leaving directory `/usr/local/src/numpy/python-numpy-1.6.1'
   debian/rules override_dh_install
make[1]: Entering directory `/usr/local/src/numpy/python-numpy-1.6.1'
# add shebang information to f2py script
for v in 2.6 2.5; do \
sed -i "1s,#!.*python[^ ]*\(.*\),#!/usr/bin/python$v," debian/tmp/usr/bin/f2py$v; \ cp -a debian/tmp/usr/bin/f2py$v debian/tmp/usr/bin/f2py$v-dbg ; \ sed -i "1s,#!.*python[^ ]*\(.*\),#!/usr/bin/python$v-dbg," debian/tmp/usr/bin/f2py$v-dbg; \
        done
# install unversioned f2py script
dh_link usr/bin/f2py2.6 usr/bin/f2py
dh_link -ppython-numpy-dbg usr/bin/f2py2.6-dbg usr/bin/f2py-dbg
# moving those scripts away until after pysupport has run, to not
# generate depends on pythonx.y
mkdir debian/tmp2
mv debian/tmp/usr/bin/* debian/tmp2
dh_install
cp: cannot stat `debian/tmp/doc/build/html': No such file or directory
dh_install: cp -a debian/tmp/doc/build/html debian/python-numpy-doc//usr/share/doc/python-numpy-doc// returned exit code 1
make[1]: *** [override_dh_install] Error 2
make[1]: Leaving directory `/usr/local/src/numpy/python-numpy-1.6.1'
make: *** [binary] Error 2
debuild: fatal error at line 1307:
couldn't exec fakeroot debian/rules: Bad file descriptor


Reply to: