Skip to content

Can't compile 3.11.x with pyenv: "undefined symbol: sqlite3_deserialize" #2625

@pcroland

Description

@pcroland
  • Platform information: Ubuntu 20.04.5 LTS (WSL)
  • OS architecture: x64
  • pyenv version: 2.3.13
  • Python version: trying to compile 3.11.2
  • C Compiler information: gcc 9.4.0

When I do pyenv install 3.11.2 (or 3.11.1) it fails with the following message:

pyenv install 3.11.2
pyenv: /home/roland/.pyenv/versions/3.11.2 already exists
continue with installation? (y/N) y
Installing Python-3.11.2...
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/roland/.pyenv/versions/3.11.2/lib/python3.11/sqlite3/__init__.py", line 57, in <module>
    from sqlite3.dbapi2 import *
  File "/home/roland/.pyenv/versions/3.11.2/lib/python3.11/sqlite3/dbapi2.py", line 27, in <module>
    from _sqlite3 import *
ModuleNotFoundError: No module named '_sqlite3'
WARNING: The Python sqlite3 extension was not compiled. Missing the SQLite3 lib?
Installed Python-3.11.2 to /home/roland/.pyenv/versions/3.11.2

I have everything installed from the Common build problems wiki, like libsqlite3-dev.

output of env PYENV_DEBUG=1 pyenv install -v 3.11.2 2>&1 | tee trace.log: trace.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    third-partythe problem is in third-party software

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions