BadZipFile on trying to install package from private repository (Gemfury)
See original GitHub issue-
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.
- The package itself is built and published using poetry.
- The package is successfully installed using pip.
Here’s the full console output from running poetry add PACKAGE -vvv
This bug has already been referenced in a closed issue https://github.com/python-poetry/poetry/issues/1483
Issue Analytics
- State:
- Created 3 years ago
- Reactions:15
- Comments:19 (7 by maintainers)
Top Results From Across the Web
Installing private Python packages · Gemfury Dev Center
Securely install private packages via Pipfile. If you want to install private packages using Pipfile, you may want to keep your secret token...
Read more >Install packages with pip · Gemfury Dev Center
Accessing private packages To authenticate into your private repository, you can use environment variable expansion in the source URL of the configuration ...
Read more >examples/vba_extract.py · 3stack-software/3stack-xlsxwriter
Learn more » Push, build, and install RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM ......
Read more >Upload packages to Gemfury
Upload packages to your private repository on Gemfury. ... Once you have signed up for a Gemfury account, you will want to fill...
Read more >Upload packages to Gemfury with Git
We will build and add it to your account. Initial setup. Use the following command to add Gemfury repo to your package. This...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This issue possibly related:
#3496 #3326 #3065 #2674 #2388 #1483 #155
Solution
I resolve this issue like below:
poetry cache clear --all pypi
poetry config --list
and remove manuallyrm -rf ~/Library/Caches/pypoetry/**
poetry add [package name]
againI’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
zipfile.BadZipFile
issue. I tried to usepoetry cache clear --all <pypi_name>
, but in my case it didn’t help.What did?
Command ...../pip.exe install --no-deps file:://<file_path>
pypoetry/Cache/artifacts/
with corrupted cached version of the package. See this documentation to find Cache folder in your OS.poetry install
command.Example: For this specific error listing you need to delete
~/AppData/Local/pypoetry/Cache/atrifacts/2f
folder.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?