[python-ldap] PyPy-LDAP
Michael Ströder
michael at stroeder.com
Wed Dec 7 20:10:26 CET 2011
Frankly I've never used PyPy and I have no clue what PyTuple_Check is about.
Also a short search did not return sample code on how to use it.
I'd be willing to accept a patch for python-ldap if the import of something is
truly optional.
Ciao, Michael.
Bradley McCandless wrote:
> Hello,
>
> I've built a PyPy version of python-ldap (2.4.6), and I get the following
> error when I try to import:
>
> Python 2.7.1 (?, Dec 02 2011, 19:18:28)
> [PyPy 1.7.0 with GCC 4.6.2] on freebsd9
> Type "help", "copyright", "credits" or "license" for more information.
> And now for something completely different: ``calling the translation tool
> chain a 'script' is kind of offensive''
>>>>> from ldap import *
> Fatal error in cpyext, CPython compatibility layer, calling PyTuple_Check
> Either report a bug or consider not using this particular extension
> <InvalidPointerException object at 0x1822318>
> RPython traceback:
> File "module_cpyext_api_4.c", line 28061, in PyTuple_Check
> File "module_cpyext_pyobject.c", line 6540, in CpyTypedescr_type_realize
> File "module_cpyext_typeobject.c", line 1034, in type_realize
> File "module_cpyext_typeobject.c", line 2540, in _type_realize
> File "module_cpyext_typeobject.c", line 4836, in W_PyCTypeObject___init__
> File "module_cpyext_pyobject.c", line 1213, in BaseCpyTypedescr_realize
> Segmentation fault: 11
>
> I asked on the PyPy IRC and they suggested that PyTuple_Check is running
> before initializing module. Any thoughts on a fix?
>
> -brads
More information about the python-ldap
mailing list