I am trying to use
from skimage.metrics import structural_similarity
But I get the following in error logs:
2021-06-03 06:45:04,266: Error running WSGI application
2021-06-03 06:45:04,273: ImportError: /home/vaya/.virtualenvs/ve/lib/python3.8/site-packages/scipy/special/../../scipy.libs/libopenblasp-r0-085ca80a.3.9.so: cannot read file data
2021-06-03 06:45:04,273: File "/var/www/vaya_pythonanywhere_com_wsgi.py", line 16, in <module>
2021-06-03 06:45:04,274: from flask_app import app as application # noqa
2021-06-03 06:45:04,274:
2021-06-03 06:45:04,274: File "/home/vaya/mysite/flask_app.py", line 14, in <module>
2021-06-03 06:45:04,274: from skimage import metrics
2021-06-03 06:45:04,274:
2021-06-03 06:45:04,274: File "/home/vaya/.virtualenvs/ve/lib/python3.8/site-packages/skimage/metrics/__init__.py", line 7, in <module>
2021-06-03 06:45:04,274: from ._structural_similarity import structural_similarity
2021-06-03 06:45:04,274:
2021-06-03 06:45:04,274: File "/home/vaya/.virtualenvs/ve/lib/python3.8/site-packages/skimage/metrics/_structural_similarity.py", line 3, in <module>
2021-06-03 06:45:04,274: from scipy.ndimage import uniform_filter, gaussian_filter
2021-06-03 06:45:04,274:
2021-06-03 06:45:04,274: File "/home/vaya/.virtualenvs/ve/lib/python3.8/site-packages/scipy/ndimage/__init__.py", line 153, in <module>
2021-06-03 06:45:04,274: from .interpolation import *
2021-06-03 06:45:04,274:
2021-06-03 06:45:04,275: File "/home/vaya/.virtualenvs/ve/lib/python3.8/site-packages/scipy/ndimage/interpolation.py", line 37, in <module>
2021-06-03 06:45:04,275: from scipy import special
2021-06-03 06:45:04,275:
2021-06-03 06:45:04,275: File "/home/vaya/.virtualenvs/ve/lib/python3.8/site-packages/scipy/special/__init__.py", line 633, in <module>
2021-06-03 06:45:04,275: from . import _ufuncs
2021-06-03 06:45:04,275: ***************************************************
2021-06-03 06:45:04,275: If you're seeing an import error and don't know why,
2021-06-03 06:45:04,275: we have a dedicated help page to help you debug:
2021-06-03 06:45:04,275: https://help.pythonanywhere.com/pages/DebuggingImportError/
2021-06-03 06:45:04,275: ***************************************************
What could be wrong? I uninstalled and reinstalled scikit. Installed and used different versions of it. Still the same. However, when I only use
import skimage
Then no error is thrown.
BUT at the same time:
from skimage import metrics
gives above error