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

“not a supported wheel” on musl platform #589

Closed
veikman opened this issue Jul 12, 2021 · 3 comments
Closed

“not a supported wheel” on musl platform #589

veikman opened this issue Jul 12, 2021 · 3 comments

Comments

@veikman
Copy link

veikman commented Jul 12, 2021

Over in this project I have just switched to maturin v0.11 to build for musllinux. The commands to build are available in the project’s tasks.py, and dependencies listed in Cargo.toml (currently locked to pyo3 0.13.2). Building happens on a system with GLIBC 2.33-0ubuntu5, x86_64.

The manylinux build (containerized, CentOS) works as intended and its results are usable. No apparent errors occur in the musllinux build process (not containerized), but an Alpine container (running musl 1.2.2, pip 21.1.1) rejects the result.

Example Dockerfile with actual filename of maturin build artifact:

FROM python:3.8-alpine
COPY punwrap-0.2.0_SNAPSHOT-cp38-cp38-musllinux_1_2_x86_64.whl .
RUN pip3 install punwrap-0.2.0_SNAPSHOT-cp38-cp38-musllinux_1_2_x86_64.whl

Error message:

Step 3/3 : RUN pip3 install punwrap-0.2.0_SNAPSHOT-cp38-cp38-musllinux_1_2_x86_64.whl
 ---> Running in b287f8ac7736
ERROR: punwrap-0.2.0_SNAPSHOT-cp38-cp38-musllinux_1_2_x86_64.whl is not a supported wheel on this platform.

I suppose I am missing something.

@messense
Copy link
Member

I think pip does not have musllinux support yet.

@messense
Copy link
Member

Blocked by pypa/pip#10144

@messense
Copy link
Member

Can you try pip 21.2.1, it seems to have musllinux support now.

/ # pip install -U pip
Requirement already satisfied: pip in /usr/lib/python3.9/site-packages (20.3.4)
Collecting pip
  Downloading pip-21.2.1-py3-none-any.whl (1.6 MB)
     |████████████████████████████████| 1.6 MB 920 kB/s
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 20.3.4
    Uninstalling pip-20.3.4:
      Successfully uninstalled pip-20.3.4
Successfully installed pip-21.2.1
/ # pip --version
pip 21.2.1 from /usr/lib/python3.9/site-packages/pip (python 3.9)
/ # pip debug --verbose
WARNING: This command is only meant for debugging. Do not use this with automation for parsing and getting these details, since the output and options of this command may change without notice.
pip version: pip 21.2.1 from /usr/lib/python3.9/site-packages/pip (python 3.9)
sys.version: 3.9.6 (default, Jun 29 2021, 01:34:52)
[GCC 10.3.1 20210625]
sys.executable: /usr/bin/python3
sys.getdefaultencoding: utf-8
sys.getfilesystemencoding: utf-8
locale.getpreferredencoding: UTF-8
sys.platform: linux
sys.implementation:
  name: cpython
'cert' config value: Not specified
REQUESTS_CA_BUNDLE: None
CURL_CA_BUNDLE: None
pip._vendor.certifi.where(): /usr/lib/python3.9/site-packages/pip/_vendor/certifi/cacert.pem
pip._vendor.DEBUNDLED: False
vendored library versions:
  appdirs==1.4.4
  CacheControl==0.12.6
  colorama==0.4.4
  distlib==0.3.2
  distro==1.5.0 (Unable to locate actual module version, using vendor.txt specified version)
  html5lib==1.1
  msgpack==1.0.2 (Unable to locate actual module version, using vendor.txt specified version)
  packaging==21.0
  pep517==0.11.0
  progress==1.5
  pyparsing==2.4.7
  requests==2.26.0
  certifi==2021.05.30
  chardet==4.0.0
  idna==3.2
  urllib3==1.26.6
  resolvelib==0.7.1
  setuptools==44.0.0 (Unable to locate actual module version, using vendor.txt specified version)
  six==1.16.0
  tenacity==8.0.1 (Unable to locate actual module version, using vendor.txt specified version)
  tomli==1.0.3
  webencodings==0.5.1 (Unable to locate actual module version, using vendor.txt specified version)
Compatible tags: 96
  cp39-cp39-musllinux_1_2_aarch64
  cp39-cp39-musllinux_1_1_aarch64
  cp39-cp39-musllinux_1_0_aarch64
  cp39-cp39-linux_aarch64
  cp39-abi3-musllinux_1_2_aarch64
  cp39-abi3-musllinux_1_1_aarch64
  cp39-abi3-musllinux_1_0_aarch64
  cp39-abi3-linux_aarch64
  cp39-none-musllinux_1_2_aarch64
  cp39-none-musllinux_1_1_aarch64
  cp39-none-musllinux_1_0_aarch64
  cp39-none-linux_aarch64
  cp38-abi3-musllinux_1_2_aarch64
  cp38-abi3-musllinux_1_1_aarch64
  cp38-abi3-musllinux_1_0_aarch64
  cp38-abi3-linux_aarch64
  cp37-abi3-musllinux_1_2_aarch64
  cp37-abi3-musllinux_1_1_aarch64
  cp37-abi3-musllinux_1_0_aarch64
  cp37-abi3-linux_aarch64
  cp36-abi3-musllinux_1_2_aarch64
  cp36-abi3-musllinux_1_1_aarch64
  cp36-abi3-musllinux_1_0_aarch64
  cp36-abi3-linux_aarch64
  cp35-abi3-musllinux_1_2_aarch64
  cp35-abi3-musllinux_1_1_aarch64
  cp35-abi3-musllinux_1_0_aarch64
  cp35-abi3-linux_aarch64
  cp34-abi3-musllinux_1_2_aarch64
  cp34-abi3-musllinux_1_1_aarch64
  cp34-abi3-musllinux_1_0_aarch64
  cp34-abi3-linux_aarch64
  cp33-abi3-musllinux_1_2_aarch64
  cp33-abi3-musllinux_1_1_aarch64
  cp33-abi3-musllinux_1_0_aarch64
  cp33-abi3-linux_aarch64
  cp32-abi3-musllinux_1_2_aarch64
  cp32-abi3-musllinux_1_1_aarch64
  cp32-abi3-musllinux_1_0_aarch64
  cp32-abi3-linux_aarch64
  py39-none-musllinux_1_2_aarch64
  py39-none-musllinux_1_1_aarch64
  py39-none-musllinux_1_0_aarch64
  py39-none-linux_aarch64
  py3-none-musllinux_1_2_aarch64
  py3-none-musllinux_1_1_aarch64
  py3-none-musllinux_1_0_aarch64
  py3-none-linux_aarch64
  py38-none-musllinux_1_2_aarch64
  py38-none-musllinux_1_1_aarch64
  py38-none-musllinux_1_0_aarch64
  py38-none-linux_aarch64
  py37-none-musllinux_1_2_aarch64
  py37-none-musllinux_1_1_aarch64
  py37-none-musllinux_1_0_aarch64
  py37-none-linux_aarch64
  py36-none-musllinux_1_2_aarch64
  py36-none-musllinux_1_1_aarch64
  py36-none-musllinux_1_0_aarch64
  py36-none-linux_aarch64
  py35-none-musllinux_1_2_aarch64
  py35-none-musllinux_1_1_aarch64
  py35-none-musllinux_1_0_aarch64
  py35-none-linux_aarch64
  py34-none-musllinux_1_2_aarch64
  py34-none-musllinux_1_1_aarch64
  py34-none-musllinux_1_0_aarch64
  py34-none-linux_aarch64
  py33-none-musllinux_1_2_aarch64
  py33-none-musllinux_1_1_aarch64
  py33-none-musllinux_1_0_aarch64
  py33-none-linux_aarch64
  py32-none-musllinux_1_2_aarch64
  py32-none-musllinux_1_1_aarch64
  py32-none-musllinux_1_0_aarch64
  py32-none-linux_aarch64
  py31-none-musllinux_1_2_aarch64
  py31-none-musllinux_1_1_aarch64
  py31-none-musllinux_1_0_aarch64
  py31-none-linux_aarch64
  py30-none-musllinux_1_2_aarch64
  py30-none-musllinux_1_1_aarch64
  py30-none-musllinux_1_0_aarch64
  py30-none-linux_aarch64
  cp39-none-any
  py39-none-any
  py3-none-any
  py38-none-any
  py37-none-any
  py36-none-any
  py35-none-any
  py34-none-any
  py33-none-any
  py32-none-any
  py31-none-any
  py30-none-any

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