Hi Max,

On Thu, Apr 11, 2013 at 2:39 PM, Max Lavrenov <[email protected]> wrote:
>   File "/home/e-max/workspace/pypy/lib_pypy/_sqlite3.py", line 265, in
> _has_load_extension
>     unverified_lib = unverified_ffi.dlopen(libname)
>   (...)
>     f = os.popen('/sbin/ldconfig -p 2>/dev/null')
> OSError: [Errno 12] Cannot allocate memory

Ah, mess.  It crashes obscurely in ctypes.util when doing the dlopen()
call from cffi.  I don't know why, but also I don't fully care :-/
Can you try to simply not use ctypes.util, by doing this change: in
lib_pypy/_sqlite3.py line 265, replace

    unverified_lib = unverified_ffi.dlopen(libname)

with

    unverified_lib = unverified_ffi.dlopen("/usr/lib/libsqlite3.so")

?  Assuming "/usr/lib/libsqlite3.so" is the path on your system.


Thanks for the report,

Armin.
_______________________________________________
pypy-dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to