Hi,
I tried to do an import psi4
in a python file with the latest psi4 v1.4.0rc3+, and I got
Traceback (most recent call last):
File "/home/username/psi4conda/lib/python3.7/site-packages/psi4/__init__.py", line 55, in <module>
from . import core
ImportError: cannot import name 'core' from partially initialized module 'psi4' (most likely due to a circular import) (/home/username/psi4conda/lib/python3.7/site-packages/psi4/__init__.py)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/username/psi4conda/lib/python3.7/site-packages/psi4/__init__.py", line 60, in <module>
raise ImportError("{0}".format(err))
ImportError: cannot import name 'core' from partially initialized module 'psi4' (most likely due to a circular import) (/home/username/psi4conda/lib/python3.7/site-packages/psi4/__init__.py)
In my .bashrc
file, it is
export PATH="/home/username/anaconda3/lib/python3.7/site-packages:$PATH"
export PATH=/home/username/psi4conda/bin:$PATH
export PYTHONPATH=/home/username/psi4conda/lib//python3.7/site-packages:$PYTHONPATH
I checked the post
Unable to import Psi4 in python - Psi4 – Open-Source Quantum Chemistry (psicode.org)
and used
psi4 --psiapi
and
conda create -n p4dev psi4 -c psi4/label/dev # latest version
still the same issue