title: error: failed in converting 1st keyword `w' of dfitpack.fpcurf0 to C/Fortran array
body: <p>I the following error when using the Scipy <code>UnivariateSpline</code> function:</p>
  
  <pre><code>0-th dimension must be 100 but got 0 (not defined).                                                                                
  Traceback (most recent call last):                                                                                                 
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;                                                                                              
    File "/Users/phil/anaconda/lib/python2.7/site-packages/scipy/interpolate/fitpack2.py", line 181, in __init__                     
      xb=bbox[0],xe=bbox[1],s=s)                                                                                                     
  dfitpack.error: failed in converting 1st keyword `w' of dfitpack.fpcurf0 to C/Fortran array 
  </code></pre>
  
  <p>A code example to recreate this is:</p>
  
  <pre><code>import numpy as np                                                                                                             
  from scipy.interpolate import UnivariateSpline                                                                                 
  X = np.arange(0, 100)                                                                                                          
  Y = np.random.randint(0, 100, size=100)                                                                                        
  UnivariateSpline(X, Y, .1) 
  </code></pre>
  
  <p>I have reshaped X and Y so they are have two dimensions e.g <code>X.reshape(100, 1)</code> and have also converted to floats e.g. <code>X.astype(float)</code></p>
  
  <p>Running on Mac OSX, Anaconda Python <code>2.7.12</code> and Scipy <code>0.18.1</code></p>