Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#35110 - [pypy] Sqlite3 is not working
Attached to Project:
Community Packages
Opened by Ilja Heckmann (elpres) - Monday, 06 May 2013, 07:54 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Tuesday, 14 May 2013, 07:34 GMT
Opened by Ilja Heckmann (elpres) - Monday, 06 May 2013, 07:54 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Tuesday, 14 May 2013, 07:34 GMT
|
DetailsDescription:
"Sqlite3" library provided by the pypy package fails to load. It does work with the original binaries downloaded from pypy.org. The log below shows the pypy.org binary version first, followed by the one from the package: -------------------------------------------------------------------- jupiter:~/Downloads/pypy-2.0-beta2 % bin/pypy Python 2.7.3 (3eef596df459, Apr 06 2013, 09:53:06) [PyPy 2.0.0-beta2 with GCC 4.4.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. And now for something completely different: ``denial is rarely a good debugging technique'' >>>> import sqlite3 >>>> jupiter:~/Downloads/pypy-2.0-beta2 % pypy Python 2.7.3 (c13457babbfb, Apr 22 2013, 15:33:52) [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: ``snow! snow! (ter)'' >>>> import sqlite3 Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/opt/pypy/lib-python/2.7/sqlite3/__init__.py", line 24, in <module> from dbapi2 import * File "/opt/pypy/lib-python/2.7/sqlite3/dbapi2.py", line 27, in <module> from _sqlite3 import * File "/opt/pypy/lib_pypy/_sqlite3.py", line 273, in <module> """, libraries=['sqlite3'] File "/opt/pypy/lib_pypy/cffi/api.py", line 311, in verify lib = self.verifier.load_library() File "/opt/pypy/lib_pypy/cffi/verifier.py", line 68, in load_library self.compile_module() File "/opt/pypy/lib_pypy/cffi/verifier.py", line 55, in compile_module self._write_source() File "/opt/pypy/lib_pypy/cffi/verifier.py", line 128, in _write_source file = open(self.sourcefilename, 'w') IOError: [Errno 2] No such file or directory: '/opt/pypy/lib_pypy/__pycache__/_cffi__g453d66ecx62c16045.c' >>>> -------------------------------------------------------------------- Additional info: * confirmed on my machine with the current version (2.0beta2.63547-1) and 2.0beta2 (previous release) * removing and reinstalling pypy didn't help * the system is up to date Steps to reproduce: 1. Start pypy to get to the REPL 2. Type "import sqlite3" |
This task depends upon
Comment by Jelle van der Waa (jelly) -
Monday, 06 May 2013, 07:59 GMT
Yup it looks like pypy is looking in the wrong directory.
Comment by Sven-Hendrik Haase (Svenstaro) -
Monday, 06 May 2013, 11:07 GMT
Pretty sure this is a gcc 4.8 thing.