redtoad/python-amazon-product-api

API not found

Closed this issue · 6 comments

Originally reported by turtle02 (Bitbucket: turtle02, GitHub: turtle02)


I have pip installed the dependecies but i keep getting an error on API

api = API(locale='us')
items = api.item_search('Books', Publisher="O'Reilly")


Original comment by turtle02 (Bitbucket: turtle02, GitHub: turtle02)


This was an issue on my machine.

Original comment by turtle02 (Bitbucket: turtle02, GitHub: turtle02)


Actually I fixed this by specifying the latest version of lxml but now no matter what API access key I put it it always says invalid.

InvalidClientTokenId: InvalidClientTokenId: The AWS Access Key Id you provided does not exist in our records.

Original comment by turtle02 (Bitbucket: turtle02, GitHub: turtle02)


Here is the error i geterror.JPG

Original comment by Sebastian Rahlf (Bitbucket: basti, GitHub: basti)


Import looks fine. Can you please post the error message as it is with traceback and everything?

Original comment by turtle02 (Bitbucket: turtle02, GitHub: turtle02)


I have installed lxml also, should there be an import from that also?

from amazonproduct import API

api = API(locale='us')
items = api.item_search('Books', Publisher="O'Reilly")

for book in items:
print '%s: "%s"' % (book.ItemAttributes.Author,
book.ItemAttributes.Title)

Original comment by Sebastian Rahlf (Bitbucket: basti, GitHub: basti)


Please post code with module import statement.