# from scipy.linalg import _fblas ImportError: DLL load failed: The specified module could not be found.

Mike S mscir at yahoo.com
Mon Feb 8 23:22:36 EST 2016

```I have Python 3.4.4 installed on Windows 7, also IPython, scipy, numpy,
statsmodels, and a lot of other modules, and am working through this
tutorial
http://www.analyticsvidhya.com/blog/2016/02/time-series-forecasting-codes-python/

In Ipython notebook I run this code

from statsmodels.tsa.stattools import adfuller
def test_stationarity(timeseries):
#determining rolling statistics
rolmean = pd.rolling_mean(timeseries, window=12)
rolstd  = pd.rolling_std(timeseries, window=12)
#plot rolling statistics
orig = plt.plot(timeseries, color='blue',  label='Original')
mean = plt.plot(rolmean,    color='red',   label='Rolling Mean')
std  = plt.plot(rolstd,     color='black', label='Rolling Std')
plt.legend(loc='best')
plt.title('Rolling Mean and Standard Deviation')
plt.show(block=false)
#perform Dickey=Fuller test
print('Results of Dickey-Fuller Test:')
dftest = adfuller(timeseries, autolag='AIC')
dfoutput = pd.Series(dftest[0:4], index=['Test
Statistic','p-value','#Lags Used','Number of Observations Used'])
for key, value in dftest[4].items():
dfoutput['Critical Value (%s)'%key]=value
print(dfoutput)
test_stationary(ts

And see this output:
---------------------------------------------------------------------------
ImportError                          Traceback (most recent call last)
<ipython-input-29-2d4e66de9602> in <module>()
----> 1 from statsmodels.tsa.stattools import adfuller
2 def test_stationarity(timeseries):
3     #determining rolling statistics
4     rolmean = pd.rolling_mean(timeseries, window=12)
5     rolstd  = pd.rolling_std(timeseries, window=12)

c:\python34\lib\site-packages\statsmodels\__init__.py in <module>()
6
7 from warnings import simplefilter
----> 8 from .tools.sm_exceptions import (ConvergenceWarning,
CacheWriteWarning,
9              IterationLimitWarning, InvalidTestWarning)
10

c:\python34\lib\site-packages\statsmodels\tools\__init__.py in <module>()
----> 1 from .tools import add_constant, categorical

c:\python34\lib\site-packages\statsmodels\tools\tools.py in <module>()
6 import numpy.lib.recfunctions as nprf
7 import numpy.linalg as L
----> 8 from scipy.linalg import svdvals
9 from statsmodels.distributions import (ECDF, monotone_fn_inverter,
10                                        StepFunction)

c:\python34\lib\site-packages\scipy\linalg\__init__.py in <module>()
172 from .linalg_version import linalg_version as __version__
173
--> 174 from .misc import *
175 from .basic import *
176 from .decomp import *

c:\python34\lib\site-packages\scipy\linalg\misc.py in <module>()
3 import numpy as np
4 from numpy.linalg import LinAlgError
----> 5 from .blas import get_blas_funcs
6 from .lapack import get_lapack_funcs
7

c:\python34\lib\site-packages\scipy\linalg\blas.py in <module>()
153 import numpy as _np
154
--> 155 from scipy.linalg import _fblas
156 try:
157     from scipy.linalg import _cblas

ImportError: DLL load failed: The specified module could not be found.

Do I read this correctly to mean that the very last import statement is
the one having the problem,

"from scipy.linalg import _fblas"

How do I troubleshoot this? I'm wondering if I have version conflict
between two modules.

Thanks,
Mike
```