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

ImportError: libmkl_rt.so.2 in anaconda env #1391

Closed
ProfLeao opened this issue Sep 16, 2022 · 3 comments
Closed

ImportError: libmkl_rt.so.2 in anaconda env #1391

ProfLeao opened this issue Sep 16, 2022 · 3 comments

Comments

@ProfLeao
Copy link

Hello guys.
I'm getting the following error when trying to import cantera.

In [2]: import cantera as ct
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
Input In [2], in <cell line: 1>()
----> 1 import cantera as ct

File ~/anaconda3/envs/ct-env/lib/python3.9/site-packages/cantera/__init__.py:4, in <module>
      1 # This file is part of Cantera. See License.txt in the top-level directory or
      2 # at https://cantera.org/license.txt for license and copyright information.
----> 4 from ._cantera import *
      5 from ._cantera import __version__, __sundials_version__, __git_commit__
      6 from .composite import *

ImportError: libmkl_rt.so.2: cannot open shared object file: No such file or directory

I installed it in anaconda environment with:

conda create --name ct-env --channel cantera cantera ipython matplotlib jupyter

and my system is:

Linux reginaldo-gesesc 5.15.0-47-generic #51-Ubuntu SMP Thu Aug 11 07:51:15 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Could someone help me?

@bryanwweber
Copy link
Member

This looks like a duplicate of Cantera/conda-recipes#29, please feel free to reopen if it's not. Thanks!

@ProfLeao
Copy link
Author

This looks like a duplicate of Cantera/conda-recipes#29, please feel free to reopen if it's not. Thanks!

Sorry! In my intense workflow, I completely forgot about the previous issue, which I noticed in another context.

@bryanwweber
Copy link
Member

No problem ☺️

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