title: Why do I get 'ImportError: dynamic module does not define init function (PyInit__caffe)' in ipython notebook while it works for Python?
body: <p>I try to get the <a href="https://github.com/BVLC/caffe/blob/master/examples/classification.ipynb" rel="nofollow"><code>examples/classification.ipynb</code></a> from the <a href="https://github.com/BVLC/caffe" rel="nofollow"><code>BVLC/caffe</code></a> to work. When I Python 2.7.8 via console, it  works. I can <code>import caffe</code> and (after a few seconds) its just finished. No error message. No need to append something to the <code>sys.path</code>.</p>
  
  <p>When I start the example mentioned above and execute the first Python cell, I get an error. To make it simpler, I added a cell with only <code>import caffe</code> which gives me:</p>
  
  <pre><code>---------------------------------------------------------------------------
  ImportError                               Traceback (most recent call last)
  &lt;ipython-input-2-1cca3aa1f8c5&gt; in &lt;module&gt;()
  ----&gt; 1 import caffe
  
  /home/moose/GitHub/caffe/python/caffe/__init__.py in &lt;module&gt;()
  ----&gt; 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
  
  /home/moose/GitHub/caffe/python/caffe/pycaffe.py in &lt;module&gt;()
       11 import numpy as np
       12 
  ---&gt; 13 from ._caffe import Net, SGDSolver
       14 import caffe.io
       15 
  
  ImportError: dynamic module does not define init function (PyInit__caffe)
  </code></pre>
  
  <p>What is the problem here? </p>
  
  <p>Do I eventually have the wrong version?</p>
  
  <pre><code>$ ipython notebook --version
  3.0.0
  </code></pre>