Run dependency is incorrectly set to libgfortran and not libgfortran-ng.
Kwant here is build against libgfortran.so.4 that is shipped with libgfortran-ng.
To reproduce bug use environment with conda without ANY libgfortran (this include system or conda one)
docker run --rm -it jupyter/minimal-notebook:1145fb1198b2 bash
conda install conda-forge::kwant==1.3.3
now importing kwant will fail
jovyan@c25a9f7eb4d7:~$ python -c "import kwant"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/opt/conda/lib/python3.6/site-packages/kwant/__init__.py", line 37, in <module>
exec('from . import {0}'.format(module))
File "<string>", line 1, in <module>
File "/opt/conda/lib/python3.6/site-packages/kwant/builder.py", line 20, in <module>
from .linalg import lll
File "/opt/conda/lib/python3.6/site-packages/kwant/linalg/__init__.py", line 10, in <module>
from . import lapack
ImportError: libgfortran.so.4: cannot open shared object file: No such file or directory
Installing libgfortran-ng fixes the problem. There had to be some change in how conda handle fortran dependencies as before libgfortran-ng happend to be installed automatically.
Run dependency is incorrectly set to
libgfortran
and notlibgfortran-ng
. Kwant here is build againstlibgfortran.so.4
that is shipped withlibgfortran-ng
.To reproduce bug use environment with conda without ANY libgfortran (this include system or conda one)
now importing kwant will fail
More on the error:
Installing
libgfortran-ng
fixes the problem. There had to be some change in how conda handle fortran dependencies as beforelibgfortran-ng
happend to be installed automatically.