View Single Post
Old 09-23-2010, 12:40 PM   #1
DarkAbsynthe
Member
DarkAbsynthe began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Sep 2010
Device: Kindle
Error developing new plug-in

I found a python developer and asked him for help with building a new plug-in. He's put something together that looks good to me ( I'm a developer, but not with python ).

First, I load the plug-in through the command line. ( I've tried loading the plug-in ziped or not ziped. ) When I try and test the new plug-in, I get the following error.

Code:
C:\Program Files\Calibre2>calibre-debug --add-simple-plugin="C:\Program Files\Calibre2\gr_plugin.py"
Plugin added: Goodreads (1, 0, 0)

C:\Program Files\Calibre2>calibre-debug -g Starting up...
Started up in 4.42100000381
Exception in thread Thread-13:
Traceback (most recent call last):
  File "threading.py", line 525, in __bootstrap_inner
  File "site-packages\calibre\gui2\dialogs\fetch_metadata.py", line 38, in run
  File "site-packages\calibre\ebooks\metadata\fetch.py", line 312, in search
  File "site-packages\calibre\ebooks\metadata\fetch.py", line 269, in __enter__
  File "site-packages\calibre\customize\__init__.py", line 123, in __enter__
  File "site-packages\calibre\utils\zipfile.py", line 734, in __init__
  File "site-packages\calibre\utils\zipfile.py", line 755, in _GetContents
  File "site-packages\calibre\utils\zipfile.py", line 765, in _RealGetContents
  File "site-packages\calibre\utils\zipfile.py", line 204, in _EndRecData
AttributeError: 'tuple' object has no attribute 'seek'
The first statement is me loading the plug-in, the second is kicked out when I invoke the plug-in from within Calibre.

Anyone have any idea what we're doing wrong? The plug-in has nothing to do with zipping.
DarkAbsynthe is offline   Reply With Quote