06-23-2009, 08:59 PM | #31 |
Wizard
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
|
Hmm... still get the same module not found error after re-installing using the -u option from a local copy of the file.
|
06-23-2009, 09:56 PM | #32 |
creator of calibre
Posts: 43,829
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Ok just use modify your local copy by adding
main(args=['', 'isbn', 'key']) to the bottom and then use calibre-debug -e amazon.py |
Advert | |
|
06-24-2009, 10:45 AM | #33 |
Wizard
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
|
Still no luck. I'm assuming you meant the very last line for that, correct? That failed, but so did every other point in the file.
I'm getting an error about the global names of the functions not being defined. Here's the output: Code:
$ calibre-debug -e amazon.py Rating: Traceback (most recent call last): File "/Applications/calibre Beta6.app/Contents/Resources/loaders/calibre-debug.py", line 9, in <module> main() File "/Applications/calibre Beta6.app/Contents/Resources/lib/python2.6/site-packages.zip/calibre/debug.py", line 158, in main File "amazon.py", line 50, in <module> main(args=['', '1416551727', 'AKIAISGM37SF64FSLJEQ']) File "amazon.py", line 42, in main print 'Rating:', get_rating(args[1], args[2]) NameError: global name 'get_rating' is not defined |
06-24-2009, 12:06 PM | #34 |
creator of calibre
Posts: 43,829
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Hmm, OK I'll just make sure that module is included in the frozen OS X build for the next beta release. Then you should be able to use the calibre-debug -c,u technique.
|
06-26-2009, 06:14 PM | #35 |
Connoisseur
Posts: 71
Karma: 422
Join Date: Jun 2009
Device: Palm Treo
|
I'm also trying to get the amazon plugin to work because I am hoping to be able to tag each book with its respective category from amazon. However, I'm also getting this error on Windows beta 9.
Code:
Traceback (most recent call last): File "calibre\gui2\dialogs\config.pyo", line 491, in add_plugin File "C:\Program Files\calibre\library.zip\calibre\customize\ui.py", line 235, in add_plugin File "C:\Program Files\calibre\library.zip\calibre\customize\ui.py", line 74, in load_plugin InvalidPlugin: No valid plugin found in C:/Users/xxxxxxxxxx/Desktop/Book/Science-Textbook/amazon.zip Thanks. |
Advert | |
|
06-26-2009, 06:21 PM | #36 |
creator of calibre
Posts: 43,829
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
It's not a plugin, just some code. It has to be tested and developed some more before it becomes usable. Unfortunately, I'm in the middle of moving house right now, so I can't spend any time on it.
|
06-26-2009, 06:23 PM | #37 |
Connoisseur
Posts: 71
Karma: 422
Join Date: Jun 2009
Device: Palm Treo
|
Ok, no rush.
Thanks |
11-08-2009, 01:14 AM | #38 | |
Groupie
Posts: 168
Karma: 1000036
Join Date: Oct 2008
Location: Citizen of the World
Device: iPod Touch, Nook Colour, Kobo Touch, Kobo Glo, Nexus 7, Nexus 5, Pixel
|
Hi all,
Just catching up on Calibre and came across this thread. I'd love Amazon support! I've attached a proof of concept script, amazon_calibre_working.py (just run it standalone to see the AWS interface in action). You just need to edit in an AWS access key and AWS secret key, which are freely available, at the top of the script. It was pretty straight forward thanks to the boto module. There's also a version of what "/src/calibre/ebooks/metadata/amazon.py" might look like with boto. Is there anyway to use calibre-debug with an external module? If there is I'll try debugging my amazon.py. I'm sure there's also a way to code it without boto, I just hate re-inventing the wheel. With just an ISBN, AWS can give you information like this: Quote:
|
|
11-08-2009, 01:24 AM | #39 |
creator of calibre
Posts: 43,829
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You can run your python module using
calibre-debug -e /path/to/python/module.py There's an open ticket about using Amazon for tag scraping, please add your code to it, and I'll take a look when I get the chance. |
11-08-2009, 01:35 AM | #40 |
Groupie
Posts: 168
Karma: 1000036
Join Date: Oct 2008
Location: Citizen of the World
Device: iPod Touch, Nook Colour, Kobo Touch, Kobo Glo, Nexus 7, Nexus 5, Pixel
|
Not seeing it Kovid. Tried searching for "Amazon" and "tag scraping" with no joy.
EDIT: Strange searched for scrape and found it. It has Amazon in it but didn't show up when I searched for that... |
Tags |
book cover, isbn-13 |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Would it be possible for Amazon to re-compile Amazon Reader App for Pocketbook OS dev | brecklundin | PocketBook | 3 | 09-22-2010 08:04 PM |
Battery Issues and No Support from Support | BJonas | Astak EZReader | 11 | 05-29-2010 02:31 AM |
Is Astak support on vacation or just stopped support? | dmikov | Astak EZReader | 9 | 01-22-2010 01:43 PM |
Amazon expands language support in Kindle Store | Nate the great | News | 58 | 01-20-2010 04:46 AM |
Amazon Support Home Runs Again! | delphidb96 | Amazon Kindle | 8 | 12-26-2009 05:18 PM |