Aws-cli: ModuleNotFound Error: no module named 'botocore.vendored'

Created on 19 Jan 2018  路  11Comments  路  Source: aws/aws-cli

Using Python3.6 on Windows 10, I installed awscli using the following command:

pip install --upgrade boto3 awscli

It seems to install successfully, and then whenever I try to run any AWS cli command, I get the following error:

Traceback (most recent call last):
  File "C:\Users\me013pe\AppData\Local\Programs\Python\Python36-32\Scripts\aws.cmd", line 50, in <module>
    import awscli.clidriver
  File "C:\Users\me013pe\AppData\Local\Programs\Python\Python36-32\lib\site-packages\awscli\clidriver.py", line 17, in <module>
    import botocore.session
  File "C:\Users\me013pe\AppData\Roaming\Python\Python36\site-packages\botocore\session.py", line 25, in <module>
    import botocore.configloader
  File "C:\Users\me013pe\AppData\Roaming\Python\Python36\site-packages\botocore\configloader.py", line 19, in <module>
    from botocore.compat import six
  File "C:\Users\me013pe\AppData\Roaming\Python\Python36\site-packages\botocore\compat.py", line 24, in <module>
    from botocore.vendored import six
ModuleNotFoundError: No module named 'botocore.vendored'
closing-soon

Most helpful comment

OK, the problem is first time install with --user . It install to windows user folder, I stop the installation and reinstall without --user cause this error.

All 11 comments

What version of botocore do you have installed? Can you run pip check and see if it reports any issues?

Closing due to inactivity.

Good, I have installed aws-cli in openSUSE Tumbleweed. I used before without any issue, but now, suddenly I got the same issue.

seeing the same error on OpenSUSE with botocore 1.10.4 and python 3.6 ,could you reopen?

Same problem here (openSUSE TW). The complete output is

/usr/lib/python3.6/site-packages/requests/__init__.py:80: RequestsDependencyWarning: urllib3 (1.16) or chardet (3.0.4) doesn't match a supported version! RequestsDependencyWarning) Traceback (most recent call last): File "/usr/bin/aws", line 19, in <module> import awscli.clidriver File "/usr/lib/python3.6/site-packages/awscli/clidriver.py", line 35, in <module> from awscli.help import ProviderHelpCommand File "/usr/lib/python3.6/site-packages/awscli/help.py", line 27, in <module> from awscli.clidocs import ProviderDocumentEventHandler File "/usr/lib/python3.6/site-packages/awscli/clidocs.py", line 21, in <module> from awscli.argprocess import ParamShorthandDocGen File "/usr/lib/python3.6/site-packages/awscli/argprocess.py", line 21, in <module> from awscli.paramfile import get_paramfile, ResourceLoadingError File "/usr/lib/python3.6/site-packages/awscli/paramfile.py", line 16, in <module> from botocore.vendored import requests ModuleNotFoundError: No module named 'botocore.vendored'

Same. Installed aws-cli on Tumbleweed today and get the same error. Please re-open @dstufft @joguSD

For the Tumbleweed problem please see https://bugzilla.opensuse.org/show_bug.cgi?id=1092493

Same error on windows 10 , Python3.6

OK, the problem is first time install with --user . It install to windows user folder, I stop the installation and reinstall without --user cause this error.

same happens for me with python3 (3.6.7-1~18.04)

python3-botocore (1.8.48+repack-1) ...
python3-s3transfer (0.1.13-1) ...
awscli (1.14.44-1ubuntu1) ...

Seems to happen if you both have apt install python3-botocore and pip3 install botocore.

Was this page helpful?
0 / 5 - 0 ratings