Skip to content

Unable to add debugpy as a dependency #7686

@steve-marmalade

Description

@steve-marmalade
  • Poetry version: Poetry (version 1.4.1)
  • Python version:
Poetry
Version: 1.4.1
Python:  3.9.11

Virtualenv
Python:         3.11.1
Implementation: CPython
Path:           /home/test-user/.cache/pypoetry/virtualenvs/poetry-test-VqRfSpzI-py3.11
Executable:     /home/test-user/.cache/pypoetry/virtualenvs/poetry-test-VqRfSpzI-py3.11/bin/python
Valid:          True

System
Platform:   linux
OS:         posix
Python:     3.11.1
Path:       /home/test-user/.pyenv/versions/3.11.1
Executable: /home/test-user/.pyenv/versions/3.11.1/bin/python3.11
  • OS version and name: Arch Linux 6.2.6-arch1-1

  • pyproject.toml: pyproject.toml

  • I am on the latest stable Poetry version, installed using a recommended method. pipx

  • I have searched the issues of this repo and believe that this is not a duplicate.

  • I have consulted the FAQ and blog for any relevant entries or release notes.

  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option) and have included the output below.

Issue

Adding debugpy fails for Python 3.11 (debug output printed below). I discovered this while trying to install jupyterlab / ipykernel which have debugpy as a dependency.

I am filing the issue with poetry because I am able to install debugpy using pip.

Loading configuration file /home/test-user/.config/pypoetry/config.toml
Trying to detect current active python executable as specified in the config.
Found: /home/test-user/.pyenv/versions/3.11.1/bin/python
Using virtualenv: /home/test-user/.cache/pypoetry/virtualenvs/poetry-test-VqRfSpzI-py3.11
[keyring.backend] Loading KWallet
[keyring.backend] Loading SecretService
[keyring.backend] Loading Windows
[keyring.backend] Loading chainer
[keyring.backend] Loading libsecret
[keyring.backend] Loading macOS
Creating new session for pypi.org
Source (PyPI): 17 packages found for debugpy *
Using version ^1.6.6 for debugpy

Updating dependencies
Resolving dependencies...
   1: fact: poetry-test is 0.1.0
   1: derived: poetry-test
   1: fact: poetry-test depends on debugpy (^1.6.6)
   1: selecting poetry-test (0.1.0)
   1: derived: debugpy (>=1.6.6,<2.0.0)
Source (PyPI): 1 packages found for debugpy >=1.6.6,<2.0.0
   1: selecting debugpy (1.6.6)
   1: Version solving took 0.003 seconds.
   1: Tried 1 solutions.

Finding the necessary packages for the current system
Source (poetry-repo): 1 packages found for debugpy >=1.6.6,<2.0.0

Package operations: 1 install, 0 updates, 0 removals

  • Installing debugpy (1.6.6)
Skipping wheel debugpy-1.6.6-cp310-cp310-macosx_11_0_x86_64.whl as this is not supported by the current environment
Skipping wheel debugpy-1.6.6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl as this is not supported by the current environment
Skipping wheel debugpy-1.6.6-cp310-cp310-win32.whl as this is not supported by the current environment
Skipping wheel debugpy-1.6.6-cp310-cp310-win_amd64.whl as this is not supported by the current environment
Skipping wheel debugpy-1.6.6-cp37-cp37m-macosx_10_15_x86_64.whl as this is not supported by the current environment
Skipping wheel debugpy-1.6.6-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl as this is not supported by the current environment
Skipping wheel debugpy-1.6.6-cp37-cp37m-win32.whl as this is not supported by the current environment
Skipping wheel debugpy-1.6.6-cp37-cp37m-win_amd64.whl as this is not supported by the current environment
Skipping wheel debugpy-1.6.6-cp38-cp38-macosx_10_15_x86_64.whl as this is not supported by the current environment
Skipping wheel debugpy-1.6.6-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl as this is not supported by the current environment
Skipping wheel debugpy-1.6.6-cp38-cp38-win32.whl as this is not supported by the current environment
Skipping wheel debugpy-1.6.6-cp38-cp38-win_amd64.whl as this is not supported by the current environment
Skipping wheel debugpy-1.6.6-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl as this is not supported by the current environment
Skipping wheel debugpy-1.6.6-cp39-cp39-win32.whl as this is not supported by the current environment
Skipping wheel debugpy-1.6.6-cp39-cp39-win_amd64.whl as this is not supported by the current environment

  Stack trace:

  5  ~/.local/share/pypoetry/venv/lib/python3.9/site-packages/poetry/installation/executor.py:272 in _execute_operation
      270│ 
      271│             try:
    → 272│                 result = self._do_execute_operation(operation)
      273│             except EnvCommandError as e:
      274│                 if e.e.returncode == -2:

  4  ~/.local/share/pypoetry/venv/lib/python3.9/site-packages/poetry/installation/executor.py:374 in _do_execute_operation
      372│             return 0
      373│ 
    → 374│         result: int = getattr(self, f"_execute_{method}")(operation)
      375│ 
      376│         if result != 0:

  3  ~/.local/share/pypoetry/venv/lib/python3.9/site-packages/poetry/installation/executor.py:494 in _execute_install
      492│ 
      493│     def _execute_install(self, operation: Install | Update) -> int:
    → 494│         status_code = self._install(operation)
      495│ 
      496│         self._save_url_reference(operation)

  2  ~/.local/share/pypoetry/venv/lib/python3.9/site-packages/poetry/installation/executor.py:552 in _install
      550│                 self._remove(operation.initial_package)
      551│ 
    → 552│             self._wheel_installer.install(archive)
      553│         finally:
      554│             if cleanup_archive:

  1  ~/.local/share/pypoetry/venv/lib/python3.9/site-packages/poetry/installation/wheel_installer.py:101 in install
       99│     def install(self, wheel: Path) -> None:
      100│         with WheelFile.open(wheel) as source:
    → 101│             source.validate_record()
      102│             install(
      103│                 source=source,

  _WheelFileValidationError

  ["In /home/test-user/.cache/pypoetry/artifacts/2e/09/48/001b624046a68d08cdbd434b4da9011c6d44fd1c83f9155679a8edad00/debugpy-1.6.6-py2.py3-none-any.whl, hash / size of debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython.cp39-win_amd64.pyd didn't match RECORD", "In /home/test-user/.cache/pypoetry/artifacts/2e/09/48/001b624046a68d08cdbd434b4da9011c6d44fd1c83f9155679a8edad00/debugpy-1.6.6-py2.py3-none-any.whl, hash / size of debugpy/_vendored/pydevd/_pydevd_frame_eval/pydevd_frame_evaluator.cp39-win_amd64.pyd didn't match RECORD", "In /home/test-user/.cache/pypoetry/artifacts/2e/09/48/001b624046a68d08cdbd434b4da9011c6d44fd1c83f9155679a8edad00/debugpy-1.6.6-py2.py3-none-any.whl, hash / size of debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_amd64.dll didn't match RECORD", "In /home/test-user/.cache/pypoetry/artifacts/2e/09/48/001b624046a68d08cdbd434b4da9011c6d44fd1c83f9155679a8edad00/debugpy-1.6.6-py2.py3-none-any.whl, hash / size of debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_x86.dll didn't match RECORD", "In /home/test-user/.cache/pypoetry/artifacts/2e/09/48/001b624046a68d08cdbd434b4da9011c6d44fd1c83f9155679a8edad00/debugpy-1.6.6-py2.py3-none-any.whl, hash / size of debugpy/_vendored/pydevd/pydevd_attach_to_process/inject_dll_amd64.exe didn't match RECORD", "In /home/test-user/.cache/pypoetry/artifacts/2e/09/48/001b624046a68d08cdbd434b4da9011c6d44fd1c83f9155679a8edad00/debugpy-1.6.6-py2.py3-none-any.whl, hash / size of debugpy/_vendored/pydevd/pydevd_attach_to_process/inject_dll_x86.exe didn't match RECORD", "In /home/test-user/.cache/pypoetry/artifacts/2e/09/48/001b624046a68d08cdbd434b4da9011c6d44fd1c83f9155679a8edad00/debugpy-1.6.6-py2.py3-none-any.whl, hash / size of debugpy/_vendored/pydevd/pydevd_attach_to_process/run_code_on_dllmain_amd64.dll didn't match RECORD", "In /home/test-user/.cache/pypoetry/artifacts/2e/09/48/001b624046a68d08cdbd434b4da9011c6d44fd1c83f9155679a8edad00/debugpy-1.6.6-py2.py3-none-any.whl, hash / size of debugpy/_vendored/pydevd/pydevd_attach_to_process/run_code_on_dllmain_x86.dll didn't match RECORD"]

  at ~/.local/share/pypoetry/venv/lib/python3.9/site-packages/installer/sources.py:289 in validate_record
      285│                         f"In {self._zipfile.filename}, hash / size of {item.filename} didn't match RECORD"
      286│                     )
      287│ 
      288│         if issues:
    → 289│             raise _WheelFileValidationError(issues)
      290│ 
      291│     def get_contents(self) -> Iterator[WheelContentElement]:
      292│         """Sequential access to all contents of the wheel (including dist-info files).
      293│ 

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/installerRelated to the dependency installerkind/bugSomething isn't working as expectedstatus/external-issueIssue is caused by external project (platform, dep, etc)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions