You are not logged in.

#1 2017-06-01 23:50:33

oysteijo
Member
From: Stavanger
Registered: 2012-12-27
Posts: 13

[SOLVED] After upgrade I can't import numpy

Hi!

after todays pacman -Suy I was not longer able to import numpy in python.

>>> import numpy
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/numpy/core/__init__.py", line 16, in <module>
    from . import multiarray
ImportError: libgfortran.so.3: cannot open shared object file: No such file or directory

After a little research I see that this bug
https://bugs.archlinux.org/task/54258
was report and closed today. Why? I still think this is a valid bug.

I also wonder if this is related:
https://bbs.archlinux.org/viewtopic.php?id=226723

However I've tried install all gcc packages either with multilib or without as suggested. None fixes the numpy import problem for me.

Thanks,

Last edited by oysteijo (2017-06-02 00:06:39)

Offline

#2 2017-06-01 23:54:29

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,544

Re: [SOLVED] After upgrade I can't import numpy

Rebuild your AUR/foreign packages

Offline

#3 2017-06-02 00:06:04

oysteijo
Member
From: Stavanger
Registered: 2012-12-27
Posts: 13

Re: [SOLVED] After upgrade I can't import numpy

Thank you so much, Scimmia!

A simple pacman -Qm revealed that I'm using openblas-lapack (installed from AUR). I totally forgot that.
I solved it the simple way:
sudo pacman -S lapack cblas blas
resolving dependencies...
looking for conflicting packages...
:: blas and openblas-lapack are in conflict. Remove openblas-lapack? [y/N] y

Packages (4) openblas-lapack-0.2.19-1 [removal]  blas-3.7.0-2  cblas-3.7.0-2  lapack-3.7.0-2

Total Download Size:    2.11 MiB
Total Installed Size:   7.06 MiB
Net Upgrade Size:      -8.03 MiB

.... and the problem was solved!

Offline

Board footer

Powered by FluxBB