05-07-2011, 06:29 PM | #91 |
Member
Posts: 12
Karma: 10
Join Date: Jul 2010
Device: sony prs-505
|
Problem Installing Plug In Updater
First of all as a newbie can I say a great big thankyou to Kovid and the rest of the community for such a brilliant programme - it puts Sony's efforts to shame.
Having updated to 0.8.0 and done a restart I have tried to install the plug in updater using the instructions given for manual install (I'm using Win 7, 64 bit) but each time I try I get the following error. calibre, version 0.8.0 ERROR: Unhandled exception: <b>InvalidPlugin</b>:The plugin in u'C:/Program Files (x86)/Calibre2/pylib.zip' is invalid. It does not contain a top-level __init__.py file Traceback (most recent call last): File "site-packages\calibre\gui2\preferences\plugins.py", line 283, in add_plugin File "site-packages\calibre\customize\ui.py", line 322, in add_plugin File "site-packages\calibre\customize\ui.py", line 54, in load_plugin File "site-packages\calibre\customize\zipplugin.py", line 160, in load File "site-packages\calibre\customize\zipplugin.py", line 255, in _locate_code InvalidPlugin: The plugin in u'C:/Program Files (x86)/Calibre2/pylib.zip' is invalid. It does not contain a top-level __init__.py file Presumably I'm doing something stupid - Has anyone got any advice? Makaza |
05-07-2011, 06:53 PM | #92 |
Calibre Plugins Developer
Posts: 4,636
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Why are you trying to load "pylib.zip" as a plugin? It should be the "Plugin Updater.zip" file that you downloaded from the first post on this thread that you should be trying to add...
|
Advert | |
|
05-07-2011, 07:00 PM | #93 | |
Addict
Posts: 293
Karma: 21022
Join Date: Mar 2011
Location: NL
Device: Sony PRS-650
|
Quote:
The idea is there would be some minimal / maximal version info in the plugin-info. Than there is a check on current calibre version. This would save you time and give the plugin more options. A obsolete / deprecated plugin is not always deprecated. For example, lets say I have a plugin for 0.7 that gives the cover-download screen as it is in 0.8. This plugin is obsolete / deprecated for 0.8 users because they have it build into the core. But if I have whatever reason to keep working with 0.7, I could still benefit from the plugin. So I'd rather see a version comparison than a ('to manual update') deprecate function. You get the point? If you're fine with the way it works, it is fine by me. Just a suggestion that is more flexible in my opinion... |
|
05-07-2011, 07:17 PM | #94 |
Calibre Plugins Developer
Posts: 4,636
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
I'm happy with the way it works currently. There is already minimal version info - plugin updater won't let you install a plugin with a Calibre version higher than what you are running.
A plugin becoming end of life ("maximal version") is when it becomes deprecated. There will be no more support, no more versions. So a user should not have any options other than to uninstall it which is the case with Plugin Updater now. Users who have stuck to Calibre 0.7.x are still able to run the deprecated plugins, they just can't use plugin updater to install them, they must do it manually. The point of a plugin reaching end of life and being deprecated is that it is dead as far as the developer is concerned. If it still has some sort of heartbeat/ongoing life, it wouldn't have deprecated status. I have no interest in supporting or fixing my plugins that have been deprecated. If Goodreads change their website again breaking plugins for 0.7 users - well tough luck. Upgrade to Calibre 0.8 and get a higher featured and supported version. Life is too short and I don't get paid a cent so I have no intentions of wasting any time on issues that are easily solved by users upgrading Calibre versions. It's tough love... |
05-07-2011, 07:37 PM | #95 |
Addict
Posts: 293
Karma: 21022
Join Date: Mar 2011
Location: NL
Device: Sony PRS-650
|
clear.
I did not put the external changes (like broken goodread links) into my consideration. I now understand that point of view and totally agree with it. Thank you |
Advert | |
|
05-07-2011, 07:52 PM | #96 | |
Member
Posts: 12
Karma: 10
Join Date: Jul 2010
Device: sony prs-505
|
Quote:
I did warn you I was doing something stupid! Many thanks, its all sorted now and the other plugins install without a problem. Thank you for your help Regards Makaza |
|
05-07-2011, 08:03 PM | #97 |
Calibre Plugins Developer
Posts: 4,636
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
@Makaza - excellent, glad to hear you are up and running. Welcome to MobileRead btw.
|
05-08-2011, 10:09 PM | #98 |
Junior Member
Posts: 4
Karma: 10
Join Date: Jan 2011
Device: Kindle DXG
|
@kiwidude - Thanks for your reply.
|
05-15-2011, 11:20 AM | #99 |
Calibre Plugins Developer
Posts: 4,636
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
v1.2 Released
Changes in this release:
A little more detail on the two key points of this release. The first being that the plugin will now check periodically and at Calibre startup to see whether there are any updates available for the plugins that you have installed. If there are, you will see the icon change to have a red exclamation mark in the corner, and the text name change to have a * after it (for those of you who use menu bars or no icons). The second change is a column in the GUI dialog in combination with a hyperlink on the plugin forum index page allowing users to make PayPal donations to the individual plugin developer. If any of the other plugin developers also want to encourage such donations for their plugins, just send me an "email link" for your PayPal donation page and I will update the forum index. The donations stuff has all been discussed with Kovid - obviously it is not my intent or desire to significantly impact his own Calibre income. However speaking for myself having spent several thousand hours doing Calibre development/support over the last six months for nothing more than giggles the time committed has gotten rather out of proportion. I know there are other plugin developers out there who also have spent serious amounts of time supporting their plugins. So if someone wants to donate a few extra dollars every now and then to keep that developer encouraged to continue then we would be very grateful. |
05-22-2011, 04:01 PM | #100 |
Enthusiast
Posts: 26
Karma: 22
Join Date: May 2011
Device: Kindle 3
|
Dear kiwidude,
I tried the last two versions of your updater plugin and it will always give me the error message Code:
calibre, version 0.8.2 ERROR: Update Check Failed: Unable to reach the MobileRead plugins forum index page. https://www.mobileread.com/forums/showpost.php?p=1362767&postcount=1 Any idea what could be wrong? Thanks and BR, SoulStyle |
05-22-2011, 04:10 PM | #101 |
Calibre Plugins Developer
Posts: 4,636
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Any idea? Ummm... not really. Have you tried restarting your router? What about when you run calibre in debug mode - is there any more output than what you posted above?
The plugin just uses the same browser object that downloading metadata and all my other plugins (now) use. Do plugins like Search the Internet work for you? |
05-22-2011, 04:12 PM | #102 |
Addict
Posts: 246
Karma: 4476
Join Date: May 2009
Location: US - Maryland
Device: Sony 300/505/T1 Nook STWG Kobo Glo Kobo Aura HD KDX iPad1 K3 KT PW2
|
deleted
Last edited by bookfanmd; 05-22-2011 at 04:27 PM. Reason: disregard |
05-22-2011, 04:23 PM | #103 | |
Enthusiast
Posts: 26
Karma: 22
Join Date: May 2011
Device: Kindle 3
|
Quote:
The "Search the Internet" works fine and, e.g. your Goodreads Metadata Source plugin does a perfect job as well. |
|
05-25-2011, 04:48 PM | #104 | ||||
Enthusiast
Posts: 26
Karma: 22
Join Date: May 2011
Device: Kindle 3
|
With my very limited coding knowledge I fooled around in the code and added some debug statements to the read_available_plugins() function:
Code:
def read_available_plugins(): display_plugins = [] br = browser() br.set_debug_http(True) br.set_debug_redirects(True) br.set_debug_responses(True) try: raw = br.open_novisit(MR_INDEX_URL).read() prints('============ RAW ==========') prints(raw) if not raw: return except: traceback.print_exc() return raw = raw.decode('utf-8', errors='replace') prints('============ RAW UTF8 ==========') prints(raw) root = html.fromstring(raw) prints('============= ROOT ============') prints(root) list_nodes = root.xpath('//div[@id="post_message_1362767"]/ul/li') Debug browser object: Quote:
Quote:
Quote:
Quote:
Provided that the "prints" statement is not totally wrong for outputting this kind of content it seems that the http connection is all fine and then things starts to get messy. Hope you can make more out of it. If you provide the instructions I will gladly add some more debug output to trace this. Best regards, SoulStyle |
||||
05-25-2011, 05:08 PM | #105 |
Calibre Plugins Developer
Posts: 4,636
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
@SoulStyle - looks like the output coming from the Browser object is completely kakked - it should be human readable html, not that mess of randomness. I don't know what to suggest, other than completely uninstalling and reinstalling Calibre.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Goodreads Sync | kiwidude | Plugins | 1721 | 04-18-2024 10:22 AM |
[GUI Plugin] Clipboard Search | kiwidude | Plugins | 29 | 04-02-2024 10:05 PM |
[GUI Plugin] Open With | kiwidude | Plugins | 403 | 04-01-2024 08:39 AM |
[GUI Plugin] Generate Cover | kiwidude | Plugins | 811 | 03-16-2024 11:31 PM |
[GUI Plugin] Book Sync **Deprecated** | kiwidude | Plugins | 111 | 06-07-2011 07:47 PM |