View Single Post
Old 04-25-2014, 10:38 AM   #2587
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 7,029
Karma: 4604637
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by skb View Post
Okay, got the code, edited the two files. Zipped up the code again and get the error message when adding the plugin (via Prefs/Advanced/Plugins):

Code:
calibre, version 1.33.0
ERROR: Unhandled exception: <b>InvalidPlugin</b>:The plugin in u'/Users/sue/Downloads/FanFictionDownLoaderPlugin_fictioning.zip' is invalid. It does not contain a top-level __init__.py file
...
Just as the error says and Firedancer885 points out, the zip file isn't structured correctly--it has to have a __init__.py file in the top level. The contents need to be in the top level, not one down.

I don't know how easy zip files are to work with on mac, but in windows & linux it's easy to update files in an existing zip file. So you might try adding your files to the official zip.

Quote:
Originally Posted by skb View Post
I've tried two ways...one download the source, edit the files, zip up and try to install and I downloaded your latest "beta" (on Post 1) and did the same. I get the same error both ways.
...
If you downloaded the source from the project site, there's a python program included specifically to make the zip file correctly. From the top source directory, run:
Code:
python makeplugin.py
That will also leave out some unnecessary files and reduce the size of the zip by ~100k.
JimmXinu is online now