Skip to content

can't find crate for zerofrom_derive #64

@20171130

Description

@20171130

System Info

I am using Python 3.12.4 rustc 1.85.0 (4d91de4e4 2025-02-17) and the latest version of hf_transfer.

Reproduction

I am trying to install hf_transfer but the toolchain complains about missing ZeroFrom and zerofrom_derive. This problem is not solved after running cargo add zerofrom-derive && cargo add zerofrom

Defaulting to user installation because normal site-packages is not writeable
Looking in links: /cvmfs/soft.computecanada.ca/custom/python/wheelhouse/gentoo2023/x86-64-v3, /cvmfs/soft.computecanada.ca/custom/python/wheelhouse/gentoo2023/generic, /cvmfs/soft.computecanada.ca/custom/python/wheelhouse/generic
Obtaining file:///home/hangrui/hf_transfer
Installing build dependencies ... done
Checking if build backend supports build_editable ... done
Getting requirements to build editable ... done
Preparing editable metadata (pyproject.toml) ... done
Building wheels for collected packages: hf_transfer
Building editable for hf_transfer (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building editable for hf_transfer (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [63 lines of output]
Running maturin pep517 build-wheel -i /cvmfs/soft.computecanada.ca/easybuild/software/2023/x86-64-v3/Compiler/gcccore/python/3.12.4/bin/python --compatibility off --editable
🔗 Found pyo3 bindings with abi3 support for Python ≥ 3.8
🐍 Not using a specific python interpreter
Compiling zerofrom v0.1.6
Compiling futures-util v0.3.31
Compiling openssl v0.10.68
Compiling openssl-sys v0.9.104
Compiling openssl-macros v0.1.1
Compiling h2 v0.4.7
Compiling native-tls v0.2.12
Compiling httparse v1.9.5
error[E0463]: can't find crate for zerofrom_derive
--> /home/hangrui/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/zerofrom-0.1.6/src/lib.rs:35:9
|
35 | pub use zerofrom_derive::ZeroFrom;
| ^^^^^^^^^^^^^^^ can't find crate

  error[E0432]: unresolved import `crate::ZeroFrom`
   --> /home/hangrui/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/zerofrom-0.1.6/src/macro_impls.rs:9:5
    |
  9 | use crate::ZeroFrom;
    |     ^^^^^^^^^^^^^^^
  
  Some errors have detailed explanations: E0432, E0463.
  For more information about an error, try `rustc --explain E0432`.
  error: could not compile `zerofrom` (lib) due to 2 previous errors
  warning: build failed, waiting for other jobs to finish...
  error[E0463]: can't find crate for `futures_macro`
   --> /home/hangrui/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.31/src/async_await/stream_select_mod.rs:5:9
    |
  5 | pub use futures_macro::stream_select_internal;
    |         ^^^^^^^^^^^^^ can't find crate
  
  error[E0463]: can't find crate for `futures_macro`
    --> /home/hangrui/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.31/src/async_await/join_mod.rs:84:9
     |
  84 | pub use futures_macro::join_internal;
     |         ^^^^^^^^^^^^^ can't find crate
  
  error[E0463]: can't find crate for `futures_macro`
    --> /home/hangrui/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.31/src/async_await/join_mod.rs:88:9
     |
  88 | pub use futures_macro::try_join_internal;
     |         ^^^^^^^^^^^^^ can't find crate
  
  error[E0463]: can't find crate for `futures_macro`
     --> /home/hangrui/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.31/src/async_await/select_mod.rs:311:9
      |
  311 | pub use futures_macro::select_internal;
      |         ^^^^^^^^^^^^^ can't find crate
  
  error[E0463]: can't find crate for `futures_macro`
     --> /home/hangrui/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.31/src/async_await/select_mod.rs:315:9
      |
  315 | pub use futures_macro::select_biased_internal;
      |         ^^^^^^^^^^^^^ can't find crate
  
  For more information about this error, try `rustc --explain E0463`.
  error: could not compile `futures-util` (lib) due to 5 previous errors
  💥 maturin failed
    Caused by: Failed to build a native library through cargo
    Caused by: Cargo build finished with "exit status: 101": `env -u CARGO PYO3_ENVIRONMENT_SIGNATURE="cpython-3.12-64bit" PYO3_PYTHON="/cvmfs/soft.computecanada.ca/easybuild/software/2023/x86-64-v3/Compiler/gcccore/python/3.12.4/bin/python" PYTHON_SYS_EXECUTABLE="/cvmfs/soft.computecanada.ca/easybuild/software/2023/x86-64-v3/Compiler/gcccore/python/3.12.4/bin/python" "cargo" "rustc" "--message-format" "json-render-diagnostics" "--manifest-path" "/home/hangrui/hf_transfer/Cargo.toml" "--release" "--lib"`
  Error: command ['maturin', 'pep517', 'build-wheel', '-i', '/cvmfs/soft.computecanada.ca/easybuild/software/2023/x86-64-v3/Compiler/gcccore/python/3.12.4/bin/python', '--compatibility', 'off', '--editable'] returned non-zero exit status 1

Expected behavior

successful installation

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