Giter Club home page Giter Club logo

Comments (19)

djsutherland avatar djsutherland commented on July 18, 2024 3

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.

djsutherland avatar djsutherland commented on July 18, 2024 2

@shamangary, I think this should be fixed now if you conda install caffe=1.0.

from caffe-feedstock.

 avatar commented on July 18, 2024 2

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.

advance512 avatar advance512 commented on July 18, 2024 1

If you're installing caffe via conda and running into this, try:

conda install python=2.7 caffe-gpu protobuf gflags

from caffe-feedstock.

djsutherland avatar djsutherland commented on July 18, 2024

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.

shamangary avatar shamangary commented on July 18, 2024

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.

salvador-blanco avatar salvador-blanco commented on July 18, 2024

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.

djsutherland avatar djsutherland commented on July 18, 2024

@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.

salvador-blanco avatar salvador-blanco commented on July 18, 2024

conda install caffe=1.0
Did not work for me I still get the same error

from caffe-feedstock.

jakirkham avatar jakirkham commented on July 18, 2024

Please share your full environment. Also please make sure you have protobuf 3.4 not 3.5.

from caffe-feedstock.

salvador-blanco avatar salvador-blanco commented on July 18, 2024

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.

salvador-blanco avatar salvador-blanco commented on July 18, 2024

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.

jakirkham avatar jakirkham commented on July 18, 2024

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.

jakirkham avatar jakirkham commented on July 18, 2024

Closing as it appears the original issue has been resolved.

from caffe-feedstock.

nanodust avatar nanodust commented on July 18, 2024

indeed, clean caffe install w/ instructions above works.
yet - no luck w/ conda-forge caffe-gpu - same libprotobuf.so.12 error.

from caffe-feedstock.

jakirkham avatar jakirkham commented on July 18, 2024

That's an unrelated issue, @nanodust.

from caffe-feedstock.

hossam-96 avatar hossam-96 commented on July 18, 2024

@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.

IngleJaya95 avatar IngleJaya95 commented on July 18, 2024

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.

getamu avatar getamu commented on July 18, 2024

conda install caffe=1.0
@dougalsutherland
I am getting Packages NotFoundError: The following packages are not available from current channels:
I have done conda install libprotobuf=3.2.0

from caffe-feedstock.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.