question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

As of Sept 19, 2021 poetry fails to validate packages from third party repos.

See original GitHub issue

My poetry installs in circle-ci started failing “all of a sudden” yesterday with the error:

#10 19.73   RuntimeError
#10 19.73 
#10 19.73   Invalid hash for waveapps.avro (1.0.0) using archive waveapps.avro-1.0.0-py3-none-any.whl
#10 19.73 
#10 19.73   at /usr/local/lib/python3.9/site-packages/poetry/installation/executor.py:619 in _download_link
#10 19.80       615│                     Path(archive.path) if isinstance(archive, Link) else archive,
#10 19.81       616│                 ).hash()
#10 19.81       617│             )
#10 19.81       618│             if archive_hash not in {f["hash"] for f in package.files}:
#10 19.81     → 619│                 raise RuntimeError(
#10 19.81       620│                     "Invalid hash for {} using archive {}".format(package, archive.name)
#10 19.81       621│                 )
#10 19.81       622│ 
#10 19.81       623│         return archive
#10 19.81 
#10 19.81 

This happens for all poetry 1.1.x versions, but does NOT happen for 1.0.10. I’m reverting to 1.0.10 for now. I’m opening this ticket in hopes that more qualified folks can carry it forward.
Again there were NO chanes in my source, indeed jobs on CircleCi that previously ran failed when I reran them.

  • 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:
  • Poetry version:
  • Link of a Gist with the contents of your pyproject.toml file:

Issue

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:9
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
taybincommented, Sep 20, 2021

Also with Sonatype Nexus. It’s a problem with poetry-core assuming all hashes are SHA1. The fix is to downgrade poetry-core to 1.0.4.

1reaction
finswimmercommented, Sep 20, 2021

Thanks for reporting 👍

I think this is a duplicate of #4523

Read more comments on GitHub >

github_iconTop Results From Across the Web

python - Poetry trying to install everything from private repository
poetry first checks if the project is in your private-pypi and then checks public-pypi . Here the error is mostly because of 403...
Read more >
Setting up Python Projects: Part II | by Johannes Schmidt
Poetry provides a way to organize your dependencies by groups. For instance, you might have dependencies that are only needed to test your...
Read more >
Testing Guide - OWASP Foundation
One of the objectives of security testing is to validate that security ... sure that third-party libraries and executable files are security as-....
Read more >
Reimagining our futures together: a new social contract for ...
Reimagining our futures together: a new social contract for education. Corporate author : International Commission on the Futures of Education.
Read more >
WP-CLI v2.5.0 Release Notes - Make WordPress
Improper Certificate Validation in WP-CLI framework. This security vulnerability is ... Support for third-party WP-CLI packages on GitLab.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found