[pypy-issue] [issue1564] sqlite3 can't import w/ OSX pypy-2.1-beta2

mike bayer tracker at bugs.pypy.org
Sun Jul 28 22:27:27 CEST 2013

New submission from mike bayer <mike_mp at zzzcomputing.com>:

apologies if this is known, browsing the other sqlite3 issues they seem to apply
to previous versions and aren't the same thing I'm getting, this is on OSX
mountain lion, pypy build linked at

classics-MacBook-Pro:src classic$ pypy-2.1-beta2-osx64/bin/pypy            
Python 2.7.3 (fde1203a425d, Jul 25 2013, 10:37:04)
[PyPy 2.1.0-beta2 with GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.1.58)] on
Type "help", "copyright", "credits" or "license" for more information.
And now for something completely different: ``<fijal> I love pypy''
>>>> import sqlite3
Undefined symbols for architecture x86_64:
  "_sqlite3_enable_load_extension", referenced from:
      __cffi_f_sqlite3_enable_load_extension in _cffi__g24366574x62c16045.o
     (maybe you meant: __cffi_f_sqlite3_enable_load_extension)
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/src/pypy-2.1-beta2-osx64/lib-python/2.7/sqlite3/__init__.py",
line 24, in <module>
    from dbapi2 import *
  File "/usr/local/src/pypy-2.1-beta2-osx64/lib-python/2.7/sqlite3/dbapi2.py",
line 27, in <module>
    from _sqlite3 import *
  File "/usr/local/src/pypy-2.1-beta2-osx64/lib_pypy/_sqlite3.py", line 273, in
    """, libraries=['sqlite3']
  File "/usr/local/src/pypy-2.1-beta2-osx64/lib_pypy/cffi/api.py", line 311, in
    lib = self.verifier.load_library()
  File "/usr/local/src/pypy-2.1-beta2-osx64/lib_pypy/cffi/verifier.py", line 68,
in load_library
  File "/usr/local/src/pypy-2.1-beta2-osx64/lib_pypy/cffi/verifier.py", line 56,
in compile_module
  File "/usr/local/src/pypy-2.1-beta2-osx64/lib_pypy/cffi/verifier.py", line
131, in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
  File "/usr/local/src/pypy-2.1-beta2-osx64/lib_pypy/cffi/ffiplatform.py", line
25, in compile
    outputfilename = _build(tmpdir, ext)
  File "/usr/local/src/pypy-2.1-beta2-osx64/lib_pypy/cffi/ffiplatform.py", line
50, in _build
    raise VerificationError('%s: %s' % (e.__class__.__name__, e))
VerificationError: LinkError: command 'gcc' failed with exit status 1

messages: 5997
nosy: pypy-issue, zzzeek
priority: critical
release: 2.1
status: unread
title: sqlite3 can't import w/ OSX pypy-2.1-beta2

PyPy bug tracker <tracker at bugs.pypy.org>

More information about the pypy-issue mailing list