Compatibility with python <= 2.5

5 views
Skip to first unread message

Antonio Valentino

unread,
Dec 27, 2011, 4:20:13 AM12/27/11
to numexpr
Hi list,
it seems that numexpr 2.0 is no more compatible with python <= 2.5.
I don't know if this was planned or not, anyway I was not able to find
a note about it in the docs.


Traceback (most recent call last):
File "setup.py", line 72, in <module>
check_import('numexpr', min_numexpr_version)
File "setup.py", line 54, in check_import
mod = __import__(pkgname)
File "/home/slave/jenkins/workspace/develop/PYTHON/CPython-2.5/env/
lib/python2.5/site-packages/numexpr/__init__.py", line 39, in <module>
from numexpr.necompiler import NumExpr, disassemble, evaluate
File "/home/slave/jenkins/workspace/develop/PYTHON/CPython-2.5/env/
lib/python2.5/site-packages/numexpr/necompiler.py", line 680
out=out, order=order, casting=casting,
^
SyntaxError: invalid syntax

See also:
https://jenkins.shiningpanda.com/pytables/job/develop/5/PYTHON=CPython-2.5/console


best regards

--
Antonio Valentino

Francesc Alted

unread,
Dec 31, 2011, 6:13:38 AM12/31/11
to num...@googlegroups.com
2011/12/27 Antonio Valentino <antonio....@tiscali.it>:

> Hi list,
> it seems that numexpr 2.0 is no more compatible with python <= 2.5.
> I don't know if this was planned or not, anyway I was not able to find
> a note about it in the docs.
[clip]

Ok, I think I fixed this:

http://code.google.com/p/numexpr/issues/detail?id=66

Could you confirm please?

--
Francesc Alted

Antonio Valentino

unread,
Dec 31, 2011, 8:07:08 AM12/31/11
to num...@googlegroups.com
Hi Francesc,

The specific issue seems to be fixed.
With python 2.5 all test pass, only I get the following error if the
multiprocessing module is not installed:

$ python -c "import numexpr as nx; nx.test()"
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Numexpr version: 2.1.dev
NumPy version: 1.6.1
Python version: 2.5.5 (r255:77872, Nov 28 2010, 16:43:48)
[GCC 4.4.5]
Platform: linux2-x86_64
AMD/Intel CPU? True
VML available? False
Detected cores: 1
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
.......................................................................................................................................................E.
======================================================================
ERROR: test_multiprocess (numexpr.tests.test_numexpr.test_subprocess)
----------------------------------------------------------------------


Traceback (most recent call last):
File

"/home/antonio/p25-nxtip/src/numexpr/numexpr/tests/test_numexpr.py",
line 670, in test_multiprocess
import multiprocessing as mp
ImportError: No module named multiprocessing

----------------------------------------------------------------------
Ran 5103 tests in 11.788s

FAILED (errors=1)

On Python 2.4 I have a lot of failures (see attached file).
Also I get similar errors with numexpr 1.4.2.
I'm not 100% sure my python 2.4 setup id fully OK but the same errors
are also reported testing PyTables on Shining Panda

https://jenkins.shiningpanda.com/pytables/job/compat/PYTHON=CPython-2.4/lastBuild/console


Thanks for your effort and have an happy new year.

ciao

--
Antonio Valentino

nxtest24.txt.bz2

Francesc Alted

unread,
Dec 31, 2011, 9:19:20 AM12/31/11
to num...@googlegroups.com
2011/12/31 Antonio Valentino <antonio....@tiscali.it>:

> Hi Francesc,
>
> Il 31/12/2011 12:13, Francesc Alted ha scritto:
>> 2011/12/27 Antonio Valentino <antonio....@tiscali.it>:
>>> Hi list,
>>> it seems that numexpr 2.0 is no more compatible with python <= 2.5.
>>> I don't know if this was planned or not, anyway I was not able to find
>>> a note about it in the docs.
>> [clip]
>>
>> Ok, I think I fixed this:
>>
>> http://code.google.com/p/numexpr/issues/detail?id=66
>>
>> Could you confirm please?
>>
>
> The specific issue seems to be fixed.
> With python 2.5 all test pass, only I get the following error if the
> multiprocessing module is not installed:
[clip]

I see. Fixed.

> On Python 2.4 I have a lot of failures (see attached file).
> Also I get similar errors with numexpr 1.4.2.
> I'm not 100% sure my python 2.4 setup id fully OK but the same errors
> are also reported testing PyTables on Shining Panda
>
> https://jenkins.shiningpanda.com/pytables/job/compat/PYTHON=CPython-2.4/lastBuild/console

Hmm, Python 2.4 is a bit old now, and I think there is not not much
point in keeping compatibility with it. I have declared that Python
2.4 is unsupported from now on.

> Thanks for your effort and have an happy new year.

Have a nice new year too!

--
Francesc Alted

Reply all
Reply to author
Forward
0 new messages