[pypy-issue] Issue #1950: anydbm issue in 2.4.0 that wasn't present in 2.3.1 (pypy/pypy)

Dan Stromberg issues-reply at bitbucket.org
Wed Dec 24 03:55:21 CET 2014

New issue 1950: anydbm issue in 2.4.0 that wasn't present in 2.3.1

Dan Stromberg:

The error looks like:


/usr/local/pypy-2.4.0/bin/pypy ./test-bloom-filter --performance-test
Traceback (most recent call last):
  File "app_main.py", line 75, in run_toplevel
  File "./test-bloom-filter", line 13, in <module>
    import anydbm
  File "/usr/local/pypy-2.4.0/lib-python/2.7/anydbm.py", line 45, in <module>
    _mod = __import__(_name)
  File "/usr/local/pypy-2.4.0/lib_pypy/gdbm.py", line 42, in <module>
    ''', libraries=['gdbm'])
  File "/usr/local/pypy-2.4.0/lib_pypy/cffi/api.py", line 340, in verify
    lib = self.verifier.load_library()
  File "/usr/local/pypy-2.4.0/lib_pypy/cffi/verifier.py", line 73, in load_library
  File "/usr/local/pypy-2.4.0/lib_pypy/cffi/verifier.py", line 125, in _write_source
    file = open(self.sourcefilename, 'w')
IOError: [Errno 2] No such file or directory: '/usr/local/pypy-2.4.0/lib_pypy/__pycache__/_cffi__g224bc031xf13cf229.c'
make: *** [performance-numbers.db] Error 1

The happens on Linux Mint 17 and Linux Mint 17.1.

I've been installing pypy with a script I wrote myself, because I didn't notice any instructions about how to do it.  However, I don't recall offhand if I built the 2.4.0 sources myself or just downloaded the binaries.   Anyway, when I do build and install manually, I:


1) Copy pypy-c to pypy
2) Copy the includes
3) Copy the two library directories

The script that demonstrates this problem is at http://stromberg.dnsalias.org/svn/bloom-filter/trunk/


More information about the pypy-issue mailing list