Public bug reported: Binary package hint: python-numpy
If you install a python package that uses C code with numpy, you get a compilation error: compile options: '-DNUMPY=1 -I/usr/include/python2.5 -I/usr/lib/python2.5/site-packages/numpy/core/include -I/usr/lib/python2.5/site-packages/numpy/numarray -I/usr/include/python2.5 -c' gcc: src/_correlatemodule.c In file included from src/_correlatemodule.c:8: /usr/lib/python2.5/site-packages/numpy/core/include/numpy/libnumarray.h:12:19: error: cfunc.h: No such file or directory Based on the package layout that I get from installing numpy from source, I would expect cfunc.h to be in /usr/lib/python2.5/site-packages/numpy/numarray/numpy/cfunc.h In python (and especially numpy, which has it's own copy of distutils) these compiler options are generated automatically. If the file were where I expect it, it would have been found. I do not use Ubuntu myself, but I periodically receive support requests from users who run in to this problem when installing my software on Ubuntu. I described the problem to a user who requested support for my python package, he eventually wrote: You are right. The file "cfunc.h" is missing. It is in a different directory and I just created a symbolic link to the real file's location. He didn't say where it was, but according to http://packages.ubuntu.com/hardy/i386/python-numpy/filelist, it is in /usr/share/pyshared/numpy/numarray/numpy/cfunc.h The -I parameters detected by numpy's distutils package do not include that location. I guess you have some compelling reason to move the file from the place where it would normally be, but you have to modify something else too. This most recent user who asked me for help with this problem reported this configuration: Hi. I'm trying to install Pyraf on Ubuntu 8.04. I have all the needed packages (but the versions might be newer than needed). ipython 0.8.1-2 lib72c2 20050501-2 python 2.5.2-0ubuntu1 python-numarray 1.5.2-3ubuntu2 python-numeric 24.2-8ubuntu2 pwm 1.3.2-3 python-urwid 0.9.8.1-1 python-numpy 1:1.0.4-6ubuntu3 readline 5.2-3build1 tcl 8.4 (there's an 8.5 just released) I expect you can reproduce this problem by trying to install the convolve package that is in ftp://ra.stsci.edu/pub/pyraf/v2.6/stsci_python_2.6.tar.gz The user used these commands to install the package: cd convolve python setup.py install Because of the nature of the bug, I expect that it affects everybody who tries to install python packages that contain compiled C code that depends on the numpy package. ** Affects: python-numpy (Ubuntu) Importance: Undecided Status: New -- numpy include file in wrong place https://bugs.launchpad.net/bugs/294212 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
