Last active
August 29, 2015 14:18
-
-
Save benjaminrigaud/99f46411cf6ab7dee07e to your computer and use it in GitHub Desktop.
Pypy & M2Crypto error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkvirtualenv -p ~/pypy-2.5.1-linux64/bin/pypy pypy-m2crypto | |
pip install M2Crypto==0.22.3 | |
touch empty | |
python -c "from M2Crypto import m2; f = open('empty', 'rb'); m2.bio_new_fp(f, 0)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Fatal error in cpyext, CPython compatibility layer, calling PyFile_AsFile | |
Either report a bug or consider not using this particular extension | |
<SystemError object at 0x7ff7e4241fa8> | |
RPython traceback: | |
File "pypy_module_cpyext_pyobject.c", line 490, in make_ref | |
File "rpython_rtyper_lltypesystem_rordereddict.c", line 423, in ll_dict_getitem__dicttablePtr_objectPtr | |
Segmentation fault (core dumped) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SWIGINTERN PyObject *_wrap_bio_new_fp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
PyObject *resultobj = 0; | |
FILE *arg1 = (FILE *) 0 ; | |
int arg2 ; | |
int val2 ; | |
int ecode2 = 0 ; | |
PyObject * obj0 = 0 ; | |
PyObject * obj1 = 0 ; | |
BIO *result = 0 ; | |
if(!PyArg_UnpackTuple(args,(char *)"bio_new_fp",2,2,&obj0,&obj1)) SWIG_fail; | |
{ | |
if (!PyFile_Check(obj0)) { | |
PyErr_SetString(PyExc_TypeError, "expected PyFile"); | |
return NULL; | |
} | |
arg1=PyFile_AsFile(obj0); | |
} | |
ecode2 = SWIG_AsVal_int(obj1, &val2); | |
if (!SWIG_IsOK(ecode2)) { | |
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "bio_new_fp" "', argument " "2"" of type '" "int""'"); | |
} | |
arg2 = (int)(val2); | |
result = (BIO *)BIO_new_fp(arg1,arg2); | |
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BIO, 0 | 0 ); | |
return resultobj; | |
fail: | |
return NULL; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment