Skip to content

Error message on installation with pip #11

@Robinlovelace

Description

@Robinlovelace

Heads-up @pkopparla I just tried to install the Python package with pip on my Ubuntu laptop. Very happy to say: it's clearly there and works 🎉 FYI I get this error message, this is not an error with the package but with my Rust installation that I've seen on other projects (most recently A/B Street) so will check in with Rust expert @dabreegster on resolving it. Opening this issue here in case other people hit the issue. Can't wait to give it a try!

pip install zonebuilder
Collecting zonebuilder
  Downloading zonebuilder-1.0.1.tar.gz (62 kB)
     |████████████████████████████████| 62 kB 778 kB/s 
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... error
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 /tmp/tmpgjedls6l prepare_metadata_for_build_wheel /tmp/tmpujcxvqeq
         cwd: /tmp/pip-install-nyex8wzl/zonebuilder
    Complete output (13 lines):
    💥 maturin failed
      Caused by: Cargo metadata failed. Does your crate compile with `cargo build`?
      Caused by: `cargo metadata` exited with an error: error: failed to parse manifest at `/tmp/pip-install-nyex8wzl/zonebuilder/Cargo.toml`
    
    Caused by:
      feature `edition2021` is required
    
      The package requires the Cargo feature called `edition2021`, but that feature is not stabilized in this version of Cargo (1.55.0 (32da73ab1 2021-08-23)).
      Consider trying a newer version of Cargo (this may require the nightly release).
      See https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#edition-2021 for more information about the status of this feature.
    Error running maturin: Command '['maturin', 'pep517', 'write-dist-info', '--metadata-directory', '/tmp/pip-modern-metadata-a1wv99px', '--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-a1wv99px --interpreter /usr/bin/python3`
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 /tmp/tmpgjedls6l prepare_metadata_for_build_wheel /tmp/tmpujcxvqeq Check the logs for full command output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions