WindowsXPを実行しているマシンにPython2.5を搭載したPandasをインストールしようとしています。
インストールは問題なく終了したようですが、試してみると
from pandas import *
次のエラーが発生します。
Traceback (most recent call last):
File "<interactive input>", line 1, in <module>
File "c:\python25\lib\site-packages\pandas-0.7.2-py2.5-win32.egg\pandas\__init__.py", line 24, in <module>
from pandas.stats.api import *
File "c:\python25\lib\site-packages\pandas-0.7.2-py2.5-win32.egg\pandas\stats\api.py", line 7, in <module>
from pandas.stats.moments import *
File "c:\python25\lib\site-packages\pandas-0.7.2-py2.5-win32.egg\pandas\stats\moments.py", line 388, in <module>
rolling_max = _rolling_func(_tseries.roll_max, 'Moving maximum')
File "c:\python25\lib\site-packages\pandas-0.7.2-py2.5-win32.egg\pandas\stats\moments.py", line 379, in _rolling_func
def f(arg, window, min_periods=None, time_rule=None):
File "C:\Python25\Lib\functools.py", line 35, in update_wrapper
getattr(wrapper, attr).update(getattr(wrapped, attr))
AttributeError: 'builtin_function_or_method' object has no attribute '__dict__'
私の知る限り、すべての依存関係が正しくインストールされています。問題はfunctools.py
、Python標準ライブラリ(?)の一部であるに関係しています。
誰か提案がありますか?PandasはPython2.5で動作するはずなので、Python構成に問題があると思います。