-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
[Linux, 1.1.0a3, Python3.6] X is not a supported wheel on this platform. #2688
Comments
@scoiatael the root cause for this issue is the default pip install git+https://github.com/python-poetry/poetry.git@develop |
@abn I confirmed it works with |
It seems I'm getting the same error on |
@dbalabka Are you sure it is the same error? Would you mind showing us the full console output of the command (in verbose mode |
@sinoroc it looks like the same error but for a different package.
|
cryptography again? There have been quite some reports of failures on the cryptography dependency. Not sure what the root link between those reports is if any, or if it is just a coincidence. In one of the cases, it turned out to be that the pip version used was too old somehow. |
@sinoroc I've rollback to Poetry version |
@dbalabka Oh, yes, the pip version string is right there in the error message you posted. I had not seen it earlier: "pip version 9.0.3". Which is quite old indeed (and might have issues with the manylinux2010 tag maybe?). Although I am a bit surprised that this version of pip is used at all. As far as I know, poetry relies on virtualenv. And virtualenv usually installs up-to-date pip versions in the virtual environments it creates. I wonder if maybe at this point, we are not in a usual virtual environment but maybe in a temporary build environment. Those environment might follow different rules. Not sure it has an influence on the pip version issue, but @dbalabka what installation method did you use to install poetry itself? The |
@sinoroc sorry about the delay. Here is the script which I use to install poetry during the build:
|
@dbalabka Have you tried removing the |
@sinoroc I've fixed the by installing the latest version of pip. So, it would be great to add some warning message which warns the user about possible issues. |
@dbalabka But there was a warning message from pip:
The default behaviour is for poetry to delegate the creation of virtual environments to virtualenv, and virtualenv takes care of installing recent versions of pip, setuptools, etc. Not sure how it happened that you had such an old pip in that virtual environment. |
@sinoroc poetry uses OS's preinstalled pip if it is not installed in venv. I don't have permissions to updated OS pip. I have to install newest version of pip under venv and it solves the problem. |
@dbalabka What poetry version are you using? |
@dbalabka I see... I am not sure how it is supposed to behave in that older version. With poetry 1.1 it seems it always uses virtualenv and thus pip is always quite recent. At least that is what I understood, I might be wrong. |
@sinoroc thanks for your time. I think the problem is solved. |
I got a similar error:
That pip version was a warning and I ignored it. However, at the end I fixed the problem by running what it says
|
I've just had this exact issue installing |
The CI fails with the following error ``` EnvCommandError Command ['/usr/bin/python3', '-m', 'pip', 'install', '--no-deps', '-U', '/root/.cache/pypoetry/artifacts/07/6f/ab/ca33bde7c6751a5ad8d13495b766891cd70e61786112885733ce9b0562/cryptography-36.0.2-cp36-abi3-manylinux_2_24_x86_64.whl'] errored with the following return code 1, and output: ERROR: cryptography-36.0.2-cp36-abi3-manylinux_2_24_x86_64.whl is not a supported wheel on this platform. at ~/.local/lib/python3.8/site-packages/poetry/utils/env.py:1195 in _run 1191│ output = subprocess.check_output( 1192│ cmd, stderr=subprocess.STDOUT, **kwargs 1193│ ) 1194│ except CalledProcessError as e: → 1195│ raise EnvCommandError(e, input=input_) 1196│ 1197│ return decode(output) 1198│ 1199│ def execute(self, bin, *args, **kwargs): ``` The solution is to upgrade the pip version as suggested in python-poetry/poetry#2688 (comment) Signed-off-by: Vincenzo Palazzo <[email protected]>
The CI fails with the following error ``` EnvCommandError Command ['/usr/bin/python3', '-m', 'pip', 'install', '--no-deps', '-U', '/root/.cache/pypoetry/artifacts/07/6f/ab/ca33bde7c6751a5ad8d13495b766891cd70e61786112885733ce9b0562/cryptography-36.0.2-cp36-abi3-manylinux_2_24_x86_64.whl'] errored with the following return code 1, and output: ERROR: cryptography-36.0.2-cp36-abi3-manylinux_2_24_x86_64.whl is not a supported wheel on this platform. at ~/.local/lib/python3.8/site-packages/poetry/utils/env.py:1195 in _run 1191│ output = subprocess.check_output( 1192│ cmd, stderr=subprocess.STDOUT, **kwargs 1193│ ) 1194│ except CalledProcessError as e: → 1195│ raise EnvCommandError(e, input=input_) 1196│ 1197│ return decode(output) 1198│ 1199│ def execute(self, bin, *args, **kwargs): ``` The solution is to upgrade the pip version as suggested in python-poetry/poetry#2688 (comment) Signed-off-by: Vincenzo Palazzo <[email protected]>
The CI fails with the following error ``` EnvCommandError Command ['/usr/bin/python3', '-m', 'pip', 'install', '--no-deps', '-U', '/root/.cache/pypoetry/artifacts/07/6f/ab/ca33bde7c6751a5ad8d13495b766891cd70e61786112885733ce9b0562/cryptography-36.0.2-cp36-abi3-manylinux_2_24_x86_64.whl'] errored with the following return code 1, and output: ERROR: cryptography-36.0.2-cp36-abi3-manylinux_2_24_x86_64.whl is not a supported wheel on this platform. at ~/.local/lib/python3.8/site-packages/poetry/utils/env.py:1195 in _run 1191│ output = subprocess.check_output( 1192│ cmd, stderr=subprocess.STDOUT, **kwargs 1193│ ) 1194│ except CalledProcessError as e: → 1195│ raise EnvCommandError(e, input=input_) 1196│ 1197│ return decode(output) 1198│ 1199│ def execute(self, bin, *args, **kwargs): ``` The solution is to upgrade the pip version as suggested in python-poetry/poetry#2688 (comment) Signed-off-by: Vincenzo Palazzo <[email protected]>
The CI fails with the error ``` EnvCommandError Command ['/usr/bin/python3', '-m', 'pip', 'install', '--no-deps', '-U', '/root/.cache/pypoetry/artifacts/07/6f/ab/ca33bde7c6751a5ad8d13495b766891cd70e61786112885733ce9b0562/cryptography-36.0.2-cp36-abi3-manylinux_2_24_x86_64.whl'] errored with the following return code 1, and output: ERROR: cryptography-36.0.2-cp36-abi3-manylinux_2_24_x86_64.whl is not a supported wheel on this platform. at ~/.local/lib/python3.8/site-packages/poetry/utils/env.py:1195 in _run 1191│ output = subprocess.check_output( 1192│ cmd, stderr=subprocess.STDOUT, **kwargs 1193│ ) 1194│ except CalledProcessError as e: → 1195│ raise EnvCommandError(e, input=input_) 1196│ 1197│ return decode(output) 1198│ 1199│ def execute(self, bin, *args, **kwargs): ``` The solution is to upgrade the pip version as suggested in python-poetry/poetry#2688 (comment) Signed-off-by: Vincenzo Palazzo <[email protected]>
The CI fails with the error ``` EnvCommandError Command ['/usr/bin/python3', '-m', 'pip', 'install', '--no-deps', '-U', '/root/.cache/pypoetry/artifacts/07/6f/ab/ca33bde7c6751a5ad8d13495b766891cd70e61786112885733ce9b0562/cryptography-36.0.2-cp36-abi3-manylinux_2_24_x86_64.whl'] errored with the following return code 1, and output: ERROR: cryptography-36.0.2-cp36-abi3-manylinux_2_24_x86_64.whl is not a supported wheel on this platform. at ~/.local/lib/python3.8/site-packages/poetry/utils/env.py:1195 in _run 1191│ output = subprocess.check_output( 1192│ cmd, stderr=subprocess.STDOUT, **kwargs 1193│ ) 1194│ except CalledProcessError as e: → 1195│ raise EnvCommandError(e, input=input_) 1196│ 1197│ return decode(output) 1198│ 1199│ def execute(self, bin, *args, **kwargs): ``` The solution is to upgrade the pip version as suggested in python-poetry/poetry#2688 (comment) Signed-off-by: Vincenzo Palazzo <[email protected]>x
The CI fails with the error ``` EnvCommandError Command ['/usr/bin/python3', '-m', 'pip', 'install', '--no-deps', '-U', '/root/.cache/pypoetry/artifacts/07/6f/ab/ca33bde7c6751a5ad8d13495b766891cd70e61786112885733ce9b0562/cryptography-36.0.2-cp36-abi3-manylinux_2_24_x86_64.whl'] errored with the following return code 1, and output: ERROR: cryptography-36.0.2-cp36-abi3-manylinux_2_24_x86_64.whl is not a supported wheel on this platform. at ~/.local/lib/python3.8/site-packages/poetry/utils/env.py:1195 in _run 1191│ output = subprocess.check_output( 1192│ cmd, stderr=subprocess.STDOUT, **kwargs 1193│ ) 1194│ except CalledProcessError as e: → 1195│ raise EnvCommandError(e, input=input_) 1196│ 1197│ return decode(output) 1198│ 1199│ def execute(self, bin, *args, **kwargs): ``` The solution is to upgrade the pip version as suggested in python-poetry/poetry#2688 (comment) Signed-off-by: Vincenzo Palazzo <[email protected]>x
The CI fails with the error ``` EnvCommandError Command ['/usr/bin/python3', '-m', 'pip', 'install', '--no-deps', '-U', '/root/.cache/pypoetry/artifacts/07/6f/ab/ca33bde7c6751a5ad8d13495b766891cd70e61786112885733ce9b0562/cryptography-36.0.2-cp36-abi3-manylinux_2_24_x86_64.whl'] errored with the following return code 1, and output: ERROR: cryptography-36.0.2-cp36-abi3-manylinux_2_24_x86_64.whl is not a supported wheel on this platform. at ~/.local/lib/python3.8/site-packages/poetry/utils/env.py:1195 in _run 1191│ output = subprocess.check_output( 1192│ cmd, stderr=subprocess.STDOUT, **kwargs 1193│ ) 1194│ except CalledProcessError as e: → 1195│ raise EnvCommandError(e, input=input_) 1196│ 1197│ return decode(output) 1198│ 1199│ def execute(self, bin, *args, **kwargs): ``` The solution is to upgrade the pip version as suggested in python-poetry/poetry#2688 (comment) Signed-off-by: Vincenzo Palazzo <[email protected]>x
The CI fails with the error ``` EnvCommandError Command ['/usr/bin/python3', '-m', 'pip', 'install', '--no-deps', '-U', '/root/.cache/pypoetry/artifacts/07/6f/ab/ca33bde7c6751a5ad8d13495b766891cd70e61786112885733ce9b0562/cryptography-36.0.2-cp36-abi3-manylinux_2_24_x86_64.whl'] errored with the following return code 1, and output: ERROR: cryptography-36.0.2-cp36-abi3-manylinux_2_24_x86_64.whl is not a supported wheel on this platform. at ~/.local/lib/python3.8/site-packages/poetry/utils/env.py:1195 in _run 1191│ output = subprocess.check_output( 1192│ cmd, stderr=subprocess.STDOUT, **kwargs 1193│ ) 1194│ except CalledProcessError as e: → 1195│ raise EnvCommandError(e, input=input_) 1196│ 1197│ return decode(output) 1198│ 1199│ def execute(self, bin, *args, **kwargs): ``` The solution is to upgrade the pip version as suggested in python-poetry/poetry#2688 (comment) Signed-off-by: Vincenzo Palazzo <[email protected]>x
The CI fails with the error ``` EnvCommandError Command ['/usr/bin/python3', '-m', 'pip', 'install', '--no-deps', '-U', '/root/.cache/pypoetry/artifacts/07/6f/ab/ca33bde7c6751a5ad8d13495b766891cd70e61786112885733ce9b0562/cryptography-36.0.2-cp36-abi3-manylinux_2_24_x86_64.whl'] errored with the following return code 1, and output: ERROR: cryptography-36.0.2-cp36-abi3-manylinux_2_24_x86_64.whl is not a supported wheel on this platform. at ~/.local/lib/python3.8/site-packages/poetry/utils/env.py:1195 in _run 1191│ output = subprocess.check_output( 1192│ cmd, stderr=subprocess.STDOUT, **kwargs 1193│ ) 1194│ except CalledProcessError as e: → 1195│ raise EnvCommandError(e, input=input_) 1196│ 1197│ return decode(output) 1198│ 1199│ def execute(self, bin, *args, **kwargs): ``` The solution is to upgrade the pip version as suggested in python-poetry/poetry#2688 (comment) Signed-off-by: Vincenzo Palazzo <[email protected]>x
The CI fails with the error ``` EnvCommandError Command ['/usr/bin/python3', '-m', 'pip', 'install', '--no-deps', '-U', '/root/.cache/pypoetry/artifacts/07/6f/ab/ca33bde7c6751a5ad8d13495b766891cd70e61786112885733ce9b0562/cryptography-36.0.2-cp36-abi3-manylinux_2_24_x86_64.whl'] errored with the following return code 1, and output: ERROR: cryptography-36.0.2-cp36-abi3-manylinux_2_24_x86_64.whl is not a supported wheel on this platform. at ~/.local/lib/python3.8/site-packages/poetry/utils/env.py:1195 in _run 1191│ output = subprocess.check_output( 1192│ cmd, stderr=subprocess.STDOUT, **kwargs 1193│ ) 1194│ except CalledProcessError as e: → 1195│ raise EnvCommandError(e, input=input_) 1196│ 1197│ return decode(output) 1198│ 1199│ def execute(self, bin, *args, **kwargs): ``` The solution is to upgrade the pip version as suggested in python-poetry/poetry#2688 (comment) Signed-off-by: Vincenzo Palazzo <[email protected]>x
The CI fails with the error ``` EnvCommandError Command ['/usr/bin/python3', '-m', 'pip', 'install', '--no-deps', '-U', '/root/.cache/pypoetry/artifacts/07/6f/ab/ca33bde7c6751a5ad8d13495b766891cd70e61786112885733ce9b0562/cryptography-36.0.2-cp36-abi3-manylinux_2_24_x86_64.whl'] errored with the following return code 1, and output: ERROR: cryptography-36.0.2-cp36-abi3-manylinux_2_24_x86_64.whl is not a supported wheel on this platform. at ~/.local/lib/python3.8/site-packages/poetry/utils/env.py:1195 in _run 1191│ output = subprocess.check_output( 1192│ cmd, stderr=subprocess.STDOUT, **kwargs 1193│ ) 1194│ except CalledProcessError as e: → 1195│ raise EnvCommandError(e, input=input_) 1196│ 1197│ return decode(output) 1198│ 1199│ def execute(self, bin, *args, **kwargs): ``` The solution is to upgrade the pip version as suggested in python-poetry/poetry#2688 (comment) Signed-off-by: Vincenzo Palazzo <[email protected]>x
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
-vvv
option).python:3.6
imageProblem with installation of
grpcio
on Python 3.6 with Poetry 1.1.0a3First of all looks like faster installation in 1.1 will be a great feature, can't wait to have it on stable :)
However when I tried using that feature to speed up our Docker build I encountered a problem with installation of
grpcio
on python 3.6 (works on 3.8 fine, also works with Poetry 1.0.9 on both Python versions):You can find minimal working example here.
Cheers!
The text was updated successfully, but these errors were encountered: