In data martedì, 7 febbraio 2012 12.45:15, Benoit Thiell ha scritto:
> Hi.
> 
> As of today, I am experiencing bugs with intbitset. I tried a fresh
> install on my machine (CentOS 5, Python 2.4) and this is what I get:
> 
> [bthiell@localhost invenio]$ python
> Python 2.4.3 (#1, Sep 21 2011, 19:55:41)
> [GCC 4.1.2 20080704 (Red Hat 4.1.2-51)] on linux2
> 
> >>> import invenio.intbitset
> 
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
>   File "intbitset.pyx", line 783, in init lib.intbitset (intbitset.c:10023)
> TypeError: 'builtin_function_or_method' object has only read-only
> attributes (assign to .__module__)
> 
> [bthiell@localhost invenio]$ python
> Python 2.4.3 (#1, Sep 21 2011, 19:55:41)
> [GCC 4.1.2 20080704 (Red Hat 4.1.2-51)] on linux2
> 
> >>> from invenio.intbitset import intbitset
> 
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
>   File "intbitset.pyx", line 783, in init lib.intbitset (intbitset.c:10023)
> TypeError: 'builtin_function_or_method' object has only read-only
> attributes (assign to .__module__)
> 
> >>> from invenio.intbitset import intbitset
> >>> intbitset(range(10))
> 
> Segmentation fault

Mmh. Interesting! I guess this is a limitation of Python 2.4 I haven't 
anticipated in my implementation for intbitset pickling that has just been 
committed. If urgent, you can simply revert the patch committed here:

<http://invenio-
software.org/repo/invenio/patch/?id=a06a52b7cd603fce327a1d915639c7b5ebd7a650>

and you should have back the previous intbitset, without affecting any other 
module. Thanks for reporting this!

I will try to find a possible alternative solution to implement pickling on 
python 2.4

Cheers!
        Sam

-- 
Samuele Kaplun
Invenio Developer ** <http://invenio-software.org/>

Reply via email to