Skip to content

Unable to pip3 install bitwarden-sdk on MacOS #1148

@otterbotter

Description

@otterbotter

Steps To Reproduce

  1. Open a terminal on MacOS
  2. Run pip3 install bitwarden-sdk

Expected Result

I expect ansible-sdk to be installed successfully

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
  ╰─> [10 lines of output]
      🔗 Found pyo3 bindings
      🐍 Found CPython 3.8 at /Users/otterbotter/../bin/python3
      📡 Using build options bindings, compatibility from pyproject.toml
      💥 maturin failed
        Caused by: Failed to read /private/var/folders/2c/qzmlgh8j28941tt2hlckkczh0000gn/T/pip-install-_hengb50/bitwarden-sdk_c0ca9cf5d58944eb84e6e0313546647a/crates/bitwarden-py/../../LICENSE
        Caused by: failed to open file `/private/var/folders/2c/qzmlgh8j28941tt2hlckkczh0000gn/T/pip-install-_hengb50/bitwarden-sdk_c0ca9cf5d58944eb84e6e0313546647a/crates/bitwarden-py/../../LICENSE`
        Caused by: No such file or directory (os error 2)
      Error running maturin: Command '['maturin', 'pep517', 'write-dist-info', '--metadata-directory', '/private/var/folders/2c/qzmlgh8j28941tt2hlckkczh0000gn/T/pip-modern-metadata-u58guaip', '--interpreter', '/Users/otterbotter/../bin/python3']' returned non-zero exit status 1.
      Checking for Rust toolchain....
      Running `maturin pep517 write-dist-info --metadata-directory /private/var/folders/2c/qzmlgh8j28941tt2hlckkczh0000gn/T/pip-modern-metadata-u58guaip --interpreter /Users/otterbotter/../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.

Screenshots or Videos

No response

Additional Context

Python version 3.8.20 installed via pyenv
Pip version 24.2

Operating System

macOS

Operating System Version

Sonoma Version 14.4 (23E214)

Build Version

1.0.0

Issue Tracking Info

  • 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions