-
Notifications
You must be signed in to change notification settings - Fork 139
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
Unable to install debugpy
using poetry v1.4.1
#1246
Comments
Same issue here on macOS 13.2.1 with Python 3.11.2. |
Same issue when running poetry in a Docker environment (latest |
Same issue on AWS arm64 docker python3.9 image |
Working on an m1 macbook. It seems that poetry 1.4.1 that was released yesterday introduced a couple of regressions. The one mentioned in this issue (_WheelValidationError) and inability to install some packages with a correct md5 wheel hash. Downgrading poetry to 1.4.0 made the errors go away for me. Hope this helps. |
Had the same issue when installing torch in a Python3.8 environment on a Remote Runner via Github Actions. |
Confirm that it happens in the following with all versions of Python 3.9+:
|
The workaround when using poetry 1.4.1 is to set |
When following the Quick Start instructions in the contributing docs, I was getting a "WheelFileValidationError" on installation of debugpy which was blocking the installation of a number of other deps. Google turned up this [GitHub issue](microsoft/debugpy#1246) indicating a regression in Poetry 1.4.1 and workarounds.
When following the Quick Start instructions in the contributing docs, I was getting a "WheelFileValidationError" on installation of debugpy which was blocking the installation of a number of other deps. Google turned up this [GitHub issue](microsoft/debugpy#1246) indicating a regression in Poetry 1.4.1 and workarounds. This PR updates the contrib docs noting the issue and the workarounds.
it worked. thanks ! |
|
|
RUN |
@yash2tailorbird that helped, thank you! |
For the first part it is not good practive. Secondly If you really need latest version of debugpy via poetry you can downgrade or just turn off certain setting, but that does not the fix actual problem. |
Same issue. Tried to install jupyterlab and it stops at installing debugpy:
|
For anyone using poetry with GitHub Actions: - run: echo "POETRY_VERSION=$(poetry --version)" >> $GITHUB_ENV
shell: bash
- run: poetry config installer.modern-installation false
# workaround for bug: https://github.com/microsoft/debugpy/issues/1246
if: ${{ contains(env.POETRY_VERSION, '1.4.1') }}
shell: bash |
While the workarounds are useful to unblock end-users in the short-run, have the maintainers of this repo confirmed whether the |
The files affected are all Win32 binaries that undergo signing in the process of building the official wheels, and need to be re-hashed after that. It seems that this process is broken currently. This is definitely a high-priority issue, and we're investigating. |
Works with the new v1.4.2 poetry |
But with a warning, per poetry's release notes:
|
Root cause has been identified; a new build of debugpy with fixed hashes is coming shortly. |
fix for `debupy`: microsoft/debugpy#1246
Thank you @int19h ! |
For me it doesn't work. I have to configure
|
debugpy 1.6.7 is now up on PyPI and should fix this problem. Please let me know if there are any issues. |
This problem was solved with Poetry version 1.4.2! poetry debug info:
|
I still get an error:
I am using a macos 13.2.1 (22D68) Installing with pip works by the way. I tried installing both with poetry 1.4.0 and 1.4.2, also tried |
I have found a solution to my issue, along with a workaround that may be helpful to others who encounter a similar problem. Here is the issue as I understand it: the wheel file for debugpy is named To resolve the issue, follow these steps:
I hope this helps! |
There are several wheels for debugpy, one of which is the |
For some reason poetry is using |
poetry 1.7.1 on macos and it looks this is still occurring.
Has anyone considered that this issue should be re-opened? edit: sorry, it appears this worked for me:
|
Before creating a new issue, please check the FAQ to see if your question is answered there.
Environment data
Actual behavior
Running
poetry add debugpy
crashes with a_WheelFileValidationError
Expected behavior
It installs successfully, just as it does with
pip install debugpy
Steps to reproduce:
mkdir poetry-test && cd poetry-test
poetry init
poetry add debugpy
Given that this issue is present when installing via
poetry
but notpip
, I initially created the issue in python-poetry/poetry#7686, but the maintainers have directed me to open an issue here to investigate the invalid wheel.The text was updated successfully, but these errors were encountered: