Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #11989 > unrolled thread
| Started by | Andreas Tille <andreas@an3as.eu> |
|---|---|
| First post | 2019-11-08 15:50 +0100 |
| Last post | 2019-11-08 16:10 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.debian.maint.python
[Help] graphlan: Python2 removal in sid/bullseye Andreas Tille <andreas@an3as.eu> - 2019-11-08 15:50 +0100
Re: [Help] graphlan: Python2 removal in sid/bullseye Scott Talbert <swt@techie.net> - 2019-11-08 16:10 +0100
| From | Andreas Tille <andreas@an3as.eu> |
|---|---|
| Date | 2019-11-08 15:50 +0100 |
| Subject | [Help] graphlan: Python2 removal in sid/bullseye |
| Message-ID | <z0dKh-7l9-1@gated-at.bofh.it> |
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
[toc] | [next] | [standalone]
| From | Scott Talbert <swt@techie.net> |
|---|---|
| Date | 2019-11-08 16:10 +0100 |
| Message-ID | <z0e3D-7Hy-5@gated-at.bofh.it> |
| In reply to | #11989 |
On Fri, 8 Nov 2019, Andreas Tille wrote: > 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 Try converting the zip(x) to list(zip(x)). See: https://stackoverflow.com/questions/27431390/typeerror-zip-object-is-not-subscriptable/27431433 Scott
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.maint.python
csiph-web