Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 12-21-2017, 05:56 AM   #1
igi
Junior Member
igi began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jul 2010
Device: N810
Python 3 migration

Hello I have question about migrating to python 3. Is planned or is any schedule to upgrade, because https://www.python.org/dev/peps/pep-0373/
in 2020 will be latest bugfix release ?


Thanks
igi is offline   Reply With Quote
Old 12-21-2017, 10:06 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 33,205
Karma: 10205090
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
No, I will simply maintain python 2 myself, far less work and I already do it for the windows python.
kovidgoyal is offline   Reply With Quote
Advert
Old 06-12-2018, 07:08 PM   #3
yuvallanger
Junior Member
yuvallanger began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jun 2018
Device: PocketBook Lux 3
We are a year and a half to Python 2's end of life:

https://pythonclock.org/

The number of Python2-supporting development tools and useful modules, used in the development and in user extensions of Calibre, will reduce considerably:

http://python3statement.org/

Would you be interested at least in supporting both Python 2 and Python 3? There are ways to do it in a reasonable amount of effort.

https://docs.python.org/3/howto/pyporting.html

There is also a way for you to apply for financial support from the PSF!

http://www.getpython3.com/#financial-support

I am also very eager to help, in whatever way that I can, as I use your wonderful program on a daily basis!
yuvallanger is offline   Reply With Quote
Old 06-12-2018, 10:00 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 33,205
Karma: 10205090
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by yuvallanger View Post
We are a year and a half to Python 2's end of life:

https://pythonclock.org/
No there is only a year and half left before python 2 is freed from the shackles of its current maintainers.

https://github.com/naftaliharris/tauthon
https://github.com/kovidgoyal/cpython

Quote:
The number of Python2-supporting development tools and useful modules, used in the development and in user extensions of Calibre, will reduce considerably:

http://python3statement.org/
There is not a single project in that list that calibre or any of its extensions use.

Quote:
Would you be interested at least in supporting both Python 2 and Python 3? There are ways to do it in a reasonable amount of effort.

https://docs.python.org/3/howto/pyporting.html
Whoever wrote that document hasn't the first clue what porting to python 3 actually involves for a project of calibre's complexity.

Quote:
There is also a way for you to apply for financial support from the PSF!

http://www.getpython3.com/#financial-support
That's for libraries and frameworks, not applications, and even then the amount of finance that would be required to port calibre (which is of approximately the same size as python itself) would dwarf all the existing payments, combined.

Quote:
I am also very eager to help, in whatever way that I can, as I use your wonderful program on a daily basis!
And you will be able to continue using it, regardless of what the twits at python.org decide to do.
kovidgoyal is offline   Reply With Quote
Old 06-16-2018, 10:15 PM   #5
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,239
Karma: 83049305
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by yuvallanger View Post
We are a year and a half to Python 2's end of life:

https://pythonclock.org/

The number of Python2-supporting development tools and useful modules, used in the development and in user extensions of Calibre, will reduce considerably:

http://python3statement.org/

Would you be interested at least in supporting both Python 2 and Python 3?
That makes absolutely zero sense. If it was possible to support python 2 and python 3 in a reasonable amount of effort, it would be even easier to just support python 3 alone. Clearly the issue here is a matter of not having python 3 support to begin with, not some especial craving to see it work on python 2 anyway.

Quote:
There are ways to do it in a reasonable amount of effort.

https://docs.python.org/3/howto/pyporting.html
That guide is a propagandistic work written by an idealist with the not-unjustified desire to persuade people to port to python 3. It is, quite understandably, describing how easy it is in the best-case scenario.

calibre is most likely not that best-case scenario.

Quote:
There is also a way for you to apply for financial support from the PSF!

http://www.getpython3.com/#financial-support

I am also very eager to help, in whatever way that I can, as I use your wonderful program on a daily basis!
I'll tell you the best way to help.

You're not the first person to ask for calibre to be ported to python 3. It's been asked a number of times. Kovid's usual response is "if anyone would like to put in the effort to port calibre, I will gladly merge those contributions. But it cannot do so by breaking python 2 support or harming performance, given that python 2 is what it is currently using".

He's also mentioned that the first step would be to make all of calibre's current dependencies run on python 3, which is currently... not the case. e.g. https://github.com/python-mechanize/mechanize

How exactly do you go about saying that calibre needs to be ported to python 3, because its dependencies are going to drop python 2 support, when the truth of the matter is that today, it has dependencies which have never been ported to python 3 to begin with?

I'm shocked, absolutely shocked I tell you, that not one person has ever taken him up on his offer!
Everyone seems to just sort of expect him to magically port calibre to python 3 with a wave of a magic wand, as though it's totally easy to port half a million lines of code which do a great deal of bytes manipulation (the single biggest pain point in python 2 vs python 3).

So by all means let us continue to demand a python 3 port, since apparently it's entirely realistic as long as some procession of users can state their expectations for it.
eschwartz is offline   Reply With Quote
Advert
Old 06-17-2018, 08:38 AM   #6
Adoby
Handy Elephant
Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.
 
Adoby's Avatar
 
Posts: 1,329
Karma: 8222222
Join Date: Dec 2009
Location: Southern Sweden, far out in the quiet woods
Device: Ubuntu LTS, Huawei Mediapad 5, Bouye Likebook Plus
The fact that calibre has a version of python that is included/embedded makes the issue of python versions less important. It would have been a bigger problem if calibre used an external version of python.

Distributing apps together with their dependencies seems to become more common. Many types of containers do this. It greatly reduces problems finding the right dependencies when installing. Free Open Source Software is a prerequisite!

And calibre has done this for quite a while now!
Adoby is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Library migration from MS Word. rizzay Library Management 2 02-04-2015 10:37 AM
Problem connecting to Calibre after migration ChristopherTD Marvin 8 12-11-2013 09:45 AM
python 2.X to 3.X migration? KevinH Calibre 7 02-13-2011 07:56 PM
Calibre library migration kiat Calibre 4 10-22-2010 03:47 AM
Sony Bookstore - migration to ePub amjbrown Sony Reader 2 10-05-2009 12:43 PM


All times are GMT -4. The time now is 11:03 PM.


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