Discussion:
Bug#936652: Please port GraPhlAn to Python3 (Was: Bug#936652: graphlan: Python2 removal in sid/bullseye)
(too old to reply)
Andreas Tille
2019-10-08 15:30:01 UTC
Permalink
Control: forwarded -1 Nicola Segata <***@unitn.it>
Control: tags -1 upstream

Hi Nicola,

as you might probably know Python2 is End Of Live[1] and Debian is
actively working on removing Python2 code from the distribution. So
Debian 11 will come without Python2. This means we will either be
able to port all software packages to Python3 or the package will be
removed.

Do you think it is feasible for you to port GraPhlAn to Python3? May be
by using 2to3 which does quite some work automatically? If you need any
help please do not hesitate to ask.

Kind regards

Andreas.


[1] https://pythonclock.org/
--
http://fam-tille.de
Andreas Tille
2019-11-08 12:40:01 UTC
Permalink
Hi again Nicola,

may be you have missed my last mail. Can you please confirm that you
are working on a Python3 port or whether we need to try hard as
Debian maintainers to try the port ourselves?

Kind regards, Andreas.
Post by Andreas Tille
Control: tags -1 upstream
Hi Nicola,
as you might probably know Python2 is End Of Live[1] and Debian is
actively working on removing Python2 code from the distribution. So
Debian 11 will come without Python2. This means we will either be
able to port all software packages to Python3 or the package will be
removed.
Do you think it is feasible for you to port GraPhlAn to Python3? May be
by using 2to3 which does quite some work automatically? If you need any
help please do not hesitate to ask.
Kind regards
Andreas.
[1] https://pythonclock.org/
--
http://fam-tille.de
--
http://fam-tille.de
Andreas Tille
2019-11-08 13:10:01 UTC
Permalink
Control: tags -1 help

Hi,

I started an attempt to port graphlan to Python3 in Git[1] but its
autopkgtest throws errors:



Running test script ./IBD_biogeography/run.sh .
Traceback (most recent call last):
File "/usr/bin/graphlan_annotate", line 26, in <module>
from src.graphlan_lib import CircTree as CTree
File "/usr/share/graphlan/src/graphlan_lib.py", line 99, in <module>
legal_options = set(zip(*clade_attr+ext_attr+int_attr+structural_attr+global_graphical_attr+branch_attr+leg_attr)[0]) | set(['class'])
TypeError: 'zip' object is not subscriptable
Traceback (most recent call last):
File "/usr/bin/graphlan", line 29, in <module>
from src.graphlan_lib import CircTree as CTree
File "/usr/share/graphlan/src/graphlan_lib.py", line 99, in <module>
legal_options = set(zip(*clade_attr+ext_attr+int_attr+structural_attr+global_graphical_attr+branch_attr+leg_attr)[0]) | set(['class'])
TypeError: 'zip' object is not subscriptable



Any hint how to fix this?

Kind regards

Andreas.


[1] https://salsa.debian.org/med-team/graphlan
--
http://fam-tille.de
Loading...