sandsifter icon indicating copy to clipboard operation
sandsifter copied to clipboard

Python 3 Port

Open rigred opened this issue 5 years ago • 16 comments

Any idea when move to python3 will be done ?

Originally posted by @shirishag75 in https://github.com/rigred/sandsifter/issues/3#issuecomment-454875377

rigred avatar Jan 17 '19 14:01 rigred

@shirishag75 Branch https://github.com/rigred/sandsifter/tree/python3 ports this project to python3 It probably still has bugs so please give it a test.

rigred avatar Jan 17 '19 14:01 rigred

But for the most part everything in sifter.py is working with python3 for starters

rigred avatar Jan 17 '19 14:01 rigred

So the python3 branch is not ready for master yet? FreeBSD switched to using Python 3 by default, it still has Python 2.7 too.

rene0 avatar Aug 03 '19 10:08 rene0

The pycurses UI framework as used by sandsifter has some issues for the summarize tool. The sifter aspect is working fine though, but it uses some dirty workarounds, I will see if I can get this properly sorted.

rigred avatar Aug 03 '19 13:08 rigred

No hurry :) I restricted the FreeBSD port to Python 2.7 for now.

rene0 avatar Aug 03 '19 13:08 rene0

@rigred Since Debian is removing python2 support, I plan to package the python3 version of sandsifter to replace the current version.

[1] https://wiki.debian.org/Python/2Removal

szlin avatar Nov 29 '19 02:11 szlin

What I have been seeing is removal or/and updates to the leaf packages before the real transition happens. Probably because lot of breakage is expected as and when that happens. Similar to freebsd both python 2.7 and 3.8 are living in testing atm.

$ python --version
Python 2.7.17

$ python3 --version
Python 3.7.5

One would has to see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=931659 as well as https://lists.debian.org/debian-python/2019/11/ and later to have a sense of what's happening in Debian. As can be seen both the actions and the discussions are intense around python2 removal. Will it all happen before bullsye or some ofter is the issue as Debian likes to take time to 'bake' whatever gets included in Debian bullseye. but for sure there will be a python 2 removal.

shirishag75 avatar Nov 29 '19 10:11 shirishag75

FWIW, this mail gives an overview of all the major distros. and their python 2 removal in the linux world. https://lists.debian.org/debian-python/2019/11/msg00066.html

shirishag75 avatar Nov 29 '19 12:11 shirishag75

The sandsifter will be removed on 13 Dec [1] due to pyton2 removal in the Debian sid/bullseye archive. [1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=938432

The sifter.py has migrated to python3, but other python scripts stay in python2. Do you have a timetable for this?

szlin avatar Dec 09 '19 07:12 szlin

FreeBSD plans to remove Python 2.7 itself on 2020-12-31 (one year after upstream end-of-life), so everything depending on Python 2 must either be converted or removed by then.

rene0 avatar Mar 30 '20 18:03 rene0

I'm very busy due to work obligations as of recent. But now that I'm stuck home more often I'll try and get this fixed up in due course.

rigred avatar Apr 07 '20 21:04 rigred

OK, thanks for your efforts.

rene0 avatar Apr 08 '20 19:04 rene0

Great to hear that. Looking forward to it! In debian, the package was removed from Debian testing already and it's uninstallable in Debian unstable until it's ported to Python 3. cc @sbrun

rhertzog avatar Apr 10 '20 16:04 rhertzog

Any updates on the progress of the python3 port?

sabastiaan avatar Aug 17 '20 20:08 sabastiaan

Hi, is there any news on the Python 3 progress? FreeBSD will be removing most (if not all) Python 2 packages by the end of 2020.

rene0 avatar Sep 24 '20 14:09 rene0

ping any updates, 2 months amd still no comment by the developer :(

FWIW, python2 is no more,

$ python3 --version
Python 3.9.1

shirishag75 avatar Dec 25 '20 21:12 shirishag75