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 install from wheels for 3.10 on arm linux (inside M1 host docker) #28

Closed
rbusquet opened this issue Sep 20, 2022 · 4 comments
Closed

Comments

@rbusquet
Copy link

I'm trying to install it on an arm linux docker container, running on a M1 macbook host.

On my host it downloads the wheels properly:

% python3 --version
Python 3.10.6

% python3 -m pip install pyxirr --no-cache
Collecting pyxirr
  Downloading pyxirr-0.7.2-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (406 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 406.5/406.5 kB 13.2 MB/s eta 0:00:00
Installing collected packages: pyxirr
Successfully installed pyxirr-0.7.2

It installs correctly up to python 3.9:

# python --version
Python 3.9.14
# pip install pyxirr --no-cache
Collecting pyxirr
  Downloading pyxirr-0.7.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (207 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 207.3/207.3 KB 11.1 MB/s eta 0:00:00
Installing collected packages: pyxirr
Successfully installed pyxirr-0.7.2

but fails with python 3.10:

# pip install pyxirr --no-cache
Collecting pyxirr
  Downloading pyxirr-0.7.2.tar.gz (128 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 128.7/128.7 kB 10.4 MB/s eta 0:00:00
  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
  ╰─> [6 lines of output]
      
      Cargo, the Rust package manager, is not installed or is not on PATH.
      This package requires Rust and Cargo to compile extensions. Install it through
      the system's package manager or via https://rustup.rs/
      
      Checking for Rust toolchain....
      [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.
@Anexen
Copy link
Owner

Anexen commented Sep 22, 2022

Yeah, arm wheels for python 3.10 have not been uploaded to pypi. @rbusquet, please, try again.

@rbusquet
Copy link
Author

so the solution is having it compile, so make sure the container or host has the rust toolchain?

Not a problem to add this on my end. Is there anything blocking us from getting the cross compilation to work for arm wheels on 3.10?

Thanks for the response!

@rbusquet
Copy link
Author

oh I see you ran the action to upload it. Thanks!

@Anexen
Copy link
Owner

Anexen commented Sep 24, 2022

Yes, you need to have a rust toolchain to install from the source distribution (tar.gz archive).
P.S. Please, close the issue if the installation is now working.

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

2 participants