0

I tried to install that install Caffe Tutorial, but I am block at this line in the tuto: ./tools/demo.py

I havre this error message:

MacBook-Pro-de-OlostA:fast-rcnn OlostA$ ./tools/demo.py

Traceback (most recent call last):

  File "./tools/demo.py", line 19, in <module>

    from fast_rcnn.config import cfg

  File "/Users/OlostA/Technologies/fast-rcnn/tools/../lib/fast_rcnn/__init__.py", line 9, in <module>

    from . import train

  File "/Users/OlostA/Technologies/fast-rcnn/tools/../lib/fast_rcnn/train.py", line 10, in <module>

    import caffe

  File "/Users/OlostA/Technologies/fast-rcnn/tools/../caffe-fast-rcnn/python/caffe/__init__.py", line 1, in <module>

    from .pycaffe import Net, SGDSolver

  File "/Users/OlostA/Technologies/fast-rcnn/tools/../caffe-fast-rcnn/python/caffe/pycaffe.py", line 13, in <module>

    from ._caffe import Net, SGDSolver

ImportError: No module named _caffe

Thanks in advance.

ΩlostA
  • 2,501
  • 5
  • 27
  • 63
  • `ImportError: No module named _caffe` mean `ImportError: No module named _core` where is default `src` path ? `Distributable` or `Standalone module` ? – dsgdfg Dec 01 '17 at 11:12
  • @dsgdfg Where can I find the src path ? – ΩlostA Dec 01 '17 at 12:16
  • Don't miss any step on your_installing_link, you missed `env` and `prefix` arguments. – dsgdfg Dec 02 '17 at 12:44
  • @dsgdfg I think I checked, but all my path seems to be correct. I followed the tuto very carefully. It seems that It doesn't find the path to _caffee, very strange... – ΩlostA Dec 04 '17 at 10:21
  • Line 13 on `pycaffe.py` say : `from ._caffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, \ RMSPropSolver, AdaDeltaSolver, AdamSolver, NCCL, Timer` , **how to call compiled `exec` if not create one?**. Check `/Users/OlostA/Technologies/fast-rcnn/tools/../caffe-fast-rcnn/python/caffe/` you will be se an `_caffe.cpp`, but need one `_caffe.pyc` ? I think there's a setup phase you skipped. Modules that use hardware iteration will not work as copy paste. Your system needs to check the compilation and competence of it. – dsgdfg Dec 04 '17 at 11:00
  • Does this answer your question? [Import caffe error](https://stackoverflow.com/questions/28177298/import-caffe-error) – Channa Jan 13 '21 at 15:47

0 Answers0