On Dec 16, 2013, at 11:56 AM, eva maria gualandi wrote: > Good afternoon, > I installed from https://pypi.python.org/pypi/statsmodels the package > statsmodels for python 2.7 (32bit) , i have to do some test statistics for a > time series analysis that i can find under statsmodels.tsa. In particular i > really need to do a Dickey Fuller test and in agreement with the statsmodels > documentation ( from > http://statsmodels.sourceforge.net/devel/generated/statsmodels.tsa.stattools.adfuller.html > ) i run this simple programm > > import numpy as np > import statsmodels > from statsmodels.tsa import stattools > x = np.array([1,2,3,4,3,4,2,3]) > result = statsmodels.tsa.statools.adfuller(x,1) > print result > > but unfortunately i get the following error message: > > Traceback (most recent call last): > File "C:\Python27\esempio_adftest.py", line 3, in <module> > from statsmodels.tsa import stattools > File "C:\Python27\lib\site-packages\statsmodels\tsa\stattools.py", line 7, > in <module> > from statsmodels.regression.linear_model import OLS, yule_walker > File "C:\Python27\lib\site-packages\statsmodels\regression\__init__.py", > line 1, in <module> > from linear_model import yule_walker > File > "C:\Python27\lib\site-packages\statsmodels\regression\linear_model.py", line > 37, in <module> > from statsmodels.tools.tools import (add_constant, rank, > File "C:\Python27\lib\site-packages\statsmodels\tools\__init__.py", line 1, > in <module> > from tools import add_constant, categorical > File "C:\Python27\lib\site-packages\statsmodels\tools\tools.py", line 14, > in <module> > from pandas import DataFrame > File "C:\Python27\lib\site-packages\pandas\__init__.py", line 15, in > <module> > raise ImportError('C extensions not built: if you installed already ' > ImportError: C extensions not built: if you installed already verify that you > are not importing from the source directory
The message is from pandas, actually. Take a look at this page [1] for suggestions. Take care, Don [1] http://stackoverflow.com/questions/10158613/importing-confusion-pandas _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor