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

ModuleNotFound Error: no module named 'botocore.vendored' #3092

Closed
meganpetroski opened this issue Jan 19, 2018 · 15 comments
Closed

ModuleNotFound Error: no module named 'botocore.vendored' #3092

meganpetroski opened this issue Jan 19, 2018 · 15 comments
Labels
closing-soon This issue will automatically close in 4 days unless further comments are made.

Comments

@meganpetroski
Copy link

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'
@dstufft
Copy link
Contributor

dstufft commented Jan 25, 2018

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

@dstufft dstufft added the closing-soon This issue will automatically close in 4 days unless further comments are made. label Jan 25, 2018
@joguSD
Copy link
Contributor

joguSD commented Feb 16, 2018

Closing due to inactivity.

@joguSD joguSD closed this as completed Feb 16, 2018
@neoacevedo
Copy link

neoacevedo commented Apr 9, 2018

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

@mpapis
Copy link

mpapis commented Apr 27, 2018

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

@rombert
Copy link

rombert commented May 9, 2018

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

  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'```

@mdunc
Copy link

mdunc commented May 14, 2018

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

@rombert
Copy link

rombert commented May 14, 2018

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

@eromoe
Copy link

eromoe commented Nov 7, 2018

Same error on windows 10 , Python3.6

@eromoe
Copy link

eromoe commented Nov 7, 2018

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.

@Dmitry1987
Copy link

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) ...

@riptl
Copy link

riptl commented Nov 6, 2019

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

@KaiserWhoLearns
Copy link

KaiserWhoLearns commented Feb 9, 2021

Same problem, while I only have apt install python3-botocore.

Python 3.8.5
python3-botocore: 1.16.19+repack-1ubuntu0.20.04.1
awscli: 1.18.208

Update:
For my case, my awscli installation may be corrupted to some unknown reasons. After reinstalling awscli, things are working now.

@holisticode
Copy link

holisticode commented Mar 20, 2021

sudo apt remove python3-botocore then pip3 install botocore fixed it for me.

I then ran an ansible script which also installs awscli, and even if it already was installed, it appears to have run/installed it again.

TASK [Install AWS cli] ***********************************************************************************************************************************************************************
changed: [***]

@BitnaKeum
Copy link

In my case, it works for me.

sudo apt remove python3-botocore
pip3 uninstall botocore
sudo apt install python3-botocore
sudo apt install awscli
pip install --upgrade boto3 awscli

thoward-godaddy pushed a commit to thoward-godaddy/aws-cli that referenced this issue Feb 12, 2022
* remove old images when building new one

* add input and output types

* address review feedback

* small fix

* add integration tests, update code and tests to only delete rapid images

* update tests for ecr and move is_rapid_image into util

* move logic back to manager.py

* remove force parameter from remove and add integration test to check that it does not delete iamges from other repos

* updated comment

* log each failure instead of exiting on first failure

* move rapid prefix to a constant and move is_rapid_image to lambda_image.py

Co-authored-by: Mathieu Grandis <73313235+mgrandis@users.noreply.github.com>
@skilfoy
Copy link

skilfoy commented Nov 15, 2022

In my case, it works for me.

sudo apt remove python3-botocore pip3 uninstall botocore sudo apt install python3-botocore sudo apt install awscli pip install --upgrade boto3 awscli

This worked for me! Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closing-soon This issue will automatically close in 4 days unless further comments are made.
Projects
None yet
Development

No branches or pull requests