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 not loaded: libdarknet.so #18

Closed
nkalupahana opened this issue Jul 1, 2018 · 1 comment
Closed

Library not loaded: libdarknet.so #18

nkalupahana opened this issue Jul 1, 2018 · 1 comment

Comments

@nkalupahana
Copy link

After installing this library from source (setting OPENCV=1 and DARKNET_HOME to the source directory of darknet, which I cloned from the darknet repo and ran make on), when running import pydarknet, I get the following output:

>>> import pydarknet
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pydarknet.cpython-36m-darwin.so, 2): Library not loaded: libdarknet.so
  Referenced from: /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pydarknet.cpython-36m-darwin.so
  Reason: image not found

What's going on? Thanks!

@nkalupahana
Copy link
Author

Running sudo python3 setup.py build_ext --inplace after installing fixed my 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

1 participant