Created attachment 544452 [details] emerge info GCC 8.2.0 bumps libgfortran.so version to 5, but numpy-1.14.5[lapack] requires libgfortran.so.4. >>> import numpy Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib64/python3.5/site-packages/numpy/__init__.py", line 142, in <module> from . import add_newdocs File "/usr/lib64/python3.5/site-packages/numpy/add_newdocs.py", line 13, in <module> from numpy.lib import add_newdoc File "/usr/lib64/python3.5/site-packages/numpy/lib/__init__.py", line 19, in <module> from .polynomial import * File "/usr/lib64/python3.5/site-packages/numpy/lib/polynomial.py", line 20, in <module> from numpy.linalg import eigvals, lstsq, inv File "/usr/lib64/python3.5/site-packages/numpy/linalg/__init__.py", line 51, in <module> from .linalg import * File "/usr/lib64/python3.5/site-packages/numpy/linalg/linalg.py", line 31, in <module> from numpy.linalg import lapack_lite, _umath_linalg ImportError: libgfortran.so.4: cannot open shared object file: No such file or directory
To reproduce: install sys-devel/gcc-8.2.0[fortran] dev-python/numpy-1.14.5[lapack], open python shell and import numpy Expected result: numpy-1.14.5[lapack] should depend on <gcc-8.2.0, 7.3.0 works.
For me it turned out not to be a numpy problem. Rebuilt: sci-libs/lapack-reference sci-libs/blas-reference and import numpy works again. I guess the point is as the wiki suggests: https://wiki.gentoo.org/wiki/Upgrading_GCC to run revdep-rebuild *after* uninstalling the old gcc.
(In reply to Chris Mayo from comment #2) > For me it turned out not to be a numpy problem. Rebuilt: > > sci-libs/lapack-reference > sci-libs/blas-reference > > and import numpy works again. > > I guess the point is as the wiki suggests: > https://wiki.gentoo.org/wiki/Upgrading_GCC > > to run revdep-rebuild *after* uninstalling the old gcc. rebuilding after uninstalling the old gcc solved the problem. Thank you.