title: Error importing auto_arima from pyramid
body: <p>Trying to use pyramid's auto arima function and getting nowhere. </p>
  
  <p>Importing the whole class:</p>
  
  <pre><code>import pyramid
  
  
  
  stepwise_fit = auto_arima(df.Weighted_Price, start_p=0, start_q=0, max_p=10, max_q=10, m=1,
                        start_P=0, seasonal=True, trace=True,
                        error_action='ignore',  # don't want to know if an order does not work
                        suppress_warnings=True,  # don't want convergence warnings
                        stepwise=True)  # set to stepwise
  </code></pre>
  
  <p>I get error message:</p>
  
  <pre><code>NameError: name 'auto_arima' is not defined
  </code></pre>
  
  <p>Fine, then let's import that specific package from pyramid.</p>
  
  <pre><code>from pyramid.arima import auto_arima
  </code></pre>
  
  <blockquote>
    <p>--------------------------------------------------------------------------- RuntimeError                              Traceback (most recent call
    last) RuntimeError: module compiled against API version 0xb but this
    version of numpy is 0xa</p>
    
    <p>--------------------------------------------------------------------------- ImportError                               Traceback (most recent call
    last)  in ()
          1 #trying to import pyramid
    ----> 2 from pyramid.arima import auto_arima</p>
    
    <p>/usr/local/lib/python2.7/site-packages/pyramid/arima/<strong>init</strong>.py in
    ()
          3 # Author: Taylor Smith 
          4 
    ----> 5 from .approx import *
          6 from .arima import *
          7 from .auto import *</p>
    
    <p>/usr/local/lib/python2.7/site-packages/pyramid/arima/approx.py in
    ()
         16 # and since the platform might name the .so file something funky (like
         17 # _arima.cpython-35m-darwin.so), import this absolutely and not relatively.
    ---> 18 from pyramid.arima._arima import C_Approx
         19 
         20 <strong>all</strong> = [</p>
    
    <p>ImportError: numpy.core.multiarray failed to import</p>
  </blockquote>
  
  <p>After importing numpy, or even after just running the block again, I get this error message when running <code>from pyramid.arima import auto_arima
  </code></p>
  
  <blockquote>
    <p>--------------------------------------------------------------------------- ImportError                               Traceback (most recent call
    last)  in ()
          1 #trying to import pyramid
    ----> 2 from pyramid import arima</p>
    
    <p>/usr/local/lib/python2.7/site-packages/pyramid/arima/<strong>init</strong>.py in
    ()
          3 # Author: Taylor Smith 
          4 
    ----> 5 from .approx import *
          6 from .arima import *
          7 from .auto import *</p>
    
    <p>/usr/local/lib/python2.7/site-packages/pyramid/arima/approx.py in
    ()
         16 # and since the platform might name the .so file something funky (like
         17 # _arima.cpython-35m-darwin.so), import this absolutely and not relatively.
    ---> 18 from pyramid.arima._arima import C_Approx
         19 
         20 <strong>all</strong> = [</p>
    
    <p>ImportError: cannot import name C_Approx</p>
  </blockquote>