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

4.0 install in colab aesara error #5862

Closed
dirknbr opened this issue Jun 7, 2022 · 2 comments
Closed

4.0 install in colab aesara error #5862

dirknbr opened this issue Jun 7, 2022 · 2 comments
Labels

Comments

@dirknbr
Copy link

dirknbr commented Jun 7, 2022

I installed pymc4 in google colab and got this error when importing the library

!pip install pymc==4.0.0
import pymc as pm

NoSectionError                            Traceback (most recent call last)

/usr/local/lib/python3.7/dist-packages/aesara/configparser.py in fetch_val_for_key(self, key, delete_key)
    236             try:
--> 237                 return self._aesara_cfg.get(section, option)
    238             except InterpolationError:

14 frames

NoSectionError: No section: 'blas'


During handling of the above exception, another exception occurred:

KeyError                                  Traceback (most recent call last)

KeyError: 'blas__ldflags'


During handling of the above exception, another exception occurred:

ModuleNotFoundError                       Traceback (most recent call last)

ModuleNotFoundError: No module named 'mkl'


During handling of the above exception, another exception occurred:

RuntimeError                              Traceback (most recent call last)

/usr/local/lib/python3.7/dist-packages/aesara/link/c/cmodule.py in check_mkl_openmp()
   2683 you set this flag and don't set the appropriate environment or make
   2684 sure you have the right version you *will* get wrong results.
-> 2685 """
   2686         )
   2687 

RuntimeError: 
Could not import 'mkl'.  If you are using conda, update the numpy
packages to the latest build otherwise, set MKL_THREADING_LAYER=GNU in
your environment for MKL 2018.

If you have MKL 2017 install and are not in a conda environment you
can set the Aesara flag blas__check_openmp to False.  Be warned that if
you set this flag and don't set the appropriate environment or make
sure you have the right version you *will* get wrong results.
@ricardoV94
Copy link
Member

This is a known issue with Aesara on colab, you can use this magic command before importing pymc or aesara to fix it: %env MKL_THREADING_LAYER=GNU

@ricardoV94
Copy link
Member

aesara-devs/aesara#818

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

No branches or pull requests

2 participants