sdk icon indicating copy to clipboard operation
sdk copied to clipboard

pip install bitwarden-sdk error

Open Mahmoud-Youssif opened this issue 9 months ago • 9 comments

Steps To Reproduce

  1. on Fedora 41 #pip install bitwarden-sdk
  2. get error
  3. using --user or root

Expected Result

Successfully installed bitwarden-sdk

Actual Result

Collecting bitwarden-sdk Using cached bitwarden_sdk-1.0.0.tar.gz (374 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 ╰─> [9 lines of output] 🔗 Found pyo3 bindings 🐍 Found CPython 3.13 at /usr/bin/python3 📡 Using build options bindings, compatibility from pyproject.toml 💥 maturin failed Caused by: Failed to read /tmp/pip-install-11k0okqe/bitwarden-sdk_9967cedcc6bb4e12b5c20b47ae5c5bd6/crates/bitwarden-py/../../LICENSE Caused by: failed to open file /tmp/pip-install-11k0okqe/bitwarden-sdk_9967cedcc6bb4e12b5c20b47ae5c5bd6/crates/bitwarden-py/../../LICENSE: No such file or directory (os error 2) Error running maturin: Command '['maturin', 'pep517', 'write-dist-info', '--metadata-directory', '/tmp/pip-modern-metadata-l_avp6qn', '--interpreter', '/usr/bin/python3']' returned non-zero exit status 1. Checking for Rust toolchain.... Running maturin pep517 write-dist-info --metadata-directory /tmp/pip-modern-metadata-l_avp6qn --interpreter /usr/bin/python3 [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.

Screenshots or Videos

No response

Additional Context

No response

Operating System

Linux

Operating System Version

No response

Shell

Bash

Build Version

bws command not found

Issue Tracking Info

  • [x] I understand that work is tracked outside of Github. A PR will be linked to this issue should one be opened to address it, but Bitwarden doesn't use fields like "assigned", "milestone", or "project" to track progress.

Mahmoud-Youssif avatar Mar 10 '25 11:03 Mahmoud-Youssif

Hi, same error on ArchLinux

` pip install bitwarden-sdk Collecting bitwarden-sdk Using cached bitwarden_sdk-1.0.0.tar.gz (374 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 ╰─> [9 lines of output] 🔗 Found pyo3 bindings 🐍 Found CPython 3.13 at /home/kiven/.virtualenvs/outils/bin/python 📡 Using build options bindings, compatibility from pyproject.toml 💥 maturin failed Caused by: Failed to read /tmp/pip-install-ldgv37w1/bitwarden-sdk_0be5c52144aa45eeac74bfe72b3a75fa/crates/bitwarden-py/../../LICENSE Caused by: failed to open file /tmp/pip-install-ldgv37w1/bitwarden-sdk_0be5c52144aa45eeac74bfe72b3a75fa/crates/bitwarden-py/../../LICENSE: No such file or directory (os error 2) Error running maturin: Command '['maturin', 'pep517', 'write-dist-info', '--metadata-directory', '/tmp/pip-modern-metadata-p8ivvpo5', '--interpreter', '/home/kiven/.virtualenvs/outils/bin/python']' returned non-zero exit status 1. Checking for Rust toolchain.... Running maturin pep517 write-dist-info --metadata-directory /tmp/pip-modern-metadata-p8ivvpo5 --interpreter /home/kiven/.virtualenvs/outils/bin/python [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. `

kivengh avatar Mar 10 '25 15:03 kivengh

This issue should be related to an existing issue: https://github.com/bitwarden/sdk-sm/issues/1148

I have proposed an PR: https://github.com/bitwarden/sdk-sm/pull/1221 that can fix this issue.

Awaiting for some form of response from bitwarden team to get it merged.

davzoku avatar Mar 14 '25 15:03 davzoku

Not working for me either, I tried all the Bitwarden SDK Python releases without success

iicc1 avatar May 16 '25 17:05 iicc1

Same for me, wanted to use bitwarden in side project with ansible.

Keltirion avatar May 21 '25 12:05 Keltirion

Same for us. (paying enterprise customers)

This should be easily fixable, just release version 1.0.1 with the LICENSE file.

betermieux avatar May 21 '25 12:05 betermieux

Same for me. I want to quit managing secret manager redundantly in each cloud service. The lack of resolution of this Issue makes the management of secrets by bitwarden meaningless.

miutaku avatar May 26 '25 10:05 miutaku

https://github.com/bitwarden/sdk-sm/issues/1222#issuecomment-2710933425 You can find an AUR package named python-bitwarden-sdk with https://github.com/bitwarden/sdk-sm/issues/1222#issuecomment-2725087618 fix. Thank you @davzoku !

Focshole avatar Jun 19 '25 10:06 Focshole

This fix has already been merged 2 weeks ago but if you can't wait for the release to reach pypi then you can install bitwarden-sdk directly from the github repo like this.

source venv/bin/activate
git clone https://github.com/bitwarden/sdk-sm.git
cd sdk-sm
npm ci
npm run schemas
cd ..
pip install ./sdk-sm/languages/python/

Now any ansible you run from inside the same venv should find and use bitwarden-sdk without issues.

stemid avatar Aug 06 '25 14:08 stemid

Do we know what is blocking a release from being pushed? It feels odd that this problem has been existing since release 1.0.0, which is about a year old, and that there is no urgency to get if fixed.

Is Bitwarden Secrets Manager abandoned as a tool?

b-per avatar Sep 01 '25 22:09 b-per

Also wondering what is blocking the release, and that there's been no answer in 2 months since b-per asked is concerning.

techolsy avatar Nov 26 '25 18:11 techolsy

As paying customers, we are also waiting for a release. I really hope it isn't abandoned, since it is really a promising tool.

betermieux avatar Nov 26 '25 19:11 betermieux