title: ImportError: No module named typedefs
body: <p>I am trying to create a standalone program using pyinstaller. In this process I am encountering the following error message:</p>
  
  <pre><code>`Traceback (most recent call last):
  File "&lt;string&gt;", line 13, in &lt;module&gt;
  File "/opt/local/anaconda/lib/python2.7/site-packages/PyInstaller/loader/pyi_importers.py", line 270, in load_module
      exec(bytecode, module.__dict__)
  File "/home/russellb/pyFiles/dist/build/tt/out00-PYZ.pyz/sklearn.neighbors", line 6, in &lt;module&gt;
  File "/opt/local/anaconda/lib/python2.7/site-packages/PyInstaller/loader/pyi_importers.py", line 409, in load_module
      module = imp.load_module(fullname, fp, filename, self._c_ext_tuple)
  File "dist_metrics.pxd", line 48, in init sklearn.neighbors.ball_tree (sklearn/neighbors/ball_tree.c:34295)
  File "/opt/local/anaconda/lib/python2.7/site-packages/PyInstaller/loader/pyi_importers.py", line 409, in load_module
      module = imp.load_module(fullname, fp, filename, self._c_ext_tuple)
  File "dist_metrics.pyx", line 52, in init sklearn.neighbors.dist_metrics (sklearn/neighbors/dist_metrics.c:25494)
    ImportError: No module named typedefs`
  </code></pre>
  
  <p>Any suggestions?</p>
  
  <p>As a follow-up:</p>
  
  <p>I've managed to import typedef and got rid of the above problem. Now I am encountering the following error message at the run-time.</p>
  
  <p><code>Traceback (most recent call last):
    File "&lt;string&gt;", line 14, in &lt;module&gt;
    File "/opt/local/anaconda/lib/python2.7/site-packages/PyInstaller/loader/pyi_importers.py", line 270, in load_module
      exec(bytecode, module.__dict__)
    File "/home/russellb/pyFiles/dist/build/tt/out00-PYZ.pyz/sklearn.linear_model", line 21, in &lt;module&gt;
    File "/opt/local/anaconda/lib/python2.7/site-packages/PyInstaller/loader/pyi_importers.py", line 409, in load_module
      module = imp.load_module(fullname, fp, filename, self._c_ext_tuple)
    File "weight_vector.pxd", line 10, in init sklearn.linear_model.sgd_fast (sklearn/linear_model/sgd_fast.c:9464)
  ImportError: No module named weight_vector
  </code></p>
  
  <p>However, I could not find any module named weight_vector in the sklearn directory hierarchy in that specified location.</p>
  
  <p>Any insights and suggestions?</p>
  
  <p>Many thanks,</p>