pymc-devs/pymc — Issue #70: Python 2.5.2 does not have 'warnings.catch_warnings()'
Author: jskowron
Created: 2011-11-29 19:07:56+00:00
State: open

File INSTALL.rst says in "Dependencies" section:
`Python`_ version 2.5 or 2.6.
However warnings module in Python 2.5.2 does not have a function "warnings.catch_warnings()". Hence error immediately after my new installation:

/usr/lib64/python2.5/site-packages/pymc/__init__.pyc in ()
35
36
---> 37 from tests import test
38
39 # Utilities modules

/usr/lib64/python2.5/site-packages/pymc/tests/__init__.py in ()
6 import numpy
7 numpy.seterr(divide = 'raise', invalid = 'raise')
----> 8 with warnings.catch_warnings():
9 warnings.simplefilter('ignore')
10 test = Tester().test

AttributeError: 'module' object has no attribute 'catch_warnings'

I have installed today (Nov 29th, 2011) from the sources from: git clone git://github.com/pymc-devs/pymc.git pymc
at Fedora 10 Python 2.5.2 x86_64