Hi SetMeOnFire,
Received a note today from the guy Sebastian who maintains bitbucket which (maybe) takes care of the wrapper for the api. He said to use:
Code:
{{{
#!python
api = amazonproduct.API(AWS_KEY, SECRET_KEY, locale='us', AssociateTag='...')
}}}
However I found what I needed was just to make these two changes to the asin_search.py code AFAIK.
After the line:
SECRET_KEY = '..........'
insert this line:
Code:
AssociateTag='....'
Be sure to include your actual AssociateTag value instead of the dots.
Change this one line to add the additional parameter:
api = API(AWS_KEY, SECRET_KEY, "us")
Code:
api = API(AWS_KEY, SECRET_KEY, "us", AssociateTag)
That seems to work for me (sort of). I'm still seeing this error:
AttributeError: 'LxmlItemSearchPaginator' object has no attribute 'Items'
and the counters I to count how many real vs. fake ASINs are assigned is showing all fake after about 10% of my books are processed.
I think there's probably still an issue that's causing all fake ASINs. Also when I reviewed a few of the books processed now even the fake ASIN is not there when I check the mobi file with Mobi2MobiGUI. However if I re-convert the book in Calibre, then the -113 record appears but the fake ASIN looks suspect to me. Here's an example:
EXTH item: 113 - ASIN - 36 - 417b3131-26b4-46e4-bb85-2cfaad5a9117
Looks like hex being produced because character string is not alpha-numeric. First few bytes are:
A{11&'
One step forward and two steps back...
Rob
Quote:
Originally Posted by SetMeOnFire
I apologize for coming late to the discussion, but I have a problem that I can't seem to sort out on my own.
I'm fairly sure I've followed all the instructions correctly and I've removed everything and started over from the beginning two times, but I get the same error each time.
The batch file seems to apply fake ASINs to all my books just fine, and I'll be content with that if I have to, but I'd like the real ones.
The error I get is "ImportError: No module named amazonproduct"
I've installed "python-amazon-product-api" using two of the methods on it's homepage. The "setup.py install" from a command prompt, and the "easy_install python-amazon-product-api" using setuptools from a command prompt.
Any help would be appreciated, and thank you in advance for the work you've already done, m0ngr31.
|