Installing Pandas with Python 2.5 on Windows

154 views
Skip to first unread message

James

unread,
Apr 5, 2012, 7:51:39 AM4/5/12
to pystatsmodels
Hi all,

I'm trying to get Pandas installed with Python 2.5 on a machine
running Windows XP.

The installation seems to finish OK, but when I try

from pandas import *

I get the following error:

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__'

As far as I can tell, I've got all of the dependencies installed
correctly, and the problem is something to do with functools.py, which
is part of the Python Standard Library(?).

Does anyone have any suggestions, please? I assume it's a problem with
my Python configuration as others seem to have it working with Python
2.5.

I'd like to stick with 2.5 if possible, as a lot of my other work
involves ArcGIS 9.3, which only works with Python 2.5.

I've also posted this question here (before finding this mailing
list):

http://stackoverflow.com/questions/10027719/installing-pandas-with-python-2-5-on-windows

Thanks very much!


James.

Wes McKinney

unread,
Apr 5, 2012, 10:11:04 AM4/5/12
to pystat...@googlegroups.com

Can you try using the binary installer from PyPI? We ran tests on
Python 2.5 before releasing and everything seemed to check out. I'm
most likely, and very unfortunately going to have to drop 2.5 support
in the 0.8.0 release, though, coming up on May.

josef...@gmail.com

unread,
Apr 5, 2012, 10:15:41 AM4/5/12
to pystat...@googlegroups.com

I just tried installing pandas 0.7.2 from source for python 2.5 with
numpy 1.4.1 and there were no problems.

test suite only has some failures because I have the wrong statsmodels
version on the python 2.5 path

Josef

James

unread,
Apr 5, 2012, 12:01:33 PM4/5/12
to pystatsmodels
Hi,

Thanks to both of you for your responses. I've tried the binary
installer and have also tried from the source, but I still get the
same problem. There must be something funny with my Python
installation, I guess. I'll keep trying and hopefully I'll figure it
out.

Sorry to hear that dropping support for 2.5, but I guess most people
not burdened with ArcGIS have moved on long ago.

Thanks again,


James.


On Apr 5, 3:15 pm, josef.p...@gmail.com wrote:
> On Thu, Apr 5, 2012 at 10:11 AM, Wes McKinney <wesmck...@gmail.com> wrote:
> >>http://stackoverflow.com/questions/10027719/installing-pandas-with-py...

Skipper Seabold

unread,
Apr 5, 2012, 1:06:02 PM4/5/12
to pystat...@googlegroups.com
On Thu, Apr 5, 2012 at 12:01 PM, James <james.e...@gmail.com> wrote:
> Sorry to hear that dropping support for 2.5, but I guess most people
> not burdened with ArcGIS have moved on long ago.
>

This presents a problem for us as we want to support 2.5 and now have
pandas as a hard dependency, but I guess we'll cross this bridge when
we come to it...

Skipper

Wes McKinney

unread,
Apr 5, 2012, 9:13:14 PM4/5/12
to pystat...@googlegroups.com

IPython and many other projects have already dropped 2.5 support. I
can continue to provide 2.5 support possibly for another 6 months but
it's caused me a lot of hardship already due to issues with the buffer
interface in Cython.

- Wes

Reply all
Reply to author
Forward
0 new messages