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

Tests fail with out-of-source build #54

Closed
yurivict opened this issue Apr 14, 2021 · 2 comments
Closed

Tests fail with out-of-source build #54

yurivict opened this issue Apr 14, 2021 · 2 comments

Comments

@yurivict
Copy link

$ python3.7 testsuite/test_cint.py
Traceback (most recent call last):
  File "testsuite/test_cint.py", line 16, in <module>
    _cint = numpy.ctypeslib.load_library('libcint', os.path.abspath(os.path.join(__file__, '../../build')))
  File "/usr/local/lib/python3.7/site-packages/numpy/ctypeslib.py", line 157, in load_library
    raise OSError("no file with expected extension")
OSError: no file with expected extension

My build is in /usr/ports/science/libcint/work/.build/ as set by the FreeBSD ports framework.

@sunqm
Copy link
Owner

sunqm commented May 4, 2021

You may need to change this line to

_cint = numpy.ctypeslib.load_library('libcint', '/usr/ports/science/libcint/work/.build')

@yurivict
Copy link
Author

yurivict commented May 5, 2021

Now tests work, thanks!

@yurivict yurivict closed this as completed May 5, 2021
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