Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pvpython : ImportError: libgfortran.so.4 #515

Open
skoudoro opened this issue Jun 15, 2020 · 1 comment
Open

pvpython : ImportError: libgfortran.so.4 #515

skoudoro opened this issue Jun 15, 2020 · 1 comment
Assignees

Comments

@skoudoro
Copy link

Hi Paraview Team.

I am using kitware/paraview:pvw-v5.7.1-egl-py3 docker image. If your server.py tries to do this following import from scipy.ndimage import map_coordinates you got the following error:

  File "/usr/local/lib/python3.6/dist-packages/fury/utils.py", line 5, in <module>
    from scipy.ndimage import map_coordinates
  File "/opt/paraview/lib/python3.6/site-packages/scipy/ndimage/__init__.py", line 161, in <module>
    from .filters import *
  File "/opt/paraview/lib/python3.6/site-packages/scipy/ndimage/filters.py", line 38, in <module>
    from . import _ni_docstrings
  File "/opt/paraview/lib/python3.6/site-packages/scipy/ndimage/_ni_docstrings.py", line 4, in <module>
    from scipy.misc import doccer
  File "/opt/paraview/lib/python3.6/site-packages/scipy/misc/__init__.py", line 68, in <module>
    from scipy.interpolate._pade import pade as _pade
  File "/opt/paraview/lib/python3.6/site-packages/scipy/interpolate/__init__.py", line 175, in <module>
    from .interpolate import *
  File "/opt/paraview/lib/python3.6/site-packages/scipy/interpolate/interpolate.py", line 20, in <module>
    import scipy.linalg
  File "/opt/paraview/lib/python3.6/site-packages/scipy/linalg/__init__.py", line 190, in <module>
    from .misc import *
  File "/opt/paraview/lib/python3.6/site-packages/scipy/linalg/misc.py", line 5, in <module>
    from .blas import get_blas_funcs
  File "/opt/paraview/lib/python3.6/site-packages/scipy/linalg/blas.py", line 214, in <module>
    from scipy.linalg import _fblas
ImportError: libgfortran.so.4: cannot open shared object file: No such file or directory

To fix this issue temporarily I just renamed /opt/paraview/lib/python3.6/site-packages/scipy to /opt/paraview/lib/python3.6/site-packages/buggy_scipy and installed a new version via pip3.

@scottwittenburg
Copy link
Contributor

Thanks for reporting this @skoudoro. I see we're using the paraview superbuild to build and install some python packages like matplotlib and scipy (see here), but maybe we should install those in the system python within the container instead. Then we could update this section with a --upgrade, so if you put scipy in requirements.txt in the /pvw mounted directory, it would install the latest version when the container starts, I think solving the problem you discovered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants