numpy.distutils provides inaccurate system information for ubuntu-11.10

Bug #818867 reported by Darren Dale
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
python-numpy (Debian)
Fix Released
Unknown
python-numpy (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

In the upcoming Ubuntu 11.10, the location of the X11 libraries and headers has changed. The new locations are /usr/{lib,include}/X11. Some third party packages, such as Enthought's Enable, depend on numpy.distutils to provide such information, but numpy is not aware of the changes in Ubuntu-11.10.

Running command ['/usr/bin/python', 'setup.py', 'develop', '--user'] in package enable
/usr/lib/pymodules/python2.7/numpy/distutils/system_info.py:527:
  UserWarning: Specified path /usr/local/include/python2.7 is invalid.
  warnings.warn('Specified path %s is invalid.' % d)
/usr/lib/pymodules/python2.7/numpy/distutils/system_info.py:527:
  UserWarning: Specified path /usr/include/suitesparse/python2.7 is invalid.
  warnings.warn('Specified path %s is invalid.' % d)
/usr/lib/pymodules/python2.7/numpy/distutils/system_info.py:527:
  UserWarning: Specified path is invalid.
  warnings.warn('Specified path %s is invalid.' % d)
/usr/lib/pymodules/python2.7/numpy/distutils/system_info.py:527:
  UserWarning: Specified path /usr/X11R6/lib64 is invalid.
  warnings.warn('Specified path %s is invalid.' % d)
/usr/lib/pymodules/python2.7/numpy/distutils/system_info.py:527:
  UserWarning: Specified path /usr/X11R6/lib is invalid.
  warnings.warn('Specified path %s is invalid.' % d)
/usr/lib/pymodules/python2.7/numpy/distutils/system_info.py:527:
  UserWarning: Specified path /usr/X11/lib64 is invalid.
  warnings.warn('Specified path %s is invalid.' % d)
/usr/lib/pymodules/python2.7/numpy/distutils/system_info.py:527:
  UserWarning: Specified path /usr/X11/lib is invalid.
  warnings.warn('Specified path %s is invalid.' % d)
/usr/lib/pymodules/python2.7/numpy/distutils/system_info.py:527:
  UserWarning: Specified path /usr/X11R6/include is invalid.
  warnings.warn('Specified path %s is invalid.' % d)
/usr/lib/pymodules/python2.7/numpy/distutils/system_info.py:527:
  UserWarning: Specified path /usr/X11/include is invalid.
  warnings.warn('Specified path %s is invalid.' % d)
Traceback (most recent call last):
  File "setup.py", line 56, in <module>
    config = configuration().todict()
  File "setup.py", line 48, in configuration
    config.add_subpackage('kiva')
  File "/usr/lib/pymodules/python2.7/numpy/distutils/misc_util.py",
    line 972, in add_subpackage
    caller_level = 2)
  File "/usr/lib/pymodules/python2.7/numpy/distutils/misc_util.py",
    line 941, in get_subpackage
    caller_level = caller_level + 1)
  File "/usr/lib/pymodules/python2.7/numpy/distutils/misc_util.py",
    line 878, in _get_configuration_from_setup_py
    config = setup_module.configuration(*args)
  File "kiva/setup.py", line 27, in configuration
    config.add_subpackage('agg')
  File "/usr/lib/pymodules/python2.7/numpy/distutils/misc_util.py",
    line 972, in add_subpackage
    caller_level = 2)
  File "/usr/lib/pymodules/python2.7/numpy/distutils/misc_util.py",
    line 941, in get_subpackage
    caller_level = caller_level + 1)
  File "/usr/lib/pymodules/python2.7/numpy/distutils/misc_util.py",
    line 878, in _get_configuration_from_setup_py
    config = setup_module.configuration(*args)
  File "kiva/agg/setup.py", line 235, in configuration
    x11_info = get_info('x11', notfound_action=2)
  File "/usr/lib/pymodules/python2.7/numpy/distutils/system_info.py",
    line 310, in get_info
    return cl().get_info(notfound_action)
  File "/usr/lib/pymodules/python2.7/numpy/distutils/system_info.py",
    line 461, in get_info
    raise self.notfounderror(self.notfounderror.__doc__)
numpy.distutils.system_info.X11NotFoundError: X11 libraries not found.

I've reported the problem upstream as well.

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: python-numpy 1:1.5.1-2ubuntu1
ProcVersionSignature: Ubuntu 3.0.0-7.9-generic 3.0.0
Uname: Linux 3.0.0-7-generic x86_64
Architecture: amd64
Date: Sun Jul 31 09:52:26 2011
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, user)
 LANG=en_US.UTF-8
 LANGUAGE=
SourcePackage: python-numpy
UpgradeStatus: Upgraded to oneiric on 2011-05-29 (63 days ago)

Related branches

Revision history for this message
Darren Dale (dsdale24) wrote :
Changed in python-numpy (Ubuntu):
status: New → Confirmed
Revision history for this message
raul acuña (raultron) wrote :

Hi,

Any workarounds for compiling enable with this bug?

Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) wrote :
Revision history for this message
Julian Taylor (jtaylor) wrote :

you should also be able to workaround it by applying this patch to enable:
https://mail.enthought.com/pipermail/enthought-dev/2011-July/029492.html

Changed in python-numpy (Debian):
status: Unknown → New
Revision history for this message
Scott Kitterman (kitterman) wrote :

apt-get install python-enable works for me.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python-numpy - 1:1.6.1-5ubuntu1

---------------
python-numpy (1:1.6.1-5ubuntu1) precise; urgency=low

  * debian/patches/search-multiarch-paths.patch: (LP: #818867)
    - add multiarch libdirs to numpy.distutils.system_info
  * Merge from Debian unstable, remaining changes:
    - debian/patches/20_disable-plot-extension.patch
       Disable plot_directive extension, and catch ImportErrors when
       matplotlib cannot be imported, which allows us to remove
       python-matplotlib from dependencies. This is required because
       python-numpy is in main, while python-matplotlib is in universe.
    - Build using dh_python2
      add bin/f2py* to .install files
    - keep Replaces: python-numpy (<< 1:1.3.0-4) in python-numpy-dbg
      for lucid upgrades
 -- Julian Taylor <email address hidden> Sat, 11 Feb 2012 12:55:21 +0100

Changed in python-numpy (Ubuntu):
status: Confirmed → Fix Released
Changed in python-numpy (Debian):
status: New → Fix Released
Changed in python-numpy (Debian):
status: Fix Released → New
Changed in python-numpy (Debian):
status: New → Fix Committed
Changed in python-numpy (Debian):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.