12-18-2019, 03:57 AM | #31 |
Grand Sorcerer
Posts: 6,496
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
|
12-18-2019, 08:24 AM | #32 | |
Guru
Posts: 927
Karma: 1177583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
|
Quote:
Both plugins are working 100% on python 3 now. The open dialog and translation are fixed too. Thanks for the help. |
|
Advert | |
|
12-18-2019, 11:31 AM | #33 |
Deviser
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
|
Kovid,
Given that Calibre 4.99 will silently fail at startup with no indication as to the cause if a UI plugin that is not compatible with Python 3 is initialized, and given that many users have many plugins, IMHO it might be prudent to add a new attribute to InterfaceActionBase that defaults to False and means that the respective UI plugin is "safe" to use with Python 3 Calibre only when the plugin returns True for that new attribute. This should help to avoid needless user mass confusion and panic in the future. DaltonST Last edited by DaltonST; 12-18-2019 at 11:37 AM. |
12-18-2019, 11:49 AM | #34 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I dont see how calibre 4.99 will fail at startup regardless of what UI plugins do, unless those UI plugins mess with sys.path, or other global interpreter state, which is the case with all versions of calibre.
|
12-18-2019, 12:33 PM | #35 |
Guru
Posts: 927
Karma: 1177583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
|
Calibre starts normally here. In the debug log I can see all the plugins that failed to load. Also, some plugins load, but fail when I click on then.
|
Advert | |
|
12-18-2019, 12:36 PM | #36 | ||
Deviser
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
|
Quote:
See your answer to this post:https://www.mobileread.com/forums/sh...82&postcount=9 which you provided here: https://www.mobileread.com/forums/showpost.php?p=3929798&postcount=15 Quote:
Remember that virtually ALL plugins will fail in 4.99 unless they are ported to Python 3 first. Users will have no idea why Calibre silently dies on them. Hence, user mass confusion. DaltonST Last edited by DaltonST; 12-18-2019 at 12:45 PM. |
||
12-18-2019, 12:50 PM | #37 |
Guru
Posts: 927
Karma: 1177583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
|
Hi @kovidgoyal
Just to be sure: is the metadata download fully functional on 4.99.1? I was trying to port a plugin for it, but I'm not sure it is working, since even the bundled plugins are failing. The log points out to some problem with Qt geometry: Spoiler:
Also, I just noticed an error with QWebView that is showing both on calibre 4.6 and 4.99.1: Spoiler:
|
12-18-2019, 12:54 PM | #38 | |
Deviser
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
|
Quote:
See my original debug log. Calibre silently died AFTER initialization of all 20 of my installed plugins, with nothing in the debug log. Hence, my first post in this thread. DaltonST |
|
12-18-2019, 01:00 PM | #39 |
Plugin Developer
Posts: 6,320
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
(Tangentially off topic?)
So while working on this, I'm wondering: How common are pre-3.48 Calibre users now? I'm thinking I might make the min Calibre version for all my plugins 3.48 and start removing some old cruft and the PyQt4 code... |
12-18-2019, 01:18 PM | #40 |
Grand Sorcerer
Posts: 27,549
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Looks like I have a little bit of playing to do.
|
12-18-2019, 02:25 PM | #41 | |
Ex-Helpdesk Junkie
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Quote:
Whatever *your* plugin-related issue is, it somehow caused a function in Calibre itself to go missing so that Calibre itself could not find it and failed at startup. I'm baffled what your plugins could do that caused such an issue. It's certainly not something that most plugins should be concerned about. If you can test your profile with a single plugin enabled at a time, and figure out what actually caused the crash to happen (or even a way for someone else to repeat it) that would be great and we could investigate the cause, and determine whether it's a sufficiently painful issue to require skipping plugins. But at the moment, we are working on vague theories and insinuations, so I think we should go with Kovid's gut instinct and not restrict anything here. |
|
12-18-2019, 02:31 PM | #42 | |
Ex-Helpdesk Junkie
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Quote:
I'm not sure there's any advantage in requiring anything stricter than >=2.0.0 It's possible there are people still using 2.x because they like the old content server or don't like the fact that running calibre-server in the background prevents starting the GUI. |
|
12-18-2019, 02:40 PM | #43 |
Plugin Developer
Posts: 6,320
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Another minor issue: When running debug from Preferences -> Restart in Debug, after restart, when presented with the 'Running in debug, log saved to this temp file', if I clicked the 'Copy to Clipboard' button, then okay, there's an error in the log apparently from the 'Copy to Clipboard'. But the text of the dialog is copied to clipboard.
See log: Spoiler:
|
12-18-2019, 02:49 PM | #44 |
Grand Sorcerer
Posts: 27,549
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
What version did UI plugins first get introduced to calibre?
Last edited by DiapDealer; 12-18-2019 at 02:51 PM. |
12-18-2019, 02:53 PM | #45 |
Grand Sorcerer
Posts: 27,549
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Plugin Devs: Should we include a License or COPYING file? | KevinH | Plugins | 3 | 08-15-2017 01:09 PM |
Attn plugin developers: calibre moving to Qt 5 | kovidgoyal | Plugins | 157 | 01-01-2015 11:22 PM |
Can I develop a plugin in a launguage other than Python? | jamawg | Development | 2 | 06-13-2014 12:38 AM |
Calibre in a Python 3.2 world, attn: Kovid | Kevin McAleavey | Calibre | 8 | 01-09-2012 05:49 PM |
How do I Create a Python Plugin? | Sydney's Mom | Plugins | 25 | 01-27-2010 06:26 AM |