Skip to content

torusdk fails to install in docker using pip on python 3.12 #9

@schavery

Description

@schavery

Describe the bug

Using a python:bookworm image, pip install torusdk fails because cargo is not available.

# pip install torusdk
Collecting torusdk
...
Collecting py-bip39-bindings<0.2.0,>=0.1.9 (from torustrateinterface<0.2.0,>=0.1.0->torusdk)
  Downloading py_bip39_bindings-0.1.12.tar.gz (15 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
  ╰─> [6 lines of output]
      
      Cargo, the Rust package manager, is not installed or is not on PATH.
      This package requires Rust and Cargo to compile extensions. Install it through
      the system's package manager or via https://rustup.rs/
      
      Checking for Rust toolchain....
      [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.

Works on python 3.11 though. Maybe you could clamp your compatible version in your pypi listing?

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