FS#21135 - cannot import numpy

Attached to Project: Arch Linux
Opened by Doug Penner (DarwinSurvivor) - Thursday, 07 October 2010, 19:14 GMT
Last edited by Ronald van Haren (pressh) - Friday, 08 October 2010, 09:26 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Ronald van Haren (pressh)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 7
Private No

Details

Description:
when trying to import numpy, I first get
ImportError: /usr/lib/liblapack.so: undefined symbol: blas_zhemv2_x_

if I then try to import numpy.core (which should work) I get
AttributeError: 'module' object has no attribute 'core'

After that, any attempt to simply import numpy gives me
AttributeError: 'module' object has no attribute 'core'

I get the same result on my 64bit machine as my 32bit one.

I have found the following reports of the same problem.
https://bugzilla.redhat.com/show_bug.cgi?id=496218
numpy-discussion@scipy.org/msg16910.html"> http://www.mail-archive.com/numpy-discussion@scipy.org/msg16910.html
http://mail.scipy.org/pipermail/numpy-discussion/2006-August/022734.html

Additional info:
* package version(s)
extra/python-numpy 1.4.1-1

* config and/or log files etc.
numpy_test.txt is the output of typing
=== start ===
import numpy
from numpy import core
import numpy
=== end ===
into ipython.

Steps to reproduce:
try to import numpy in python.
This task depends upon

Closed by  Ronald van Haren (pressh)
Friday, 08 October 2010, 09:26 GMT
Reason for closing:  Fixed
Additional comments about closing:  lapack 3.2.2-2

importing numpy in python now works, re-open if something else is still broken
Comment by Ionut Biru (wonder) - Thursday, 07 October 2010, 20:00 GMT
i think is a bug in lapack
Comment by Allan McRae (Allan) - Friday, 08 October 2010, 02:58 GMT
This occurred with the recent updates to lapack. Downgrading to lapack-3.2.1-2 "fixes" the issue.
Comment by Doug Penner (DarwinSurvivor) - Friday, 08 October 2010, 06:46 GMT
What's the easiest way to downgrade lapack?
Comment by Shira K (Shirakawasuna) - Friday, 08 October 2010, 07:21 GMT
Extra R (pacman -S r) libraries have a similar issue, specifically pcaPP from the bioconductor suite. Downgrading to 3.2.1 fixes the issue in this case as well.

Doug: pacman -U /var/cache/pacman/pkg/lapack-3.2.1-2-x86_64.pkg.tar.xz . blas will need to be downgraded as well and an older package should be in the same location. If not, find a repo that keeps around old files (search 'downgrading' in the Archlinux wiki).
Comment by Ronald van Haren (pressh) - Friday, 08 October 2010, 08:42 GMT
I added some stuff in the lapack Makefile which doesn't seem to belong there (yay for upstream to provide decent makefiles). I'm busy fixing it.

Loading...