ImportError cannot import name API KEY from forwarder

0 votes

ImportError: cannot import name 'API_KEY' from 'forwarder'

I successfully installed aws using pip install awscli --upgrade --user. However, when I'm trying to aws configure or aws --version, I'm getting the following error

from forwarder import API_KEY, OWNER_ID, WEBHOOK, IP_ADDRESS, URL, CERT_PATH, PORT, LOGGER, \
    updater, dispatcher
Nov 6, 2020 in Python by anonymous
• 10,440 points
256 views

1 answer to this question.

0 votes

The AWS package in PyPI is not AWS's official CLI client but rather an older unmaintained library that used to interface with AWS and is now broken. AWS's official CLI client is awscli. Therefore if you pip install aws instead of pip install awscli you will run into the issue above.

The solution is to first run pip uninstall aws then run pip install awscli.

answered Nov 6, 2020 by Gitika
• 65,870 points

Related Questions In Python

0 votes
1 answer

ImportError: cannot import name 'PILLOW_VERSION' from 'PIL' (unknown location)

Hi@akhtar, I think there is a problem in ...READ MORE

answered Apr 22, 2020 in Python by MD
• 95,160 points
2,736 views
0 votes
1 answer

ImportError: cannot import name 'render_to_response' from 'django.shortcuts'

Hello @kartik, The render_to_response shortcut was deprecated in Django 2.0, and ...READ MORE

answered Jul 2, 2020 in Python by Niroj
• 82,720 points
1,574 views
0 votes
1 answer

How to resolve ImportError: cannot import name 'add' in python ?

There's no module called "add" in random. ...READ MORE

answered Feb 12, 2019 in Python by Mark
2,752 views
0 votes
3 answers

import NumPy as np ImportError: No module named NumPy

You need to install numpy using pip install ...READ MORE

answered Dec 16, 2020 in Python by Roshni
• 10,440 points
21,318 views
0 votes
1 answer