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,520 points
2,209 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,910 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,440 points
7,119 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,880 points
7,874 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 13, 2019 in Python by Mark
4,377 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,520 points
35,121 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP