You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
my dockerfile with installation of requirements.txt works perfectly on full python and slim python docker images, but fails on alpine. There is one package in dependencies, which fails the installation process.
Btw. the requirements.txt are auto-generated from poetry. I added the --no-dependencies flags in hope that there will be no additional dependencies resolution from pip itself. I do not know, if this is needed and good practice or not. Nevertheless it has no effect on the this issue.
...
#9 13.34 Downloading orjson-3.6.5.tar.gz (548 kB)#9 13.89 Installing build dependencies: started#9 23.48 Installing build dependencies: finished with status 'done'#9 23.48 Getting requirements to build wheel: started#9 23.56 Getting requirements to build wheel: finished with status 'done'#9 23.56 Preparing metadata (pyproject.toml): started#9 23.63 Preparing metadata (pyproject.toml): finished with status 'error'#9 23.63 ERROR: Command errored out with exit status 1:#9 23.63 command: /usr/local/bin/python /usr/local/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /tmp/tmp17_b83bo#9 23.63 cwd: /tmp/pip-install-2qkxhzds/orjson_622ea27d4e88415cbce553380104fc52#9 23.63 Complete output (6 lines):#9 23.63#9 23.63 Cargo, the Rust package manager, is not installed or is not on PATH.#9 23.63 This package requires Rust and Cargo to compile extensions. Install it through#9 23.63 the system's package manager or via https://rustup.rs/#9 23.63#9 23.63 Checking for Rust toolchain....#9 23.63 ----------------------------------------#9 23.63 WARNING: Discarding https://files.pythonhosted.org/packages/46/23/d2f484218a843db1ab6d4add76cc52eb2071f457127ca56dfb0e8943a0eb/orjson-3.6.5.tar.gz#sha256=eb3a7d92d783c89df26951ef3e5aca9d96c9c6f2284c752aa3382c736f950597 (from https://pypi.org/simple/orjson/) (requires-python:>=3.7). Command errored out with exit status 1: /usr/local/bin/python /usr/local/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /tmp/tmp17_b83bo Check the logs for full command output.#9 23.63 ERROR: Could not find a version that satisfies the requirement orjson==3.6.5 (from versions: 2.0.7, 2.0.8, 2.0.9, 2.0.10, 2.0.11, 2.1.0, 2.1.1, 2.1.2, 2.1.3, 2.1.4, 2.2.0, 2.2.1, 2.2.2, 2.3.0, 2.4.0, 2.5.0, 2.5.1, 2.5.2, 2.6.0, 2.6.1, 2.6.2, 2.6.3, 2.6.4, 2.6.5, 2.6.6, 2.6.7, 2.6.8, 3.0.0, 3.0.1, 3.0.2, 3.1.0, 3.1.1, 3.1.2, 3.2.0, 3.2.1, 3.2.2, 3.3.0, 3.3.1, 3.4.0, 3.4.1, 3.4.2, 3.4.3, 3.4.4, 3.4.5, 3.4.6, 3.4.7, 3.4.8, 3.5.0, 3.5.1, 3.5.2, 3.5.3, 3.5.4, 3.6.0, 3.6.1, 3.6.2, 3.6.3, 3.6.4, 3.6.5)#9 23.63 ERROR: No matching distribution found for orjson==3.6.5
...
So the package causing the error seems to be orgjson==3.6.5 even though this version is in the "from versions" list. But anyway, how is it possible, that this results in error only on alpine and not anywhere else?
Most importantly, is there a clean way to resolve this?
Thank you
The text was updated successfully, but these errors were encountered:
Alpine uses a different libc: musl, compared to glibc. And the .whl format is not compatible with musl. And also that some packages for pip are only offered in .whl format docker-library/docs#904 pypa/manylinux#37 pypa/pip#3969
https://github.com/pypa/manylinux
The manylinux1 tags allow projects to distribute wheels that are automatically installed (and work!) on the vast majority of desktop and server Linux distributions.
To be clear, manylinux1 wheels with native extensions can't be installed on Alpine Linux. Wheels that are pure Python code (none wheels) work just fine on Alpine.
If you add the --verbose flag to your pip command you can see it rejecting the other wheels and versions.
Hello,
my dockerfile with installation of requirements.txt works perfectly on full python and slim python docker images, but fails on alpine. There is one package in dependencies, which fails the installation process.
dockerfile:
Btw. the requirements.txt are auto-generated from poetry. I added the
--no-dependencies
flags in hope that there will be no additional dependencies resolution from pip itself. I do not know, if this is needed and good practice or not. Nevertheless it has no effect on the this issue.requirements.txt
requirements.txt auto-generated from pyproject.toml:
The returned error msg:
So the package causing the error seems to be
orgjson==3.6.5
even though this version is in the "from versions" list. But anyway, how is it possible, that this results in error only on alpine and not anywhere else?Most importantly, is there a clean way to resolve this?
Thank you
The text was updated successfully, but these errors were encountered: