1

I installed bottlenose and tried this sample code:

import bottlenose
amazon = bottlenose.Amazon(AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_ASSOCIATE_TAG)
response = amazon.ItemLookup(ItemId="0596520999", ResponseGroup="Images",

I put in all my keys but I always getting a NameError saying amazon is not defined.

Any ideas why?

Dan Loewenherz
  • 10,879
  • 7
  • 50
  • 81
sidni
  • 31
  • 2
  • hi @sidni, what do you have when you do `dir(bottlenose)`? – Andy K Sep 29 '16 at 08:00
  • I can't seem to replicate your `NameError` problem. Have you already ran `$ pip install bottlenose` with no errors? It looks correct to me provided you gave it valid keys. – Mangohero1 Sep 29 '16 at 09:00
  • this is the error: https://postimg.org/image/92d9ibww5/ #the stuff i blanked out is all my keys. sorry for the mess – sidni Sep 29 '16 at 23:29
  • realised i did not ass str on my keys – sidni Sep 30 '16 at 07:54

0 Answers0