prefix-dev / pixi

Package management made easy
https://pixi.sh
BSD 3-Clause "New" or "Revised" License
3.32k stars 185 forks source link

cargo install pixi fail #755

Closed xiaoxiangmoe closed 9 months ago

xiaoxiangmoe commented 9 months ago

Checks

Reproducible example

cargo install pixi
cargo install pixi
    Updating crates.io index
  Installing pixi v0.13.0
    Updating crates.io index
   Compiling proc-macro2 v1.0.78
   Compiling unicode-ident v1.0.12
   Compiling libc v0.2.153
   Compiling serde v1.0.196
   Compiling cfg-if v1.0.0
   Compiling version_check v0.9.4
   Compiling autocfg v1.1.0
   Compiling memchr v2.7.1
   Compiling pin-project-lite v0.2.13
   Compiling once_cell v1.19.0
   Compiling hashbrown v0.14.3
   Compiling equivalent v1.0.1
   Compiling rustix v0.38.30
   Compiling bitflags v2.4.2
   Compiling itoa v1.0.10
   Compiling typenum v1.17.0
   Compiling bytes v1.5.0
   Compiling generic-array v0.14.7
   Compiling log v0.4.20
   Compiling tracing-core v0.1.32
   Compiling unicase v2.7.0
   Compiling core-foundation-sys v0.8.6
   Compiling jobserver v0.1.27
   Compiling futures-core v0.3.30
   Compiling pkg-config v0.3.29
   Compiling cc v1.0.83
   Compiling quote v1.0.35
   Compiling syn v2.0.48
   Compiling subtle v2.5.0
   Compiling ryu v1.0.16
   Compiling futures-sink v0.3.30
   Compiling thiserror v1.0.56
   Compiling futures-io v0.3.30
   Compiling slab v0.4.9
   Compiling errno v0.3.8
   Compiling signal-hook-registry v1.4.1
   Compiling num_cpus v1.16.0
   Compiling mio v0.8.10
   Compiling socket2 v0.5.5
   Compiling tinyvec_macros v0.1.1
   Compiling pin-utils v0.1.0
   Compiling adler v1.0.2
   Compiling crypto-common v0.1.6
   Compiling block-buffer v0.10.4
   Compiling serde_json v1.0.113
   Compiling digest v0.10.7
   Compiling percent-encoding v2.3.1
   Compiling lazy_static v1.4.0
   Compiling miniz_oxide v0.7.1
   Compiling zstd-sys v2.0.9+zstd.1.5.5
   Compiling tinyvec v1.6.0
   Compiling cpufeatures v0.2.12
   Compiling futures-channel v0.3.30
   Compiling futures-task v0.3.30
   Compiling form_urlencoded v1.2.1
   Compiling unicode-bidi v0.3.15
   Compiling aho-corasick v1.1.2
   Compiling fastrand v2.0.1
   Compiling regex-syntax v0.8.2
   Compiling either v1.9.0
   Compiling fnv v1.0.7
   Compiling tempfile v3.9.0
   Compiling unicode-normalization v0.1.22
   Compiling idna v0.5.0
   Compiling heck v0.4.1
   Compiling strsim v0.10.0
   Compiling crc32fast v1.3.2
   Compiling ident_case v1.0.1
   Compiling sha2 v0.10.8
   Compiling core-foundation v0.9.4
   Compiling bitflags v1.3.2
   Compiling anyhow v1.0.79
   Compiling http v0.2.11
   Compiling bzip2-sys v0.1.11+1.0.8
   Compiling regex-automata v0.4.5
   Compiling security-framework-sys v2.9.1
   Compiling darling_core v0.20.5
   Compiling indexmap v1.9.3
   Compiling base64 v0.21.7
   Compiling unicode-width v0.1.11
   Compiling security-framework v2.9.2
   Compiling flate2 v1.0.28
   Compiling getrandom v0.2.12
   Compiling num-traits v0.2.17
   Compiling hashbrown v0.12.3
   Compiling serde_derive v1.0.196
   Compiling tracing-attributes v0.1.27
   Compiling tokio-macros v2.2.0
   Compiling thiserror-impl v1.0.56
   Compiling tokio v1.35.1
   Compiling tracing v0.1.40
   Compiling futures-macro v0.3.30
   Compiling regex v1.10.3
   Compiling darling_macro v0.20.5
   Compiling native-tls v0.2.11
   Compiling futures-util v0.3.30
   Compiling darling v0.20.5
   Compiling httparse v1.8.0
   Compiling rand_core v0.6.4
   Compiling siphasher v0.3.11
   Compiling zstd-safe v7.0.0
   Compiling phf_shared v0.11.2
   Compiling serde_with_macros v3.6.0
   Compiling rand v0.8.5
   Compiling try-lock v0.2.5
   Compiling system-configuration-sys v0.5.0
   Compiling rustversion v1.0.14
   Compiling want v0.3.1
   Compiling tokio-util v0.7.10
   Compiling phf_generator v0.11.2
   Compiling http-body v0.4.6
   Compiling itertools v0.12.1
   Compiling md-5 v0.10.6
   Compiling blake2 v0.10.6
   Compiling mime_guess v2.0.4
   Compiling iana-time-zone v0.1.59
   Compiling smartstring v1.0.1
   Compiling static_assertions v1.1.0
   Compiling httpdate v1.0.3
   Compiling tower-service v0.3.2
   Compiling byteorder v1.5.0
   Compiling indexmap v2.2.2
   Compiling url v2.5.0
   Compiling hex v0.4.3
   Compiling smallvec v1.13.1
   Compiling chrono v0.4.33
   Compiling phf_macros v0.11.2
   Compiling tokio-native-tls v0.3.1
   Compiling serde_with v3.6.0
   Compiling h2 v0.3.24
   Compiling mime v0.3.17
   Compiling lazy-regex-proc_macros v3.1.0
   Compiling strum_macros v0.26.1
   Compiling phf v0.11.2
   Compiling system-configuration v0.5.1
   Compiling serde_urlencoded v0.7.1
   Compiling rustls-pemfile v1.0.4
   Compiling encoding_rs v0.8.33
   Compiling unsafe-libyaml v0.2.10
   Compiling powerfmt v0.2.0
   Compiling glob v0.3.1
   Compiling async-trait v0.1.77
   Compiling ipnet v2.9.0
   Compiling minimal-lexical v0.2.1
   Compiling sync_wrapper v0.1.2
   Compiling nom v7.1.3
   Compiling hyper v0.14.28
   Compiling strum v0.26.1
   Compiling serde_yaml v0.9.31
   Compiling deranged v0.3.11
   Compiling purl v0.1.2
   Compiling lazy-regex v3.1.0
   Compiling rattler_digest v0.17.0
   Compiling fxhash v0.2.1
   Compiling futures-executor v0.3.30
   Compiling rattler_macros v0.17.0
   Compiling hyper-tls v0.5.0
   Compiling serde_repr v0.1.18
   Compiling crossbeam-utils v0.8.19
   Compiling num-conv v0.1.0
   Compiling ppv-lite86 v0.2.17
   Compiling time-core v0.1.2
   Compiling time v0.3.32
   Compiling rand_chacha v0.3.1
   Compiling rattler_conda_types v0.17.0
   Compiling futures v0.3.30
   Compiling is-terminal v0.4.10
   Compiling task-local-extensions v0.1.4
   Compiling backtrace v0.3.69
   Compiling gimli v0.28.1
   Compiling zstd-safe v5.0.2+zstd.1.5.2
   Compiling serde_spanned v0.6.5
   Compiling toml_datetime v0.6.5
   Compiling inout v0.1.3
   Compiling object v0.32.2
   Compiling base64ct v1.6.0
   Compiling utf8parse v0.2.1
   Compiling radium v0.7.0
   Compiling option-ext v0.2.0
   Compiling rustc-demangle v0.1.23
   Compiling winnow v0.5.36
   Compiling dirs-sys v0.4.1
   Compiling addr2line v0.21.0
   Compiling anstyle-parse v0.2.3
   Compiling password-hash v0.4.2
   Compiling cipher v0.4.4
   Compiling crossbeam-epoch v0.9.18
   Compiling sha1 v0.10.6
   Compiling hmac v0.12.1
   Compiling proc-macro2-diagnostics v0.10.1
   Compiling is_ci v1.1.1
   Compiling anstyle v1.0.5
   Compiling rayon-core v1.12.1
   Compiling colorchoice v1.0.0
   Compiling tap v1.0.1
   Compiling anstyle-query v1.0.2
   Compiling smawk v0.3.2
   Compiling unicode-linebreak v0.1.5
   Compiling wyz v0.5.1
   Compiling anstream v0.6.11
   Compiling textwrap v0.15.2
   Compiling supports-color v2.1.0
   Compiling pbkdf2 v0.11.0
   Compiling crossbeam-deque v0.8.5
   Compiling aes v0.8.3
   Compiling dirs v5.0.1
   Compiling pep440_rs v0.4.0
   Compiling toml_edit v0.21.1
   Compiling retry-policies v0.2.1
   Compiling supports-hyperlinks v2.1.0
   Compiling supports-unicode v2.1.0
   Compiling tokio-stream v0.1.14
   Compiling miette-derive v5.10.0
   Compiling pin-project-internal v1.1.4
   Compiling backtrace-ext v0.2.1
   Compiling keyring v2.3.2
   Compiling xattr v1.3.1
   Compiling terminal_size v0.3.0
   Compiling filetime v0.2.23
   Compiling fslock v0.2.1
   Compiling memmap2 v0.9.4
   Compiling terminal_size v0.1.17
   Compiling lock_api v0.4.11
   Compiling parking_lot_core v0.9.9
   Compiling funty v2.0.0
   Compiling yansi v1.0.0-rc.1
   Compiling clap_lex v0.6.0
   Compiling netrc-rs v0.1.2
   Compiling toml v0.8.9
   Compiling owo-colors v3.5.0
   Compiling stable_deref_trait v1.2.0
   Compiling constant_time_eq v0.1.5
   Compiling fixedbitset v0.4.2
   Compiling libm v0.2.8
   Compiling bitvec v1.0.1
   Compiling petgraph v0.6.4
   Compiling miette v5.10.0
   Compiling elsa v1.10.0
   Compiling clap_builder v4.4.18
   Compiling pin-project v1.1.4
   Compiling tar v0.4.40
   Compiling clap_derive v4.4.7
   Compiling itertools v0.11.0
   Compiling sha-1 v0.10.1
   Compiling fs-err v2.11.0
   Compiling reflink-copy v0.1.14
   Compiling half v2.3.1
   Compiling portable-atomic v1.6.0
   Compiling scopeguard v1.2.0
   Compiling ciborium-io v0.2.2
   Compiling peg-runtime v0.8.2
   Compiling xxhash-rust v0.8.8
   Compiling safemem v0.3.3
   Compiling same-file v1.0.6
   Compiling regex-syntax v0.6.29
   Compiling walkdir v2.4.0
   Compiling line-wrap v0.1.1
   Compiling peg-macros v0.8.2
   Compiling ssri v9.2.0
   Compiling ciborium-ll v0.2.2
   Compiling clap v4.4.18
   Compiling resolvo v0.3.0
   Compiling rayon v1.8.1
   Compiling ouroboros_macro v0.18.3
   Compiling regex-automata v0.1.10
   Compiling pep440_rs v0.3.12
   Compiling treediff v4.0.2
   Compiling http-serde v1.1.3
   Compiling async-compression v0.3.15
   Compiling console v0.15.8
   Compiling memmap2 v0.5.10
   Compiling include_dir_macros v0.7.3
   Compiling quick-xml v0.31.0
   Compiling csv-core v0.1.11
   Compiling linked-hash-map v0.5.6
   Compiling bisection v0.1.0
   Compiling utf8-width v0.1.7
   Compiling overload v0.1.1
   Compiling signal-hook v0.3.17
   Compiling http-content-range v0.1.2
   Compiling aliasable v0.1.3
   Compiling ouroboros v0.18.3
   Compiling peg v0.8.2
   Compiling nu-ansi-term v0.46.0
   Compiling html-escape v0.2.13
   Compiling yaml-rust v0.4.5
   Compiling pep508_rs v0.2.4
   Compiling enum_dispatch v0.3.12
   Compiling plist v1.6.0
   Compiling csv v1.3.0
   Compiling include_dir v0.7.3
   Compiling cacache v12.0.0
   Compiling async_zip v0.0.15
   Compiling json-patch v1.2.0
   Compiling sysinfo v0.30.5
   Compiling humansize v2.1.3
   Compiling matchers v0.1.0
   Compiling parking_lot v0.12.1
   Compiling ciborium v0.2.2
   Compiling uuid v1.7.0
   Compiling rattler_digest v0.9.0
   Compiling pyproject-toml v0.8.2
   Compiling serde-json-python-formatter v0.1.0
   Compiling erased-serde v0.4.2
   Compiling async-recursion v1.0.5
   Compiling fs4 v0.6.6
   Compiling sharded-slab v0.1.7
   Compiling os_pipe v1.1.5
   Compiling tracing-log v0.2.0
   Compiling path-dedot v3.1.1
   Compiling thread_local v1.1.7
   Compiling libloading v0.8.1
   Compiling data-encoding v2.5.0
   Compiling async-once-cell v0.5.3
   Compiling tl v0.7.8
   Compiling humantime v2.1.0
   Compiling drop_bomb v0.1.5
   Compiling pathdiff v0.2.1
   Compiling shlex v1.3.0
   Compiling configparser v3.0.4
   Compiling number_prefix v0.4.0
   Compiling dunce v1.0.4
   Compiling superslice v1.0.0
   Compiling monch v0.5.0
   Compiling similar v2.4.0
   Compiling cache_control v0.2.0
   Compiling deno_task_shell v0.14.4
   Compiling indicatif v0.17.7
   Compiling insta v1.34.0
   Compiling rattler_shell v0.17.0
   Compiling tracing-subscriber v0.3.18
   Compiling rattler_virtual_packages v0.17.0
   Compiling serde-untagged v0.1.5
   Compiling rattler_lock v0.17.0
error[E0308]: mismatched types
   --> /Users/me/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rattler_lock-0.17.0/src/pypi.rs:71:35
    |
71  |                 if !spec.contains(&self.version) {
    |                          -------- ^^^^^^^^^^^^^ expected `pep440_rs::version::Version`, found `pep440_rs::Version`
    |                          |
    |                          arguments to this method are incorrect
    |
    = note: `pep440_rs::Version` and `pep440_rs::version::Version` have similar names, but are actually distinct types
note: `pep440_rs::Version` is defined in crate `pep440_rs`
   --> /Users/me/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pep440_rs-0.3.12/src/version.rs:268:1
    |
268 | pub struct Version {
    | ^^^^^^^^^^^^^^^^^^
note: `pep440_rs::version::Version` is defined in crate `pep440_rs`
   --> /Users/me/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pep440_rs-0.4.0/src/version.rs:263:1
    |
263 | pub struct Version {
    | ^^^^^^^^^^^^^^^^^^
    = note: perhaps two different versions of crate `pep440_rs` are being used?
note: method defined here
   --> /Users/me/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pep440_rs-0.4.0/src/version_specifier.rs:70:12
    |
70  |     pub fn contains(&self, version: &Version) -> bool {
    |            ^^^^^^^^

error[E0308]: mismatched types
   --> /Users/me/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rattler_lock-0.17.0/src/utils/serde/pep440_map_or_vec.rs:35:61
    |
35  |                         Some(VersionOrUrl::VersionSpecifier(spec))
    |                              ------------------------------ ^^^^ expected `pep440_rs::version_specifier::VersionSpecifiers`, found `VersionSpecifiers`
    |                              |
    |                              arguments to this enum variant are incorrect
    |
    = note: `VersionSpecifiers` and `pep440_rs::version_specifier::VersionSpecifiers` have similar names, but are actually distinct types
note: `VersionSpecifiers` is defined in crate `pep440_rs`
   --> /Users/me/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pep440_rs-0.3.12/src/version_specifier.rs:58:1
    |
58  | pub struct VersionSpecifiers(Vec<VersionSpecifier>);
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: `pep440_rs::version_specifier::VersionSpecifiers` is defined in crate `pep440_rs`
   --> /Users/me/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pep440_rs-0.4.0/src/version_specifier.rs:58:1
    |
58  | pub struct VersionSpecifiers(Vec<VersionSpecifier>);
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    = note: perhaps two different versions of crate `pep440_rs` are being used?
note: tuple variant defined here
   --> /Users/me/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pep508_rs-0.2.4/src/lib.rs:371:5
    |
371 |     VersionSpecifier(VersionSpecifiers),
    |     ^^^^^^^^^^^^^^^^

   Compiling rattler_solve v0.17.0
For more information about this error, try `rustc --explain E0308`.
error: could not compile `rattler_lock` (lib) due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
error: failed to compile `pixi v0.13.0`, intermediate artifacts can be found at `/var/folders/78/xyndpqlj0wz9t8bl3qk0vn040000gn/T/cargo-installxeFphX`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

Issue description

none

Expected behavior

none

ruben-arts commented 9 months ago

You should use cargo install --locked pixi because otherwise you could get newer versions of dependencies.