-
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
BadZipFile on trying to install package from private repository (Gemfury) #2388
Comments
I can confirm I have the same error, also with Gemfury and Poetry 1.0.5, but on Ubuntu 20.04. |
I believe I have the same problem with our azure PyPI. I think it has something to do with the pip.conf and the [[tool.poetry.source]] entry. There seems to be one config that works in our build job and one that works for me locally. One source of error seems to be the pip version used by poetry another is the repository entry in the poetry config. But I have not yet figured it. |
This error is also frequently occurring to me. @sdispater @finswimmer do you have any insight what can we do about it? |
I managed to work around this by putting some junk in the password part of the URL:
|
Same error here with private pypi config:
Error message shows up with every
|
Encountered the same error ( Some observations: It works if I configure the secrets using It doesn't work if I configure everything identical to step 1, but using environment variables. I get:
It doesn't work if I configure the secrets inside the repo url, like Does anyone know why there is a discrepancy in behaviour between secrets configuration and env variables? |
thank you @dmder ! We've had that same problem with azure / vsts, except it manifested itself with the error:
... and broke all builds using poetry. |
I also ran into this issue for a while now, currently also with poetry What did the trick for me is to clear (not the pip cache in rm -rf ~/.cache/pypoetry/cache/repositories/my-custom-pypi/ |
Having the same here with an azure devop repo. It does solve the versions (so it must see the repo), but it doesn't install |
This seems to be related to auth failures causing wheels not being downloaded. The situation will be more visiable thanks to #2576, resolved via #2577 (available in In the interim, you can remove any affected caches by doing the following: poetry cache clear --all <repo-name> @dmder your issue seems to be a URL parsing issue. When using |
Nice! PS: I see there was documentation added on the master branch for |
Happy to accept a PR. :) |
Will do, if you can wait for the weekend. :) |
I'm using poetry to create quite huge virtualenvs - 80+ packages and after fresh reinstall from poetry 1.0.5 to 1.1.2 I faced with this What did?
Example:
And yes, it took me about 4 iterations to download all the packages - each time poetry had some troubles with one of the downloaded wheels/tar.gz's. And it really makes me sad, because with 1.0.5 I have never faced issues like that and now 4 times in a row.
@sdispater can you please take a closer look on it? |
@alimantu appreciate the details provided. The new installer is a significant shift from what was being done in The particular issue you seem to be hit with is a failure to discard corrupt/invalid cached artifacts #2674. The cache clear does not invalidate the artifact caches at the moment. We will be hardening this and issues related to fetching artifacts in the coming releases. Since this issue was previously closed, it would be helpful if errors like yours are either reported in a new issue or added to an already open issue. If the experimental nature of the installer is a concern, I'd recommend that you disable the installer untill it stabilises in a future release as instructed here. |
This issue possibly related: #3496 SolutionI resolve this issue like below:
|
For me, this occurred when cancelling a download, leaving an unusable wheel file. The fix was to manually remove the offending wheel file, the path to which is visible in the logs, in the line below "EnvCommandError" with "Command": |
this PR will resolve this issue: #3301 |
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. |
I am on the latest Poetry version.
I have searched the issues of this repo and believe that this is not a duplicate.
If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option).OS version and name: Windows 10 Pro x64
Poetry version: 1.0.5
Link of a Gist with the contents of your pyproject.toml file: pyproject.toml
Issue
I get BadZipFile when trying to install a package from private repository - gemfury.
Here's the full console output from running
poetry add PACKAGE -vvv
This bug has already been referenced in a closed issue #1483
The text was updated successfully, but these errors were encountered: