-
Notifications
You must be signed in to change notification settings - Fork 191
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Before creating a new issue, please check the FAQ to see if your question is answered there.
Environment data
- OS and version: Mac 12.5.1
- poetry 1.3.2
Actual behavior
Poetry is a python package manager that specifies its virtual envs in a pyproject.toml file. Here is an example file to start with:
[tool.poetry]
name = "example"
version = "0.1.0"
description = "Install me."
authors = []
[tool.poetry.dependencies]
python = "^3.9"
[tool.poetry.group.dev.dependencies]
pytest = "^7.2.1"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"Attempting to install the latest debugpy fails:
$ poetry add debugpy
Using version ^1.6.5 for debugpy
Updating dependencies
Resolving dependencies... (0.1s)
Writing lock file
Package operations: 1 install, 0 updates, 0 removals
• Installing debugpy (1.6.5): Failed
CalledProcessError
Command '['/Users/tom.mcclintock/Repositories/tomsource/.venv/bin/python', '-m', 'pip', 'install', '--disable-pip-version-check', '--isolated', '--no-input', '--prefix', '/Users/tom.mcclintock/Repositories/tomsource/.venv', '--no-deps', '/Users/tom.mcclintock/Library/Caches/pypoetry/artifacts/00/1e/5f/034fcde7ad28e523856bdacb87533e7b40228ca678f31ad37f757684bc/debugpy-1.6.5-cp39-cp39-macosx_11_0_x86_64.whl']' returned non-zero exit status 1.
at ~/opt/anaconda3/lib/python3.9/subprocess.py:528 in run
524│ # We don't call process.wait() as .__exit__ does that for us.
525│ raise
526│ retcode = process.poll()
527│ if check and retcode:
→ 528│ raise CalledProcessError(retcode, process.args,
529│ output=stdout, stderr=stderr)
530│ return CompletedProcess(process.args, retcode, stdout, stderr)
531│
532│
The following error occurred when trying to handle this error:
EnvCommandError
Command ['/Users/tom.mcclintock/Repositories/tomsource/.venv/bin/python', '-m', 'pip', 'install', '--disable-pip-version-check', '--isolated', '--no-input', '--prefix', '/Users/tom.mcclintock/Repositories/tomsource/.venv', '--no-deps', '/Users/tom.mcclintock/Library/Caches/pypoetry/artifacts/00/1e/5f/034fcde7ad28e523856bdacb87533e7b40228ca678f31ad37f757684bc/debugpy-1.6.5-cp39-cp39-macosx_11_0_x86_64.whl'] errored with the following return code 1, and output:
ERROR: debugpy-1.6.5-cp39-cp39-macosx_11_0_x86_64.whl is not a supported wheel on this platform.
at ~/Library/Application Support/pypoetry/venv/lib/python3.9/site-packages/poetry/utils/env.py:1540 in _run
1536│ output = subprocess.check_output(
1537│ command, stderr=subprocess.STDOUT, env=env, **kwargs
1538│ )
1539│ except CalledProcessError as e:
→ 1540│ raise EnvCommandError(e, input=input_)
1541│
1542│ return decode(output)
1543│
1544│ def execute(self, bin: str, *args: str, **kwargs: Any) -> int:
The following error occurred when trying to handle this error:
PoetryException
Failed to install /Users/tom.mcclintock/Library/Caches/pypoetry/artifacts/00/1e/5f/034fcde7ad28e523856bdacb87533e7b40228ca678f31ad37f757684bc/debugpy-1.6.5-cp39-cp39-macosx_11_0_x86_64.whl
at ~/Library/Application Support/pypoetry/venv/lib/python3.9/site-packages/poetry/utils/pip.py:58 in pip_install
54│
55│ try:
56│ return environment.run_pip(*args)
57│ except EnvCommandError as e:
→ 58│ raise PoetryException(f"Failed to install {path.as_posix()}") from e
59│
But installing the previous version works: poetry add debugpy=1.6.4.
I believe the crux of the error is: ERROR: debugpy-1.6.5-cp39-cp39-macosx_11_0_x86_64.whl is not a supported wheel on this platform
Expected behavior
I'd like to be able to install the latest debugpy :).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working