FS#59893 - [python-botocore] Missing urllib3

Attached to Project: Community Packages
Opened by Rafael Reggiani Manzo (manzo) - Friday, 31 August 2018, 18:18 GMT
Last edited by Jonathan Steel (jsteel) - Saturday, 17 November 2018, 19:15 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Jonathan Steel (jsteel)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:

After upgrading running any command outputs the following error:

manzo@EVA ~/workspace/mandae/infrastructure (git)-[aws] % aws
Traceback (most recent call last):
File "/usr/bin/aws", line 19, in <module>
import awscli.clidriver
File "/usr/lib/python3.7/site-packages/awscli/clidriver.py", line 17, in <module>
import botocore.session
File "/usr/lib/python3.7/site-packages/botocore/session.py", line 26, in <module>
import botocore.configloader
File "/usr/lib/python3.7/site-packages/botocore/configloader.py", line 19, in <module>
from botocore.compat import six
File "/usr/lib/python3.7/site-packages/botocore/compat.py", line 26, in <module>
from urllib3 import exceptions
ModuleNotFoundError: No module named 'urllib3'

Additional info:
* package version(s): 1.16.5-1
* possible fix: make python-urllib3 a dependency (after installing it everything seems to work)


Steps to reproduce: just run any aws cli command
This task depends upon

Closed by  Jonathan Steel (jsteel)
Saturday, 17 November 2018, 19:15 GMT
Reason for closing:  Fixed
Comment by Chih-Hsuan Yen (yan12125) - Saturday, 17 November 2018, 17:13 GMT
The fix at https://git.archlinux.org/svntogit/community.git/commit/trunk?h=packages/aws-cli&id=daa1c426c3467de8cd454394134a024e834b9542 appears incorrect. It's botocore that uses urllib3 directly, not aws-cli. You'll still get errors if you use botocore directly:

$ python -c 'import botocore.awsrequest'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python3.7/site-packages/botocore/awsrequest.py", line 20, in <module>
import urllib3.util
ModuleNotFoundError: No module named 'urllib3'

Loading...