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

Package issue: Hash sum mismatch on Botocore #438

Closed
2 of 6 tasks
pettyalex opened this issue Mar 29, 2024 · 2 comments
Closed
2 of 6 tasks

Package issue: Hash sum mismatch on Botocore #438

pettyalex opened this issue Mar 29, 2024 · 2 comments

Comments

@pettyalex
Copy link

Package name

botocore

Package version

1.34.73-py3-none-any

PyPI URL

https://pypi.org/project/botocore/

piwheels URL

https://www.piwheels.org/project/botocore/

Python version

  • Python 3.7
  • Python 3.9
  • Python 3.11

I am aware this is the issue tracker for a Python package index specifically for Raspberry Pi

  • Yes

I have checked for duplicate issues

  • Yes

I am the maintainer

  • Yes

More information

This looks extremely similar to #32, but I'm running a quite new pip (24.0). Is this happening because of transient network failures? I see very slow download speeds before these failures. I'm only opening this issue because it happens repeatably for me, and others: pypa/pip#12424

I'm installing into python 3.12, but given that this is a pure python wheel that shouldn't matter.

I ran pip install botocore -vvv to get some more info, here's the bit where it failed:

Given no hashes to check 5616 links for project 'botocore': discarding no candidates
Collecting botocore
  Created temporary directory: /tmp/pip-unpack-p2gfn88p
  Found index url https://www.piwheels.org/simple/
  Resetting dropped connection: www.piwheels.org
  https://www.piwheels.org:443 "GET /simple/botocore/botocore-1.34.73-py3-none-any.whl HTTP/1.1" 200 12007391
  Downloading https://www.piwheels.org/simple/botocore/botocore-1.34.73-py3-none-any.whl (12.0 MB)
     ━━━━━━━╺━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.2/12.0 MB 76.3 kB/s eta 0:02:09
ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the package versions, please update the hashes. Otherwise, examine the package contents carefully; someone may have tampered with them.
    botocore from https://www.piwheels.org/simple/botocore/botocore-1.34.73-py3-none-any.whl#sha256=7b560473efb5030aa0ec7655d296508511e25b59518878b50f05becd8d6fb5d5:
        Expected sha256 7b560473efb5030aa0ec7655d296508511e25b59518878b50f05becd8d6fb5d5
             Got        c0329dca4327347f05f18feaf4a18df411ad3c69c7fd9d69f0f0bcb3420ac349
@pettyalex
Copy link
Author

Ah. This is just a manifestation of pypa/pip#11153 , I believe. I'm on gigabit fiber and don't have packet loss problems often, and the Pi 400 is on a wired ethernet connection, so it seems like either piwheels.org or the systems in between us may be the source of network troubles.

Either way, pip giving up after intermittent reset connections is not your problem to solve, so I'm closing this issue. Thanks for your work on piwheels!

@pettyalex
Copy link
Author

I had one last thought this morning: It looks like all of your traffic is served from the UK? That's going to be a subpar experience for US users, have you thought about standing up mirrors in the USA? I know that you could easily find dozens of groups offering to do it for free if you wanted: https://blog.thelifeofkenneth.com/2023/05/building-micro-mirror-free-software-cdn.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant