Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Aim fails to install with UVΒ #3377

@harrystuart

Description

@harrystuart

πŸ› Bug

Aim fails to install using uv.

To reproduce

With the following pyproject.toml:

[project]
name = "admissions-agent-workspace"
version = "0"
requires-python = ">=3.14"

dependencies = [
  "dvc[ssh]"
]

Try and add aim package by running uv add aim.

Then you should see the error:

Resolved 147 packages in 239ms
  Γ— Failed to build `pysqlite3==0.5.4`
  β”œβ”€β–Ά The build backend returned an error
  ╰─▢ Call to `setuptools.build_meta:__legacy__.build_wheel` failed (exit status: 1)

      [stdout]
      running bdist_wheel
      running build
      running build_py
      copying pysqlite3/__init__.py -> build/lib.linux-x86_64-cpython-314/pysqlite3
      copying pysqlite3/dbapi2.py -> build/lib.linux-x86_64-cpython-314/pysqlite3
      running build_ext
      Builds a C extension linking against libsqlite3 library
      building 'pysqlite3._sqlite3' extension
      cc -pthread -fno-strict-overflow -Wsign-compare -Wunreachable-code -DNDEBUG -g -O3 -Wall -fPIC -fPIC -DMODULE_NAME=\"pysqlite3.dbapi2\" -I/usr/include -I/home/harry/.cache/uv/builds-v0/.tmpmpOlcy/include
      -I/home/harry/.local/share/uv/python/cpython-3.14.0-linux-x86_64-gnu/include/python3.14 -c src/blob.c -o build/temp.linux-x86_64-cpython-314/src/blob.o

      [stderr]
      /home/harry/.cache/uv/builds-v0/.tmpmpOlcy/lib/python3.14/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
      !!

              ********************************************************************************
              Please consider removing the following classifiers in favor of a SPDX license expression:

              License :: OSI Approved :: zlib/libpng License

              See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
              ********************************************************************************

      !!
        self._finalize_license_expression()
      In file included from src/blob.c:1:
      src/blob.h:4:10: fatal error: sqlite3.h: No such file or directory
          4 | #include "sqlite3.h"
            |          ^~~~~~~~~~~
      compilation terminated.
      error: command '/usr/bin/cc' failed with exit code 1

      hint: This error likely indicates that you need to install a library that provides "sqlite3.h" for `[email protected]`
  help: If you want to add the package regardless of the failed resolution, provide the `--frozen` flag to skip locking and syncing.

Expected behavior

Successful install into environment.

Environment

  • latest aim version
  • Python 3.14
  • latest uv version
  • WSL on Windows 11

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is neededtype / bugIssue type: something isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions