Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

ImportError: libcaffe.so.1.0.0-rc3: #4

Closed
Timo-hab opened this issue Sep 6, 2016 · 2 comments
Closed

ImportError: libcaffe.so.1.0.0-rc3: #4

Timo-hab opened this issue Sep 6, 2016 · 2 comments

Comments

@Timo-hab
Copy link

Timo-hab commented Sep 6, 2016

I could successfully compile caffe-dilation using:
make
make test
make runtest

After that i did:
make pycaffe

That leads to the following:
import error _caffe

I google it and found thats a common error for caffe-dilation. https://groups.google.com/forum/#!topic/caffe-users/yM-U_gx3vfY

And through the answer of "yuca" (copy _caffe.so from build_master_release/python/caffe to python/caffe) i could solve it.

Unfortunately, i get now following error:
ImportError: libcaffe.so.1.0.0-rc3: cannot open shared object file: No such file or directory

Could someone solve that issue? Thank you in advance!

@fyu
Copy link
Owner

fyu commented Sep 6, 2016

The building procedure in caffe-dilation is changed so that build_master_release/python is supposed to be included in PYTHONPATH instead of python/. In this way, if you are editing multiple branches in caffe and build them, their built python libraries will reside in the build directory instead of the original source directory to avoid multiple builds overriding each other.

As for your import question here, adding the path for libcaffe.so.1.0.0-rc3 to LD_LIBRARY_PATH should resolve the issue.

@Timo-hab
Copy link
Author

Timo-hab commented Sep 6, 2016

Ok, i see. Thanks!

@Timo-hab Timo-hab closed this as completed Sep 6, 2016
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants