Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The dependency rpassword 7 means a nightly rustc #1070

Closed
1 of 2 tasks
woutervb opened this issue Aug 30, 2022 · 4 comments · Fixed by #1071
Closed
1 of 2 tasks

The dependency rpassword 7 means a nightly rustc #1070

woutervb opened this issue Aug 30, 2022 · 4 comments · Fixed by #1071
Labels
wontfix This will not be worked on

Comments

@woutervb
Copy link

Bug Description

When trying to create a wheel on Ubuntu Jammy (22.04) & Ubuntu Focal (20.04), it fails with an error that rpassword can't be build namespaced features with the dep:prefix are only allowed on the nightly channel and requires the-Z namespaced-features flag on the command-line

  
  × Building wheel for maturin (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [39 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-cpython-310
      creating build/lib.linux-x86_64-cpython-310/maturin
      copying maturin/import_hook.py -> build/lib.linux-x86_64-cpython-310/maturin
      copying maturin/__init__.py -> build/lib.linux-x86_64-cpython-310/maturin
      copying maturin/__main__.py -> build/lib.linux-x86_64-cpython-310/maturin
      running egg_info
      creating maturin.egg-info
      writing maturin.egg-info/PKG-INFO
      writing dependency_links to maturin.egg-info/dependency_links.txt
      writing requirements to maturin.egg-info/requires.txt
      writing top-level names to maturin.egg-info/top_level.txt
      writing manifest file 'maturin.egg-info/SOURCES.txt'
      reading manifest file 'maturin.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      writing manifest file 'maturin.egg-info/SOURCES.txt'
      running build_ext
      running build_rust
      cargo build --manifest-path Cargo.toml --message-format=json-render-diagnostics --release -v
      error: failed to get `anyhow` as a dependency of package `maturin v0.13.2 (/tmp/pip-req-build-pp0gr68x)`
      
      Caused by:
        failed to load source for dependency `anyhow`
      
      Caused by:
        Unable to update registry `crates-io`
      
      Caused by:
        failed to update replaced source registry `crates-io`
      
      Caused by:
        failed to parse manifest at `/srv/rust_vendored/rpassword-7.0.0/Cargo.toml`
      
      Caused by:
        namespaced features with the `dep:` prefix are only allowed on the nightly channel and requires the `-Z namespaced-features` flag on the command-line
      error: `cargo build --manifest-path Cargo.toml --message-format=json-render-diagnostics --release -v` failed with code 101
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for maturin

Your Python version (python -V)

python 3.8 on Focal, 3.10 on Jammy

Your pip version (pip -V)

pip 21.2.4

What bindings you're using

No response

Does cargo build work?

  • Yes, it works

If on windows, have you checked that you aren't accidentally using unix path (those with the forward slash /)?

  • Yes

Steps to Reproduce

pip wheel maturin-0.13.2.tar.gz

@woutervb woutervb added the bug Something isn't working label Aug 30, 2022
@messense
Copy link
Member

Your Rust version is too old. That feature was already stabilized in 1.60.0, see https://blog.rust-lang.org/2022/04/07/Rust-1.60.0.html#new-syntax-for-cargo-features

@messense messense closed this as not planned Won't fix, can't repro, duplicate, stale Aug 30, 2022
@messense messense added wontfix This will not be worked on and removed bug Something isn't working labels Aug 30, 2022
@woutervb
Copy link
Author

I know that the rustc 1.59 which is the version provided in an Ubuntu LTS release.

In #708 I saw that you sometimes do take actions to ensure availability on platforms is a specific version of rustc isn't available, Requiring a version that is available since April, just 4 months, seems a bit harsh.

@messense
Copy link
Member

messense commented Aug 30, 2022

OK, so for normal users we recommend use our pre-built wheels or compile with stable Rust installed via rustup.

If you are trying to package maturin into Ubuntu/Debian, feel free to open a new issue to discuss it, we have a lot of dependencies, it may seem easy to support Rust 1.59 right now, but in the long run we'd need to add a CI job to ensure its compatibility.

@messense
Copy link
Member

Opened #1071

@messense messense linked a pull request Aug 31, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants