import numpy fails badly when rebuilding veusz

Bug #861303 reported by Scott Kitterman
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-numpy (Ubuntu)
Invalid
Critical
Barry Warsaw
Oneiric
Invalid
Critical
Barry Warsaw

Bug Description

Note: This also block fixing Bug 4869485.

Traceback (most recent call last):
  File "setup.py", line 31, in <module>
    import numpy
  File "/usr/lib/pymodules/python2.7/numpy/__init__.py", line 136, in <module>
    import add_newdocs
  File "/usr/lib/pymodules/python2.7/numpy/add_newdocs.py", line 9, in <module>
    from numpy.lib import add_newdoc
  File "/usr/lib/pymodules/python2.7/numpy/lib/__init__.py", line 4, in <module>
    from type_check import *
  File "/usr/lib/pymodules/python2.7/numpy/lib/type_check.py", line 8, in <module>
    import numpy.core.numeric as _nx
  File "/usr/lib/pymodules/python2.7/numpy/core/__init__.py", line 5, in <module>
    import multiarray
ImportError: /usr/lib/pymodules/python2.7/numpy/core/multiarray.so: undefined symbol: Py_InitModule4
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/apport_python_hook.py", line 59, in apport_excepthook
    from apport.fileutils import likely_packaged
  File "/usr/lib/python2.7/dist-packages/apport/__init__.py", line 1, in <module>
    from apport.report import Report
  File "/usr/lib/python2.7/dist-packages/apport/report.py", line 20, in <module>
    import apport.fileutils
  File "/usr/lib/python2.7/dist-packages/apport/fileutils.py", line 22, in <module>
    from apport.packaging_impl import impl as packaging
  File "/usr/lib/python2.7/dist-packages/apport/packaging_impl.py", line 19, in <module>
    import apt
  File "/usr/lib/python2.7/dist-packages/apt/__init__.py", line 21, in <module>
    import apt_pkg
ImportError: /usr/lib/python2.7/dist-packages/apt_pkg.so: undefined symbol: Py_InitModule4

Original exception was:
Traceback (most recent call last):
  File "setup.py", line 31, in <module>
    import numpy
  File "/usr/lib/pymodules/python2.7/numpy/__init__.py", line 136, in <module>
    import add_newdocs
  File "/usr/lib/pymodules/python2.7/numpy/add_newdocs.py", line 9, in <module>
    from numpy.lib import add_newdoc
  File "/usr/lib/pymodules/python2.7/numpy/lib/__init__.py", line 4, in <module>
    from type_check import *
  File "/usr/lib/pymodules/python2.7/numpy/lib/type_check.py", line 8, in <module>
    import numpy.core.numeric as _nx
  File "/usr/lib/pymodules/python2.7/numpy/core/__init__.py", line 5, in <module>
    import multiarray
ImportError: /usr/lib/pymodules/python2.7/numpy/core/multiarray.so: undefined symbol: Py_InitModule4
[47150 refs]

Changed in python-numpy (Ubuntu):
importance: Undecided → Critical
Changed in python-numpy (Ubuntu Oneiric):
milestone: none → ubuntu-11.10
Revision history for this message
Brian Murray (brian-murray) wrote :

I was unable to recreate this using python-numpy version 1:1.5.1-2ubuntu2 in Oneiric - importing numpy did not fail badly, nor did it fail at all actually.

Revision history for this message
Scott Kitterman (kitterman) wrote : Re: [Bug 861303] Re: import numpy fails badly

Yes, I should have mentioned in the bug that just trying import numpy in a
python shell works.

I was trying to do a rebuild of veusz and got this error during the veusz
clean target (see Bug 860570). I looked it it's setup.py and I didn't see
anything unusual that would cause this.

summary: - import numpy fails badly
+ import numpy fails badly when rebuilding veusz
Revision history for this message
Stefano Rivera (stefanor) wrote :

veusz rebuilds just fine on my machine

Revision history for this message
Scott Kitterman (kitterman) wrote : Re: [Bug 861303] Re: import numpy fails badly when rebuilding veusz

What architecture? Mine is i386. In any case, would you please upload it
then to fix the other bug.

Revision history for this message
Stefano Rivera (stefanor) wrote :

Tried both i386 and amd64. Sure, I'll upload now.

Revision history for this message
Stefano Rivera (stefanor) wrote :

veusz is building in the archive, without issue. I suspect this is a local problem, Scott

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

OK. Thanks for looking into it.

Steve Langasek (vorlon)
Changed in python-numpy (Ubuntu Oneiric):
assignee: nobody → Barry Warsaw (barry)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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