Skip to main content
vijayvikram11844-0d120b4b

1 year ago

Configuring Proxy Protocol on an ELB and Nginx - ImportError

When trying the self-paced lab under Configuring Proxy Protocol on an ELB and Nginx, the instane gave the error 

ImportError: cannot import name UnrewindableBodyError when trying to run  aws configure

Two ways to fixing the issue:

  • Simple way : pip upgrades any requirements that are already installed 

$ pip install awscli --upgrade --user


  • Complicated way : Works almost everywhere

sudo pip uninstall requests

sudo pip uninstall urllib3

sudo yum remove python-urllib3

sudo yum remove python-requests(confirm that all those libraries have been removed)

sudo yum install python-urllib3

sudo yum install python-requests



Image of bpalmer
bpalmer
1 year ago
Good Morning Vijay,
Thank you for that feedback, I will look into this Learning Activity today!