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

Import error #1036

Closed
ChayaSt opened this Issue Jun 8, 2018 · 4 comments

Comments

Projects
None yet
2 participants
@ChayaSt

ChayaSt commented Jun 8, 2018

I installed the latest version of psi4 via conda using the following command:
conda install psi4=1.2rc2 psi4-rt python=3.6 -c psi4/label/dev

When I try to import psi4, I get the following error:

In [1]: import psi4
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
~/anaconda3/lib/python3.6/site-packages/psi4/__init__.py in <module>()
     53 try:
---> 54     from . import core
     55 except ImportError as err:

ImportError: /home/chayas/anaconda3/lib/python3.6/site-packages/psi4/core.so: undefined symbol: __svml_sincos4_l9

During handling of the above exception, another exception occurred:

ImportError                               Traceback (most recent call last)
<ipython-input-1-becb93fbd2ca> in <module>()
----> 1 import psi4

~/anaconda3/lib/python3.6/site-packages/psi4/__init__.py in <module>()
     57         raise ImportError("{0}\nLikely cause: GCC >= 4.9 not in [DY]LD_LIBRARY_PATH".format(err))
     58     else:
---> 59         raise ImportError("{0}".format(err))
     60 
     61 from psi4.core import set_output_file, get_variable, set_variable, get_num_threads, set_num_threads

ImportError: /home/chayas/anaconda3/lib/python3.6/site-packages/psi4/core.so: undefined symbol: __svml_sincos4_l9
@loriab

This comment has been minimized.

Member

loriab commented Jun 8, 2018

Looks like an old library in there somewhere. (1) report conda list and (2) install into its own environment.

@ChayaSt

This comment has been minimized.

ChayaSt commented Jun 8, 2018

@loriab, it works in a clean environment.

Thanks!

@ChayaSt ChayaSt closed this Jun 8, 2018

@loriab

This comment has been minimized.

Member

loriab commented Jun 8, 2018

Ok, good. Now that psi4 is up-to-date with cb3 and defaults libraries, it's possible to install it into the base env (that was a bad idea when psi4 was distributing gcc52 alongside), but there's still enough turbulence among the big channels that own env is a safer bet.

Btw, if your base env is longstanding and contains gcc-5-mp, that's a non-modern-psi artifact that can be gotten rid of.

@loriab

This comment has been minimized.

Member

loriab commented Jun 8, 2018

extra note: svml error seems to pop up when switching Intel versions — not pinned down to compiler/mkl/etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment