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

library load failed after install #5

Open
zhcui opened this issue Mar 19, 2022 · 3 comments
Open

library load failed after install #5

zhcui opened this issue Mar 19, 2022 · 3 comments

Comments

@zhcui
Copy link

zhcui commented Mar 19, 2022

Hi all,

I followed the installation (for my locally installed pyscf) in the README.
However, an error occurred:

Traceback (most recent call last):
  File "hChain.py", line 3, in <module>
    from pyscf.shciscf import shci
  File "/home/zhcui/program/shciscf/pyscf/shciscf/shci.py", line 64, in <module>
    shciLib = load_library("libshciscf")
  File "/home/zhcui/program/pyscf_ZHC_kpt_symm/pyscf/lib/misc.py", line 53, in load_library
    return numpy.ctypeslib.load_library(libname, _loaderpath)
  File "/home/zhcui/program/anaconda3_new/lib/python3.8/site-packages/numpy/ctypeslib.py", line 155, in load_library
    raise OSError("no file with expected extension")
OSError: no file with expected extension

Could you take a look? Thanks!

Best,
Zhihao

@sunqm
Copy link
Contributor

sunqm commented Mar 20, 2022

Where was the pyscf core module installed? Do you find libshci.so under /home/zhcui/program/shciscf/pyscf/lib ?

@jiangtong1000
Copy link

Hi, I met this issue too. There is no .so file in both /path-to/shciscf/pyscf/lib and /path-to/shciscf/pyscf/shciscf.

@jiangtong1000
Copy link

worked around it by cp ~/.local/lib/python3.8/site-packages/pyscf/lib/libshciscf.so /path-to/pyscf/pyscf/lib/

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

3 participants