libsql-experimental-python
libsql-experimental-python copied to clipboard
pip install fails with maturin error
$ pip install libsql-experimental
Collecting libsql-experimental
Downloading libsql_experimental-0.0.19.tar.gz (22 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [28 lines of output]
Updating git repository `https://github.com/tursodatabase/libsql/`
error: failed to get `libsql` as a dependency of package `libsql-python v0.0.19 (/private/var/folders/8_/j9jcz5793r9ft9fy85ft3jn00000gn/T/pip-install-j1txvxje/libsql-experimental_1ac73879f925419cbc4aff559c217da1)`
Caused by:
failed to load source for dependency `libsql`
Caused by:
Unable to update https://github.com/tursodatabase/libsql/?rev=88c3a2a91ce1f7b47b5efad4b416445e03060626#88c3a2a9
Caused by:
failed to fetch into: /Users/avi/.cargo/git/db/libsql-311658d335deb3b1
Caused by:
failed to authenticate when downloading repository: [email protected]:tursodatabase/libsql/
* attempted ssh-agent authentication, but no usernames succeeded: `git`
if the git CLI succeeds then `net.git-fetch-with-cli` may help here
https://doc.rust-lang.org/cargo/reference/config.html#netgit-fetch-with-cli
Caused by:
no authentication methods succeeded
💥 maturin failed
Caused by: Cargo metadata failed. Does your crate compile with `cargo build`?
Caused by: `cargo metadata` exited with an error:
Error running maturin: Command '['maturin', 'pep517', 'write-dist-info', '--metadata-directory', '/private/var/folders/8_/j9jcz5793r9ft9fy85ft3jn00000gn/T/pip-modern-metadata-795np5fw', '--interpreter', '/Users/avi/turso/vss-demo/venv/bin/python']' returned non-zero exit status 1.
Checking for Rust toolchain....
Running `maturin pep517 write-dist-info --metadata-directory /private/var/folders/8_/j9jcz5793r9ft9fy85ft3jn00000gn/T/pip-modern-metadata-795np5fw --interpreter /Users/avi/turso/vss-demo/venv/bin/python`
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
It fixed by setting env var export CARGO_NET_GIT_FETCH_WITH_CLI=true