This repository was archived by the owner on Nov 17, 2025. It is now read-only.
Replies: 2 comments 3 replies
|
Thanks for summarizing, |
0 replies
|
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. |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
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=GNUallows 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
All reactions