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

Can't cargo install maturin anymore #1671

Closed
2 tasks
sourproton opened this issue Jun 19, 2023 · 1 comment · May be fixed by #2222
Closed
2 tasks

Can't cargo install maturin anymore #1671

sourproton opened this issue Jun 19, 2023 · 1 comment · May be fixed by #2222

Comments

@sourproton
Copy link

Bug Description

I used to be able to globally install maturin in my system with cargo install maturin.

Now, after compiling all dependencies, the build fails with the following error:

...
   Compiling maturin v1.1.0
error[E0308]: mismatched types
   --> /home/sourproton/.cargo/registry/src/index.crates.io-6f17d22bba15001f/maturin-1.1.0/src/upload.rs:401:40
    |
401 |         Ok(builder.tls_config(Arc::new(client_config)).build())
    |                               -------- ^^^^^^^^^^^^^ expected `rustls::client::client_conn::ClientConfig`, found `ClientConfig`
    |                               |
    |                               arguments to this function are incorrect
    |
    = note: `ClientConfig` and `rustls::client::client_conn::ClientConfig` have similar names, but are actually distinct types
note: `ClientConfig` is defined in crate `rustls`
   --> /home/sourproton/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rustls-0.20.8/src/client/client_conn.rs:91:1
    |
91  | pub struct ClientConfig {
    | ^^^^^^^^^^^^^^^^^^^^^^^
note: `rustls::client::client_conn::ClientConfig` is defined in crate `rustls`
   --> /home/sourproton/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rustls-0.21.2/src/client/client_conn.rs:125:1
    |
125 | pub struct ClientConfig {
    | ^^^^^^^^^^^^^^^^^^^^^^^
    = note: perhaps two different versions of crate `rustls` are being used?
note: associated function defined here
   --> /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/alloc/src/sync.rs:366:12

For more information about this error, try `rustc --explain E0308`.
error: could not compile `maturin` (lib) due to previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `maturin v1.1.0`, intermediate artifacts can be found at `/tmp/cargo-installyUfxu7`

Your maturin version (maturin --version)

1.1.0

Your Python version (python -V)

3.11.3

Your pip version (pip -V)

23.1.2

What bindings you're using

None

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

  1. install rustup
  2. run cargo install maturin
@sourproton sourproton added the bug Something isn't working label Jun 19, 2023
@messense
Copy link
Member

messense commented Jun 19, 2023

Please use cargo install --locked maturin.

See rust-lang/cargo#7169

@messense messense closed this as not planned Won't fix, can't repro, duplicate, stale Jun 19, 2023
@messense messense removed the bug Something isn't working label Jun 19, 2023
kornelski added a commit to kornelski/tmp-pr-ureq that referenced this issue Sep 17, 2024
kornelski added a commit to kornelski/tmp-pr-ureq that referenced this issue Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants