![]() |
#106 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Works fine for me.
P.S. There is a "copy to clipboard" button for a reason, please use it (and back it up with a screenshot if you really want to). It's quite awkward to look at screenshots of text and try to extract useful information from it. |
![]() |
![]() |
![]() |
#107 |
Deviser
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
|
4.99.4 Windows 10 X86 Error
See the attached. Apparently specific to Windows 10 x86.
|
![]() |
![]() |
Advert | |
|
![]() |
#108 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
I can replicate this on the frozen Linux binaries. Removing and regenerating the file calibre-4.99.4-x86_64/lib/python3.8/site-packages/calibre/gui2/preferences/look_feel_ui.pyc based on the py3 branch was sufficient to get it to work.
The problem doesn't manifest if, like me, you build your own or use the CALIBRE_DEVELOP_FROM environment variable pointed at a copy of the source. In that case, calibre/gui2/preferences/look_feel.ui will be regenerated with pyuic and the problem will go away. Looks like something went wrong in the build environment. The source code is fine though. |
![]() |
![]() |
![]() |
#109 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,356
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
This is likely just an artifact of 4.99.4 being very old, I need to release an updated build.
|
![]() |
![]() |
![]() |
#110 |
Deviser
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
|
|
![]() |
![]() |
Advert | |
|
![]() |
#111 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,356
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
wait 4.99.5 is not complete yet, the initial upload was a mistake. I will post here when the new build is ready.
|
![]() |
![]() |
![]() |
#112 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,356
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
4.99.5 with the fix, and a fully updated calibre code base is now uploaded.
|
![]() |
![]() |
![]() |
#113 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,758
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Is there a way to prevent Linux repositories from grabbing the Python 3 beta? I've been reading a few posts of Linux users saying that some plugin no longer works because of this botch jib by the Linux repositories.
|
![]() |
![]() |
![]() |
#114 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,356
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
No, linux repositories do pretty much whatever they feel like, there is no controlling them, and in a way it is a good thing, those people will come and post here and their posts might get some plugin authors to port their plugins.
|
![]() |
![]() |
![]() |
#115 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
@Kovid, thanks for the update. I haven't been doing as much work on the plugins as the beta was getting out of date. And I just had to step away from it at one point.
I have just posted a beta of the Count Pages plugin. Thanks to the poke from @JimmXinu. I'd done it ages ago, just hadn't posted it. I do have one problem left in it. It can get the page count from Goodreads. To do that, it downloads the books page and parses it for the page count. Most of my test cases work. But, for https://www.goodreads.com/book/show/33701864 it produces an error. The code that does this is basically: Code:
br = browser() raw = br.open_novisit(self.url, timeout=self.timeout).read().strip() raw = raw.decode('utf-8', errors='replace') root = fromstring(clean_ascii_chars(raw)) Code:
Traceback (most recent call last): File "calibre_plugins.count_pages.download", line 77, in _get_details File "__init__.py", line 875, in fromstring File "__init__.py", line 761, in document_fromstring File "src/lxml/etree.pyx", line 3222, in lxml.etree.fromstring File "src/lxml/parser.pxi", line 1877, in lxml.etree._parseMemoryDocument File "src/lxml/parser.pxi", line 1758, in lxml.etree._parseDoc File "src/lxml/parser.pxi", line 1068, in lxml.etree._BaseParser._parseUnicodeDoc File "src/lxml/parser.pxi", line 601, in lxml.etree._ParserContext._handleParseResultDoc File "src/lxml/parser.pxi", line 711, in lxml.etree._handleParseResult File "src/lxml/parser.pxi", line 640, in lxml.etree._raiseParseError File "<string>", line 1 lxml.etree.XMLSyntaxError: encoding not supported USC4 little endian, line 1, column 1 |
![]() |
![]() |
![]() |
#116 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,356
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
@davidfor; That will happen if there is a BOM at the start of the data. Remove it and you should be fine.
|
![]() |
![]() |
![]() |
#117 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Thanks, that gave me the hint to find it. I just needed to change the decode to use "utf-8-sig" and it worked.
|
![]() |
![]() |
![]() |
#118 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,632
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Something that is happening to me: aside of migrating plugins... if we have function inside the library, we have to migrate them too, haven't we?
![]() |
![]() |
![]() |
![]() |
#119 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
What kind of functions? Plugboard functions?
If you're using templates the boring way, you shouldn't need to change anything. If you've used Preferences => Template Functions to define your own, then you would need to port your own stuff over, though if you're not doing anything complicated there's a good chance you're already compatible with python3... Last edited by eschwartz; 05-21-2020 at 10:14 AM. |
![]() |
![]() |
![]() |
#120 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,632
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Quote:
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 |