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

Docker with python above version 3.11 and poetry fails to install debugpy 1.6.6 #1249

Closed
lucasmatsui opened this issue Mar 21, 2023 · 1 comment

Comments

@lucasmatsui
Copy link

Environment data

  • debugpy version: 1.6.6
  • OS and version: Ubuntu 22.04.1 LTS
  • Python version: >=3.11.0
  • Poetry (version 1.4.1)
  • Using VS Code or Visual Studio: VSCODE

Actual behavior

When I build an image using FROM python:3.11.0-slim or greater, it uses poetry as a dependency manager, it gives the following error when i run poetry install

_WheelFileValidationError
#0 12.38 
#0 12.38   ["In /root/.cache/pypoetry/artifacts/f0/fd/97/ccc603543bc670e244d741bd4c3b20a4fdff4283aac382b234bdb02085/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 /root/.cache/pypoetry/artifacts/f0/fd/97/ccc603543bc670e244d741bd4c3b20a4fdff4283aac382b234bdb02085/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 /root/.cache/pypoetry/artifacts/f0/fd/97/ccc603543bc670e244d741bd4c3b20a4fdff4283aac382b234bdb02085/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 /root/.cache/pypoetry/artifacts/f0/fd/97/ccc603543bc670e244d741bd4c3b20a4fdff4283aac382b234bdb02085/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 /root/.cache/pypoetry/artifacts/f0/fd/97/ccc603543bc670e244d741bd4c3b20a4fdff4283aac382b234bdb02085/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 /root/.cache/pypoetry/artifacts/f0/fd/97/ccc603543bc670e244d741bd4c3b20a4fdff4283aac382b234bdb02085/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 /root/.cache/pypoetry/artifacts/f0/fd/97/ccc603543bc670e244d741bd4c3b20a4fdff4283aac382b234bdb02085/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 /root/.cache/pypoetry/artifacts/f0/fd/97/ccc603543bc670e244d741bd4c3b20a4fdff4283aac382b234bdb02085/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"]
#0 12.38 
#0 12.38   at /usr/local/lib/python3.11/site-packages/installer/sources.py:289 in validate_record
#0 12.39       285│                         f"In {self._zipfile.filename}, hash / size of {item.filename} didn't match RECORD"
#0 12.39       286│                     )
#0 12.39       287│ 
#0 12.39       288│         if issues:
#0 12.39     → 289│             raise _WheelFileValidationError(issues)
#0 12.39       290│ 
#0 12.39       291│     def get_contents(self) -> Iterator[WheelContentElement]:
#0 12.39       292│         """Sequential access to all contents of the wheel (including dist-info files).
#0 12.39       293│ 
#0 12.39 
------

When I use an image FROM python:3.10.10-slim it builds normally.
Until a while ago, I was able to build with ease.
Maybe it could be a poetry bug

Expected behavior

Able to build with python version 3.11.2

Steps to reproduce:

  1. Build any python docker image above version 3.11
  2. Use poetry with pyproject.toml to download debugpy in version 1.6.6
@lucasmatsui
Copy link
Author

Already open:
-#1246

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

1 participant