ralsina / aranduka

Automatically exported from code.google.com/p/aranduka
0 stars 1 forks source link

Exception on method on_guessers_currentIndexChanged #39

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When guessing a book with Google Guesser I get this error:

EP: set([u'Alibris Guesser', u'Books By Author', u'Folder Device', u'Books By 
Tag', u'Barcode Scanner', u'FeedBooks Converter', u'OPDS Publisher', u'Books By 
Title', u'manybooks_net', u'Google Books Guesser', u'FeedBooks', 
u'Manybooks.net Converter', u'archive_org', u'RSS'])
CIC
Traceback (most recent call last):
  File "/home/elbarto/aranduka/src/book_editor.py", line 73, in on_guessers_currentIndexChanged
    self.guesser = self.guesser_dict[unicode(text)]
KeyError: u'Google Books'
EP: set([u'Alibris Guesser', u'Books By Author', u'Folder Device', u'Books By 
Tag', u'Barcode Scanner', u'FeedBooks Converter', u'OPDS Publisher', u'Books By 
Title', u'manybooks_net', u'Google Books Guesser', u'FeedBooks', 
u'Manybooks.net Converter', u'archive_org', u'RSS'])
<GoogleGuesser object at 0x94035ec> <class 'GoogleGuesser'>

I'm suppose the problem is with the name of the plugin, but since I don't know 
really what happens there, I don't want to mess things up by trying to fix it 
:-)

Original issue reported on code.google.com by andresgattinoni on 2 Feb 2011 at 10:55

GoogleCodeExporter commented 9 years ago
If you can still reproduce this on integrate:

Before that line 73, add this:

print self.guesser_dict, unicode(text)

And post it.

Original comment by roberto.alsina on 3 Feb 2011 at 2:24

GoogleCodeExporter commented 9 years ago
EP: set([u'Alibris Guesser', u'Books By Author', u'Folder Device', u'Books By 
Tag', u'Barcode Scanner', u'FeedBooks Converter', u'OPDS Publisher', u'Books By 
Title', u'manybooks_net', u'Google Books Guesser', u'FeedBooks', 
u'Manybooks.net Converter', u'archive_org', u'RSS'])
CIC
{} Google Books
Traceback (most recent call last):
  File "/home/elbarto/integrate/src/book_editor.py", line 75, in on_guessers_currentIndexChanged
    self.guesser = self.guesser_dict[unicode(text)]
KeyError: u'Google Books'
EP: set([u'Alibris Guesser', u'Books By Author', u'Folder Device', u'Books By 
Tag', u'Barcode Scanner', u'FeedBooks Converter', u'OPDS Publisher', u'Books By 
Title', u'manybooks_net', u'Google Books Guesser', u'FeedBooks', 
u'Manybooks.net Converter', u'archive_org', u'RSS'])
<GoogleGuesser object at 0xa1ff58c> <class 'GoogleGuesser'>
Rendered in: 0.000694990158081 seconds

Original comment by andresgattinoni on 3 Feb 2011 at 2:29

GoogleCodeExporter commented 9 years ago
Try again after revision 9bf9ad1dd9

Original comment by roberto.alsina on 3 Feb 2011 at 2:41

GoogleCodeExporter commented 9 years ago
There we go. It's fixed.

Original comment by andresgattinoni on 3 Feb 2011 at 2:45

GoogleCodeExporter commented 9 years ago

Original comment by andresgattinoni on 5 Feb 2011 at 3:03