[Bug 956901] [NEW] Failing `import numpy.distutils.core` with python-numpy package installed

Logi logi at belgingur.is
Fri Mar 16 12:19:41 UTC 2012


Public bug reported:

In the source folder for http://code.google.com/p/netcdf4-python/
running `python setup.py install` as described in the README file fails
with:

  logi at magni:~/python-lib/netCDF4-0.9.9$ python setup.py install
  Traceback (most recent call last):
    File "setup.py", line 2, in <module>
      from numpy.distutils.core  import setup, Extension
    File "/usr/lib/python2.7/dist-packages/numpy/distutils/core.py", line 25, in <module>
      from numpy.distutils.command import config, config_compiler, \
    File "/usr/lib/python2.7/dist-packages/numpy/distutils/command/build_ext.py", line 16, in <module>
      from numpy.distutils.system_info import combine_paths
    File "/usr/lib/python2.7/dist-packages/numpy/distutils/system_info.py", line 205, in <module>
      p = sp.Popen(["dpkg-architecture", "-qDEB_HOST_MULTIARCH"], stdout=sp.PIPE)
    File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
      errread, errwrite)
    File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child
      raise child_exception
  OSError: [Errno 2] No such file or directory

This has worked on Ubuntu 11.10, an earlier iteration of 12.04 (although
the exact package version number is lost in the mists of time) and a
Debian testing.

Running the same line interactively, either identically as `from
numpy.distutils.core  import setup, Extension` or as `import
numpy.distutils.core` fails in the same way.

To verify: 
  logi at magni:~/python-lib/netCDF4-0.9.9$ file /usr/lib/python2.7/dist-packages/numpy/core/__init__.py
  /usr/lib/python2.7/dist-packages/numpy/core/__init__.py: symbolic link to `../../../../../share/pyshared/numpy/core/__init__.py'
  logi at magni:~/python-lib/netCDF4-0.9.9$ file /usr/lib/python2.7/dist-packages/numpy/core/../../../../../share/pyshared/numpy/core/__init__.py
  /usr/lib/python2.7/dist-packages/numpy/core/../../../../../share/pyshared/numpy/core/__init__.py: Python script, ASCII text executable

  logi at magni:~/python-lib/netCDF4-0.9.9$ python
  Python 2.7.3rc1 (default, Mar 10 2012, 08:44:28) 
  [GCC 4.6.3] on linux2

  logi at magni:~/python-lib/netCDF4-0.9.9$ dpkg --list *numpy*
  [headers]
  ii  python-numpy                    1:1.6.1-5ubuntu1                Numerical Python adds a fast array facility to the Python language
  [uninstalled packages]

** Affects: python-numpy (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python-numpy in Ubuntu.
https://bugs.launchpad.net/bugs/956901

Title:
  Failing `import numpy.distutils.core` with python-numpy package
  installed

Status in “python-numpy” package in Ubuntu:
  New

Bug description:
  In the source folder for http://code.google.com/p/netcdf4-python/
  running `python setup.py install` as described in the README file
  fails with:

    logi at magni:~/python-lib/netCDF4-0.9.9$ python setup.py install
    Traceback (most recent call last):
      File "setup.py", line 2, in <module>
        from numpy.distutils.core  import setup, Extension
      File "/usr/lib/python2.7/dist-packages/numpy/distutils/core.py", line 25, in <module>
        from numpy.distutils.command import config, config_compiler, \
      File "/usr/lib/python2.7/dist-packages/numpy/distutils/command/build_ext.py", line 16, in <module>
        from numpy.distutils.system_info import combine_paths
      File "/usr/lib/python2.7/dist-packages/numpy/distutils/system_info.py", line 205, in <module>
        p = sp.Popen(["dpkg-architecture", "-qDEB_HOST_MULTIARCH"], stdout=sp.PIPE)
      File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
        errread, errwrite)
      File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child
        raise child_exception
    OSError: [Errno 2] No such file or directory

  This has worked on Ubuntu 11.10, an earlier iteration of 12.04
  (although the exact package version number is lost in the mists of
  time) and a Debian testing.

  Running the same line interactively, either identically as `from
  numpy.distutils.core  import setup, Extension` or as `import
  numpy.distutils.core` fails in the same way.

  To verify: 
    logi at magni:~/python-lib/netCDF4-0.9.9$ file /usr/lib/python2.7/dist-packages/numpy/core/__init__.py
    /usr/lib/python2.7/dist-packages/numpy/core/__init__.py: symbolic link to `../../../../../share/pyshared/numpy/core/__init__.py'
    logi at magni:~/python-lib/netCDF4-0.9.9$ file /usr/lib/python2.7/dist-packages/numpy/core/../../../../../share/pyshared/numpy/core/__init__.py
    /usr/lib/python2.7/dist-packages/numpy/core/../../../../../share/pyshared/numpy/core/__init__.py: Python script, ASCII text executable

    logi at magni:~/python-lib/netCDF4-0.9.9$ python
    Python 2.7.3rc1 (default, Mar 10 2012, 08:44:28) 
    [GCC 4.6.3] on linux2

    logi at magni:~/python-lib/netCDF4-0.9.9$ dpkg --list *numpy*
    [headers]
    ii  python-numpy                    1:1.6.1-5ubuntu1                Numerical Python adds a fast array facility to the Python language
    [uninstalled packages]

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-numpy/+bug/956901/+subscriptions




More information about the foundations-bugs mailing list