Comments (19)
I just got the same error; I suppose that protobuf needs to be pinned (conda-forge/conda-forge.github.io#411).
@brad0taylor, you should be able to work around this in the meantime with conda install protobuf=3.2
.
from caffe-feedstock.
@shamangary, I think this should be fixed now if you conda install caffe=1.0
.
from caffe-feedstock.
Looks like I have found the solution.
Check your libprotobuf version:
conda list libprotobuf
if it's 3.4.0, you should downgrade it to 3.2.0
conda install libprotobuf=3.2.0
then try it again and it should be ok.
@brad0taylor
from caffe-feedstock.
If you're installing caffe via conda and running into this, try:
conda install python=2.7 caffe-gpu protobuf gflags
from caffe-feedstock.
Actually, it seems that this recipe is only built for python 2.7 for some reason, so @brad0taylor you're probably using the version of caffe from the default repositories. Same fix applies.
from caffe-feedstock.
After I have the similar error on python3.5, I reinstall an environment for python2.7. But the error still remain.
Python 2.7.14 | packaged by conda-forge | (default, Oct 5 2017, 14:19:56)
[GCC 4.8.2 20140120 (Red Hat 4.8.2-15)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import caffe
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/shamangary/anaconda2/envs/py2cv3/lib/python2.7/site-packages/caffe/__init__.py", line 1, in <module>
from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver
File "/home/shamangary/anaconda2/envs/py2cv3/lib/python2.7/site-packages/caffe/pycaffe.py", line 13, in <module>
from ._caffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, \
ImportError: libprotobuf.so.10: cannot open shared object file: No such file or directory
>>>
And I do
conda install protobuf=3.2
But the error is still there. Plz help?
from caffe-feedstock.
I'm trying to to be able to run this demo https://github.com/ZheC/Realtime_Multi-Person_Pose_Estimation
I'm running ubuntu 14.04
I have installed Anaconda, and after installing many many many dependencies another one pops. It also requires python caffe
So I installed it with this command:
(I also tried Pip install caffe
but if failed)
$ Conda install caffe
But then when I try to run it I get:
$ python
>>> import caffe
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/gtkratosman-lap/anaconda2/lib/python2.7/site-packages/caffe/__init__.py", line 1, in
<module>
from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver, NCCL, Timer
File "/home/gtkratosman-lap/anaconda2/lib/python2.7/site-packages/caffe/pycaffe.py", line 13, in <module>
from ._caffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, \
ImportError: libprotobuf.so.12: cannot open shared object file: No such file or directory)
>>>
from caffe-feedstock.
@salvador-blanco, make sure you're using the conda-forge version and don't have any partial pip-installed dependencies floating around. Easiest way is to make a new environment to test:
conda create -n caffetmp -c conda-forge caffe
source activate caffetmp
python -c 'import caffe'
If that works, it means something is messed up in your other environment, probably from mixing incompatible versions of packages from various sources.
from caffe-feedstock.
conda install caffe=1.0
Did not work for me I still get the same error
from caffe-feedstock.
Please share your full environment. Also please make sure you have protobuf
3.4 not 3.5.
from caffe-feedstock.
So after doing
conda create -n caffetmp -c conda-forge caffe
source activate caffetmp
python -c 'import caffe'
I was able to use caffe on the caffetmp virtual environment, which means my other environments are messed up.
If I want to install caffe outside the environment how should I do it?
I have cleaned everything, so I can have a fresh start
from caffe-feedstock.
I tried installing
conda install caffe
but I get the following error:
ERROR conda.core.link:_execute_actions(337): An error occurred while installing package 'defaults::opencv-3.1.0-np112py27_1'.
OSError(13, 'Permission denied')
I have no problem using
$python
>>>import cv2
the opencv version I have is 3.3.1
from caffe-feedstock.
Sounds like some sort of conda
problem. Could you please raise upstream? Also please make sure to give them enough info to work with. Thanks.
from caffe-feedstock.
Closing as it appears the original issue has been resolved.
from caffe-feedstock.
indeed, clean caffe install w/ instructions above works.
yet - no luck w/ conda-forge caffe-gpu - same libprotobuf.so.12 error.
from caffe-feedstock.
That's an unrelated issue, @nanodust.
from caffe-feedstock.
@salvador-blanco, make sure you're using the conda-forge version and don't have any partial pip-installed dependencies floating around. Easiest way is to make a new environment to test:
conda create -n caffetmp -c conda-forge caffe source activate caffetmp python -c 'import caffe'
If that works, it means something is messed up in your other environment, probably from mixing incompatible versions of packages from various sources.
and how can i fix this if there is something messed up in my environment without making new one?
from caffe-feedstock.
from ._caffe import Net, SGDSolver, NesterovSolver, AdaGradSolver,
ImportError: libprotobuf.so.10: cannot open shared object file: No such file or directory
Failing with conda install libprotobuf=3.2.0
conda install caffe=1.0
from caffe-feedstock.
conda install caffe=1.0
@dougalsutherland
I am gettingPackages NotFoundError: The following packages are not available from current channels:
I have doneconda install libprotobuf=3.2.0
from caffe-feedstock.
Related Issues (16)
- Linux Mint Import Error HOT 13
- Caffe depends on Opencv 2 while 3 is out HOT 1
- GPU branch HOT 7
- caffe fails to import with gflags 2.2.0 package HOT 3
- Windows support HOT 1
- Undefined symbol in convert_imageset HOT 27
- python 3 builds HOT 9
- @conda-forge-admin, please update circle HOT 7
- binary is linked to opencv 3.3 HOT 2
- Latest build not linked properly to leveldb HOT 6
- ImportError: libprotobuf.so.21: cannot open shared object file: No such file or directory HOT 17
- Broken packages HOT 2
- @conda-forge-admin, please re-render HOT 1
- BLAS selection fixes HOT 1
- Archive this feedstock HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from caffe-feedstock.