Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 03-03-2020, 09:42 PM   #16
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by BetterRed View Post
No that's another bug in the code, but it's not obvious to me what it is.

What options did you check in Modify - did you check Deindent? if so try unchecking it and we might dodge that bullet for now

BTW all the plugins you can install from Preferences plugins originate from here.

BR
It's another tab/spaces problem. I don't remember seeing "_load_backward_compatible" in the stack dump before, so maybe Kovid has tightened something up. In any case, the attached version should be OK. There were some tabs used for indentation in other places as well, so I have removed them.

Last edited by BetterRed; 03-12-2020 at 01:16 AM. Reason: Remove attachment - it'll turn up in the plugin thread shortly
davidfor is offline   Reply With Quote
Old 03-04-2020, 01:07 AM   #17
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Thanks David

Not sure I understand which tab caused the problem at 532, not that that matters. I did notice tabs and 4 spaces were intermingled throughout that module, which looked rather 'unpretty' to me. But I'm loathe to meddle too much with python code because of its layout rules.

What I can't understand is why it has taken so long for these problems to show up, they must have been there since version 1.4 was released on Oct 19 last year… at least.

BR
BetterRed is offline   Reply With Quote
Advert
Old 03-04-2020, 02:30 AM   #18
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by BetterRed View Post
Not sure I understand which tab caused the problem at 532, not that that matters. I did notice tabs and 4 spaces were intermingled throughout that module, which looked rather 'unpretty' to me. But I'm loathe to meddle too much with python code because of its layout rules.

What I can't understand is why it has taken so long for these problems to show up, they must have been there since version 1.4 was released on Oct 19 last year… at least.
Looking at the errors, it is using Python from the machine, not calibre. And that is Python 3.7. The error is when the code is compiled by Python. And a search found:

Code:
Python 3 disallows mixing the use of tabs and spaces for indentation.
And these failures are on the first line in the file where the indentation type changed. So, it is the change from Python 2 to Python 3 that is causing the problems. And that it is working in Python 2 is probably a bit lucky. The tab/space usage is consistent in blocks, but, it wouldn't surprise me if there are some lines being execute when they shouldn't.
davidfor is offline   Reply With Quote
Old 03-04-2020, 02:43 AM   #19
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Ah I wondered about that. Initially I thought he might be running 4.99.?. IIRC at least one of the Linux distros jumped the gun and put it into their repo.

Presumably if he installs from the calibre site he'll be using the python Kovid ships.

BR
BetterRed is offline   Reply With Quote
Old 03-11-2020, 11:12 PM   #20
Rev. Bob
Wizard
Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.
 
Rev. Bob's Avatar
 
Posts: 1,760
Karma: 9918418
Join Date: Feb 2013
Location: Here on the perimeter, there are no stars
Device: Kobo H2O, iPad mini 3, Kindle Touch
Quote:
Originally Posted by davidfor View Post
It's another tab/spaces problem. I don't remember seeing "_load_backward_compatible" in the stack dump before, so maybe Kovid has tightened something up. In any case, the attached version should be OK. There were some tabs used for indentation in other places as well, so I have removed them.
If the change of tabs to spaces is the only change in this version, I would not object (would welcome, actually) if you and/or BR would bump the version number accordingly, toss a quick bugfix note into the changelog, and make it an official update.
Rev. Bob is offline   Reply With Quote
Advert
Old 03-12-2020, 01:14 AM   #21
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Rev. Bob View Post
If the change of tabs to spaces is the only change in this version, I would not object (would welcome, actually) if you and/or BR would bump the version number accordingly, toss a quick bugfix note into the changelog, and make it an official update.
I've grabbed and deleted the zip from here, I'll put what is now to 1.4.1 into the Modify plugin thread - momentarily

BR
BetterRed is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to clear cache? odamizu Kindle Developer's Corner 8 04-11-2017 11:15 AM
Completely Automatic Download of Metadata? saefuob Library Management 3 03-07-2012 03:41 PM
Did I clear out Best Buy ? carpetmojo Sony Reader 8 11-13-2011 04:20 AM
Way to Clear Library? Lobonca Calibre 5 01-05-2010 04:24 PM


All times are GMT -4. The time now is 01:04 AM.


MobileRead.com is a privately owned, operated and funded community.