[pypy-dev] OSError: [Errno 12] Cannot allocate memory from 'import sqlite3' on linux

Max Lavrenov max.lavrenov at gmail.com
Thu Apr 11 14:39:56 CEST 2013


Hello all,

I've built pypy from trunk today, but seems there is some problem with
sqlite3 module.


[e-max at e-max release]$ /home/e-max/workspace/pypy/pypy/goal/pypy-c
Python 2.7.3 (948f362bd750, Apr 11 2013, 10:44:18)
[PyPy 2.0.0-beta2 with GCC 4.8.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
And now for something completely different: ``pypy is more stable than
debian''
>>>> import sqlite3
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/home/e-max/workspace/pypy/lib-python/2.7/sqlite3/__init__.py",
line 24, in <module>
    from dbapi2 import *
  File "/home/e-max/workspace/pypy/lib-python/2.7/sqlite3/dbapi2.py", line
27, in <module>
    from _sqlite3 import *
  File "/home/e-max/workspace/pypy/lib_pypy/_sqlite3.py", line 268, in
<module>
    if _has_load_extension():
  File "/home/e-max/workspace/pypy/lib_pypy/_sqlite3.py", line 265, in
_has_load_extension
    unverified_lib = unverified_ffi.dlopen(libname)
  File "/home/e-max/workspace/pypy/lib_pypy/cffi/api.py", line 111, in
dlopen
    lib, function_cache = _make_ffi_library(self, name, flags)
  File "/home/e-max/workspace/pypy/lib_pypy/cffi/api.py", line 362, in
_make_ffi_library
    path = ctypes.util.find_library(name)
  File "/home/e-max/workspace/pypy/lib-python/2.7/ctypes/util.py", line
213, in find_library
    return _findSoname_ldconfig(name) or _get_soname(_findLib_gcc(name))
  File "/home/e-max/workspace/pypy/lib-python/2.7/ctypes/util.py", line
202, in _findSoname_ldconfig
    f = os.popen('/sbin/ldconfig -p 2>/dev/null')
OSError: [Errno 12] Cannot allocate memory

Is there any additional information which i can provide about this problem?

Thank,
Max
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20130411/c7fe4cfb/attachment.html>


More information about the pypy-dev mailing list