Closed10

ラズパイとawsを繋ぐ

こまきちこまきち

aws cliをラズパイに入れ、バージョンが古いのでアップグレードする

sudo pip3 install awscli --upgrade
Traceback (most recent call last):
  File "/usr/share/python-wheels/resolvelib-0.5.4-py2.py3-none-any.whl/resolvelib/resolvers.py", line 171, in _merge_into_criterion
    crit = self.state.criteria[name]
KeyError: 'botocore'

....

raise ReadTimeoutError(self._pool, None, "Read timed out.")
urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='www.piwheels.org', port=443): Read timed out.
こまきちこまきち

時間がかかるのでタイムアウトを長くする

export PIP_DEFAULT_TIMEOUT=100
こまきちこまきち

まだタイムアウト。めんどくさいので値を1000にする

 Downloading https://www.piwheels.org/simple/awscli/awscli-1.33.1-py3-none-any.whl (4.5 MB)
     |████████▍                       | 1.2 MB 3.6 kB/s eta 0:15:15ERROR: Exception:
Traceback (most recent call last):
  File "/usr/share/python-wheels/resolvelib-0.5.4-py2.py3-none-any.whl/resolvelib/resolvers.py", line 171, in _merge_into_criterion
    crit = self.state.criteria[name]
KeyError: 'awscli'
こまきちこまきち

このエラーに悩まされ続けた

$ sudo pip install awscli

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==1.34.119 from https://www.piwheels.org/simple/botocore/botocore-1.34.119-py3-none-any.whl#sha256=525ace813fb70bc205677146d0713d2214a8a831e3255f024f29f76f3a791980 (from awscli):
        Expected sha256 525ace813fb70bc205677146d0713d2214a8a831e3255f024f29f76f3a791980
             Got        f01b59a2764ecfffbb1fd727ca3bd961ed9f3e47600428c74548960866357fe9
このスクラップは6ヶ月前にクローズされました