Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 12-22-2019, 12:18 AM   #1351
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 gogu1904 View Post
I run Calibre portable on windows, with Modify EPub installed.
I strongly suspect that the portable installation is the problem. I’ve never gotten Modify’s CLI interface to work on that setup.
Rev. Bob is offline   Reply With Quote
Old 12-22-2019, 12:49 AM   #1352
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 Rev. Bob View Post
I strongly suspect that the portable installation is the problem. I’ve never gotten Modify’s CLI interface to work on that setup.
I missed the portable install. Running the calibre-debug executable in the portable install directory works. But, it doesn't use the portable's settings. It looks like it is using the configuration from my main install. But, setting the environment variable CALIBRE_CONFIG_DIRECTORY to the portable's settings directory fixes that.
davidfor is offline   Reply With Quote
Advert
Old 12-22-2019, 04:38 AM   #1353
gogu1904
Connoisseur
gogu1904 ought to be getting tired of karma fortunes by now.gogu1904 ought to be getting tired of karma fortunes by now.gogu1904 ought to be getting tired of karma fortunes by now.gogu1904 ought to be getting tired of karma fortunes by now.gogu1904 ought to be getting tired of karma fortunes by now.gogu1904 ought to be getting tired of karma fortunes by now.gogu1904 ought to be getting tired of karma fortunes by now.gogu1904 ought to be getting tired of karma fortunes by now.gogu1904 ought to be getting tired of karma fortunes by now.gogu1904 ought to be getting tired of karma fortunes by now.gogu1904 ought to be getting tired of karma fortunes by now.
 
Posts: 80
Karma: 2112464
Join Date: May 2019
Device: Kobo Aura One LE
David, thank you. Setting the environment variable did it indeed.
gogu1904 is offline   Reply With Quote
Old 01-04-2020, 02:44 AM   #1354
bidou.bidou
Junior Member
bidou.bidou , Klaatu Barada Niktu!bidou.bidou , Klaatu Barada Niktu!bidou.bidou , Klaatu Barada Niktu!bidou.bidou , Klaatu Barada Niktu!bidou.bidou , Klaatu Barada Niktu!bidou.bidou , Klaatu Barada Niktu!bidou.bidou , Klaatu Barada Niktu!bidou.bidou , Klaatu Barada Niktu!bidou.bidou , Klaatu Barada Niktu!bidou.bidou , Klaatu Barada Niktu!bidou.bidou , Klaatu Barada Niktu!
 
Posts: 3
Karma: 5176
Join Date: Jan 2020
Device: kobo
Hi

I was an happy user of modify epub, but Linux distributions are switching to python3 calibre.
And the plugin does not works on python3. I know precompiled version of calibre is python2 but linux distributions make their own packages (and python2 is unsupported).

I have tried to modify the plugin, to works on python3 but I am not sure it is the best way.

http://dl.free.fr/bSU9v0Uaf

Are you interested in converting your plugin to python3 ?
(I think it would be possible to make a plugin compatible with python2.7 and 3)

Thanks in advance
bidou.bidou is offline   Reply With Quote
Old 01-04-2020, 03:30 AM   #1355
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 bidou.bidou View Post
Hi

I was an happy user of modify epub, but Linux distributions are switching to python3 calibre.
And the plugin does not works on python3. I know precompiled version of calibre is python2 but linux distributions make their own packages (and python2 is unsupported).

I have tried to modify the plugin, to works on python3 but I am not sure it is the best way.

http://dl.free.fr/bSU9v0Uaf

Are you interested in converting your plugin to python3 ?
(I think it would be possible to make a plugin compatible with python2.7 and 3)
The short answer: It is recommended that you use the official release of calibre rather than the distro version. The reason, because they break things when they package it. As you can see.

The long answer is that porting calibre to Python 3 is underway. And plugins are discussed here. The Python 3 version won't be released for a while, so plugins are being ported as the author/maintainer has time. Anyone who wants to help is welcome to.
davidfor is offline   Reply With Quote
Advert
Old 01-08-2020, 01:11 PM   #1356
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
And I, for one, am not fluent in Python 3. I can get by enough to make monkey-see, monkey-do tweaks and fixes, as I have in the past, but that kind of wholesale upgrade is beyond me.
Rev. Bob is offline   Reply With Quote
Old 01-12-2020, 02:31 PM   #1357
bidou.bidou
Junior Member
bidou.bidou , Klaatu Barada Niktu!bidou.bidou , Klaatu Barada Niktu!bidou.bidou , Klaatu Barada Niktu!bidou.bidou , Klaatu Barada Niktu!bidou.bidou , Klaatu Barada Niktu!bidou.bidou , Klaatu Barada Niktu!bidou.bidou , Klaatu Barada Niktu!bidou.bidou , Klaatu Barada Niktu!bidou.bidou , Klaatu Barada Niktu!bidou.bidou , Klaatu Barada Niktu!bidou.bidou , Klaatu Barada Niktu!
 
Posts: 3
Karma: 5176
Join Date: Jan 2020
Device: kobo
Quote:
Originally Posted by Rev. Bob View Post
And I, for one, am not fluent in Python 3. I can get by enough to make monkey-see, monkey-do tweaks and fixes, as I have in the past, but that kind of wholesale upgrade is beyond me.
Most of changes are really easy

_ Correcting mix between space and tabs in source code (should be done even for python 2.6)

_ iteritems() -> items()
_ iterkeys() -> keys()


_ from urlparse import urldefrag, urlparse, urlunparse
-> from urllib.parse import urldefrag, urlparse, urlunparse

_ from urllib import unquote as urlunquote
-> from urllib.parse import unquote as urlunquote

_ unicode -> str (all strings are utf8 now)



The only tricky part is bytes vs str (and file opened or not with b). Sometimes this is utf8 strings sometimes binary data. You just have to add a .decode("utf-8")/ .encode("utf-8") and open files with b option when you are reading/writing binary data. But you need to know what data is expected.
bidou.bidou is offline   Reply With Quote
Old 01-15-2020, 03:50 AM   #1358
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 bidou.bidou View Post
Most of changes are really easy

[...]

The only tricky part is
What part of my statement was unclear?
Rev. Bob is offline   Reply With Quote
Old 01-18-2020, 10:29 AM   #1359
Brett Merkey
Not Quite Dead
Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.
 
Posts: 195
Karma: 654170
Join Date: Jul 2015
Device: Paperwhite 4; Galaxy Tab
Quote:
The only tricky part is bytes vs str...
LOL. Thanks for that bidou. Of course, any reasonable person would have to conclude that your post was unhelpful to those of us who live on Earth...
Brett Merkey is offline   Reply With Quote
Old 01-18-2020, 11:31 AM   #1360
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,756
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
@Rev. Bob would you have a problem is anyone else was to fix up Modify ePub to work with Python 3?
JSWolf is offline   Reply With Quote
Old 01-18-2020, 02:42 PM   #1361
bidou.bidou
Junior Member
bidou.bidou , Klaatu Barada Niktu!bidou.bidou , Klaatu Barada Niktu!bidou.bidou , Klaatu Barada Niktu!bidou.bidou , Klaatu Barada Niktu!bidou.bidou , Klaatu Barada Niktu!bidou.bidou , Klaatu Barada Niktu!bidou.bidou , Klaatu Barada Niktu!bidou.bidou , Klaatu Barada Niktu!bidou.bidou , Klaatu Barada Niktu!bidou.bidou , Klaatu Barada Niktu!bidou.bidou , Klaatu Barada Niktu!
 
Posts: 3
Karma: 5176
Join Date: Jan 2020
Device: kobo
Quote:
Originally Posted by Brett Merkey View Post
LOL. Thanks for that bidou. Of course, any reasonable person would have to conclude that your post was unhelpful to those of us who live on Earth...
I fear my english is reallly bad. But in fact the problem is to know when you are reading/writing raw data (by example a zip file) and when it is text. If, like me, you do not know what the plugin is really doing it is a problem. You can not just do search and replace like the other problems.
But the python part is easy
https://portingguide.readthedocs.io/...t/strings.html
bidou.bidou is offline   Reply With Quote
Old 01-18-2020, 10:01 PM   #1362
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 bidou.bidou View Post
I fear my english is reallly bad. But in fact the problem is to know when you are reading/writing raw data (by example a zip file) and when it is text. If, like me, you do not know what the plugin is really doing it is a problem. You can not just do search and replace like the other problems.
But the python part is easy
https://portingguide.readthedocs.io/...t/strings.html
The tricky part is not the bytes vs str. The tricky part is to produce a plugin that will work with both the Python 2 and Python 3 versions of calibre. Your suggestions would completely break it for 99% of the current users of the plugin. If you want to do that, it will be gratefully received by the user when it is needed. Otherwise, it will get done sometime before the official Python 3 version is released. Either someone who uses it will do it, or one of the people fixing up the plugins whose author are no longer around will do it.
davidfor is offline   Reply With Quote
Old 01-19-2020, 12:30 PM   #1363
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 JSWolf View Post
@Rev. Bob would you have a problem is anyone else was to fix up Modify ePub to work with Python 3?
It’s not really my choice to make. I’ve acknowledged that I can’t do it, it needs done, so that means either seeing it become obsolete or letting somebody else update it.

To the extent that my opinion matters, I prefer the latter.
Rev. Bob is offline   Reply With Quote
Old 01-19-2020, 01:51 PM   #1364
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,756
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Rev. Bob View Post
It’s not really my choice to make. I’ve acknowledged that I can’t do it, it needs done, so that means either seeing it become obsolete or letting somebody else update it.

To the extent that my opinion matters, I prefer the latter.
If I could do it, I would. But I can't as well. But given how popular this plugin is, I do think someone will eventually do it.
JSWolf is offline   Reply With Quote
Old 01-19-2020, 02:54 PM   #1365
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,515
Karma: 78910202
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Suggestion; recently a new member has expressed interest in working with calibre,and is looking for work. Ask Jeremy_D to work on it.
PeterT is offline   Reply With Quote
Reply

Tags
modify epub


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Quality Check kiwidude Plugins 1251 07-07-2025 09:13 PM
[GUI Plugin] Open With kiwidude Plugins 404 02-21-2025 05:42 AM
[GUI Plugin] Manage Series kiwidude Plugins 167 07-28-2024 03:07 PM
Modify ePub plugin dev thread kiwidude Development 346 09-02-2013 05:14 PM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 12:27 PM


All times are GMT -4. The time now is 05:44 AM.


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