Skip to content

Error when installing py-near in a Linux docker container running on MacOS #26

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

Open
yogh333 opened this issue Dec 2, 2024 · 1 comment

Comments

@yogh333
Copy link

yogh333 commented Dec 2, 2024

I have an error when installing py-near:

pip install py-near
Collecting py-near
  Using cached py_near-1.1.50-py3-none-any.whl.metadata (4.7 kB)
Collecting ed25519==1.5 (from py-near)
  Using cached ed25519-1.5.tar.gz (868 kB)
  Preparing metadata (setup.py) ... done
Collecting httpx==0.26.0 (from py-near)
  Using cached httpx-0.26.0-py3-none-any.whl.metadata (7.6 kB)
Collecting py-near-primitives==0.2.3 (from py-near)
  Using cached py_near_primitives-0.2.3.tar.gz (26 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [5 lines of output]
      💥 maturin failed
        Caused by: No such file or directory (os error 2)
      Error running maturin: Command '['maturin', 'pep517', 'write-dist-info', '--metadata-directory', '/tmp/pip-modern-metadata-q_lx2d4b', '--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-q_lx2d4b --interpreter /usr/bin/python3`
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
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.

I am using a Docker container to run Linux on MacOS:

uname -a
Linux c81a8fece89b 6.10.14-linuxkit #1 SMP Thu Oct 24 19:28:55 UTC 2024 aarch64 Linux
@yogh333
Copy link
Author

yogh333 commented Dec 3, 2024

Linked with pvolnov/near-primitives#2

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