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

bug: Python bindings 0.3.0 - throwing failed to load manifest for dependency ant-logging #2581

Open
jadkins-me opened this issue Dec 30, 2024 · 0 comments

Comments

@jadkins-me
Copy link

Seeing a dependency error when trying to import the latest Python Api as below.

pip install autonomi-client --verbose
Using pip 22.0.2 from /usr/lib/python3/dist-packages/pip (python 3.10)
Defaulting to user installation because normal site-packages is not writeable
Collecting autonomi-client
  Downloading autonomi_client-0.3.0.tar.gz (327 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 327.4/327.4 KB 857.7 kB/s eta 0:00:00
  Running command pip subprocess to install build dependencies
  Collecting maturin<2.0,>=1.0
    Downloading maturin-1.8.1-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.musllinux_1_1_x86_64.whl (8.0 MB)
       ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 8.0/8.0 MB 2.1 MB/s eta 0:00:00
  Collecting tomli>=1.1.0
    Downloading tomli-2.2.1-py3-none-any.whl (14 kB)
  Installing collected packages: tomli, maturin
  Successfully installed maturin-1.8.1 tomli-2.2.1
  Installing build dependencies ... done
  Running command Getting requirements to build wheel
  Getting requirements to build wheel ... done
  Running command Preparing metadata (pyproject.toml)
  error: failed to load manifest for workspace member `/tmp/pip-install-vkd37hqq/autonomi-client_ffa258925e804e63878c6e2bc70a0f2f/ant-bootstrap`
  referenced by workspace at `/tmp/pip-install-vkd37hqq/autonomi-client_ffa258925e804e63878c6e2bc70a0f2f/Cargo.toml`

  Caused by:
    failed to load manifest for dependency `ant-logging`

  Caused by:
    failed to read `/home/runner/work/autonomi/autonomi/build/ant-logging/Cargo.toml`

  Caused by:
    No such file or directory (os error 2)
  💥 maturin failed
    Caused by: Cargo metadata failed. Does your crate compile with `cargo build`?
    Caused by: `cargo metadata` exited with an error:
  Error running maturin: Command '['maturin', 'pep517', 'write-dist-info', '--metadata-directory', '/tmp/pip-modern-metadata-o4fu_db1', '--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-o4fu_db1 --interpreter /usr/bin/python3`
  error: subprocess-exited-with-error
  
  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> See above for output.
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  full command: /usr/bin/python3 /usr/lib/python3/dist-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /tmp/tmpzj_oqlkw
  cwd: /tmp/pip-install-vkd37hqq/autonomi-client_ffa258925e804e63878c6e2bc70a0f2f
  Preparing metadata (pyproject.toml) ... error
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
pip --version
pip 22.0.2 from /usr/lib/python3/dist-packages/pip (python 3.10)
rustup --version
rustup 1.27.1 (54dd3d00f 2024-04-24)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `rustc 1.83.0 (90b35a623 2024-11-26)`
python --version
Python 3.10.12
uname -as
6.8.0-50-generic #51~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 21 12:03:03 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
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

No branches or pull requests

1 participant