Replies: 2 comments 3 replies
-
Thanks for summarizing, |
Beta Was this translation helpful? Give feedback.
-
It looks like the Python 3.7.13
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
[<ipython-input-6-fed9734531b7>](https://localhost:8080/#) in <module>()
1 get_ipython().system('python --version')
----> 2 import mkl
[/usr/local/lib/python3.7/dist-packages/mkl/__init__.py](https://localhost:8080/#) in <module>()
47
48 with RTLD_for_MKL():
---> 49 from . import _mklinit
50
51 del RTLD_for_MKL
ImportError: libmkl_rt.so.2: cannot open shared object file: No such file or directory
---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.
To view examples of installing some common dependencies, click the
"Open Examples" button below.
--------------------------------------------------------------------------- In other words, the environment doesn't appear to have the requisite MKL shared libraries. The reason it's even assuming there's an MKL installation is due to the following: import numpy.distutils.system_info
numpy.distutils.system_info.get_info("blas_opt")
# {'define_macros': [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)],
# 'include_dirs': ['/usr/local/include'],
# 'libraries': ['mkl_rt', 'pthread'],
# 'library_dirs': ['/usr/local/lib']} This import numpy as np
np.__config__.get_info("blas_opt")
# {'define_macros': [('HAVE_CBLAS', None)],
# 'language': 'c',
# 'libraries': ['openblas', 'openblas'],
# 'library_dirs': ['/usr/local/lib'],
# 'runtime_library_dirs': ['/usr/local/lib']} I'm not sure which configuration is correct, but at least the one produced by the new approach appears to avoid MKL entirely. |
Beta Was this translation helpful? Give feedback.
-
Here's an example google colab that installs aesara 2.7.7 and then tries to import: https://colab.research.google.com/drive/1bPq3mcIlcw6mJQE8Gf8bcEdVhJdJSUpB#scrollTo=36fiA6TJjLJC
Error:
Setting
%env MKL_THREADING_LAYER=GNU
allows importing, but it's not clear why aesara can't figure that out itself, or what the problem is exactly.Output of check_blas.py:
CC @canyon289 @junpenglao @ColCarroll
Beta Was this translation helpful? Give feedback.
All reactions