ImportError: dlopen library (...) won't open

I am trying to run Google Research DeepDream code on Mac OSX 10.9.5.
There are several dependencies I had to install. I am using Anaconda python distribution and I made sure I have all the required packages.

The hardest part is installing Caffe. I have ATLAS installed using fink. Then I collected coffee and pifaff. When I ran "make runtest" all tests passed. I also ran "make distribute".

When I start a laptop released from Google I get the following error:

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-453033db464f> in <module>()
     11 
     12 
---> 13 import caffe
     14 
     15 

/Users/Andrea/caffe/python/caffe/__init__.py in <module>()
----> 1 from .pycaffe import Net, SGDSolver
      2 from ._caffe import set_mode_cpu, set_mode_gpu, set_device, Layer, get_solver
      3 from .proto.caffe_pb2 import TRAIN, TEST
      4 from .classifier import Classifier
      5 from .detector import Detector

/Users/Andrea/caffe/python/caffe/pycaffe.py in <module>()
     11 import numpy as np
     12 
---> 13 from ._caffe import Net, SGDSolver
     14 import caffe.io
     15 

ImportError: dlopen(/Users/Andrea/caffe/python/caffe/_caffe.so, 2): Library not loaded: @rpath/libcudart.7.0.dylib
  Referenced from: /Users/Andrea/caffe/python/caffe/_caffe.so
  Reason: image not found

      

What can I do to fix this?


here is the screendump requested in a comment

0


source to share


1 answer


libcudart.7.0.dylib is a GPU related library.

Does the computer you are working on have a GPU? If not, then you need to specify the CPU mode in the Makefile.config for caffe.



If you have a GPU please take a look here. https://github.com/BVLC/caffe/issues/779

+1


source







All Articles