dynamic module does not define module export function (PyInit__caffe)

1,917 views
Skip to first unread message

Tom Long

unread,
Nov 17, 2015, 9:26:32 PM11/17/15
to Caffe Users
When I import the Caffe module into Jupyter,this error message always comes out.The code and the log is here.Can anybody help me ?Thanks a lot!!!


code:


caffe_root = '/home/tomlong/桌面/caffe-master/'  # this file is expected to be in {caffe_root}/examples
import sys
sys.path.insert(0, caffe_root + 'python')

import caffe 



log:


ImportError                               Traceback (most recent call last)
<ipython-input-4-9bacb3b72127> in <module>()
      4 sys.path.insert(0, caffe_root + 'python')
      5 
----> 6 import caffe

/home/tomlong/桌面/caffe-master/python/caffe/__init__.py in <module>()
----> 1 from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver
      2 from ._caffe import set_mode_cpu, set_mode_gpu, set_device, Layer, get_solver, layer_type_list
      3 from .proto.caffe_pb2 import TRAIN, TEST
      4 from .classifier import Classifier
      5 from .detector import Detector

/home/tomlong/桌面/caffe-master/python/caffe/pycaffe.py in <module>()
     11 import numpy as np
     12 
---> 13 from ._caffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, \
     14         RMSPropSolver, AdaDeltaSolver, AdamSolver
     15 import caffe.io

ImportError: dynamic module does not define module export function (PyInit__caffe)







Jan C Peters

unread,
Nov 23, 2015, 2:55:59 AM11/23/15
to Caffe Users
I also got this when I tried to make caffe work with python3.4, I eventually gave up and used python2.7.

Jan

Abdul Mukit

unread,
Sep 24, 2018, 1:41:43 PM9/24/18
to Caffe Users
Hi, did you find the solution to this problem?
Reply all
Reply to author
Forward
0 new messages