Hello,<div><br></div><div>I&#39;ve built a PyPy version of python-ldap (2.4.6), and I get the following error when I try to import:</div><div><br></div><div><div>Python 2.7.1 (?, Dec 02 2011, 19:18:28)</div><div>[PyPy 1.7.0 with GCC 4.6.2] on freebsd9</div>
<div>Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.</div><div>And now for something completely different: ``calling the translation tool</div><div>chain a &#39;script&#39; is kind of offensive&#39;&#39;</div>
<div>&gt;&gt;&gt;&gt; from ldap import *</div><div>Fatal error in cpyext, CPython compatibility layer, calling PyTuple_Check</div><div>Either report a bug or consider not using this particular extension</div><div>&lt;InvalidPointerException object at 0x1822318&gt;</div>
<div>RPython traceback:</div><div>  File &quot;module_cpyext_api_4.c&quot;, line 28061, in PyTuple_Check</div><div>  File &quot;module_cpyext_pyobject.c&quot;, line 6540, in CpyTypedescr_type_realize</div><div>  File &quot;module_cpyext_typeobject.c&quot;, line 1034, in type_realize</div>
<div>  File &quot;module_cpyext_typeobject.c&quot;, line 2540, in _type_realize</div><div>  File &quot;module_cpyext_typeobject.c&quot;, line 4836, in W_PyCTypeObject___init__</div><div>  File &quot;module_cpyext_pyobject.c&quot;, line 1213, in BaseCpyTypedescr_realize</div>
<div>Segmentation fault: 11</div></div><div><br></div><div>I asked on the PyPy IRC and they suggested that PyTuple_Check is running before initializing module.  Any thoughts on a fix?</div><div><br></div><div>-brads</div>