How to Solve NameError: name 'Key' is not defined -- boto

Solution: Import the 'Key' module

To Solve the error, add the following line to the top of your code.

from boto.s3.key import Key

 

For more information:
Python boto Key