[Debian-med-packaging] Bug#939181: [Help] Re: Bug#939181: cycle: Python2 removal in sid/bullseye
Andrey Rahmatullin
wrar at debian.org
Thu Sep 12 09:57:32 BST 2019
On Thu, Sep 12, 2019 at 09:17:08AM +0200, Andreas Tille wrote:
> > > $ cycle
> > > Traceback (most recent call last):
> > > File "/usr/bin/cycle", line 12, in <module>
> > > from dialogs import *
> > > File "/usr/share/cycle/dialogs.py", line 8, in <module>
> > > from cal_year import cycle, Val
> > > File "/usr/share/cycle/cal_year.py", line 9, in <module>
> > > from dialogs import Note_Dlg
> > > ImportError: cannot import name 'Note_Dlg' from 'dialogs' (/usr/share/cycle/dialogs.py)
> > There are circular imports in the code so you most likely broke that by
> > reordering imports in various files.
>
> s/you most likely broke/2to3 most likely broke/
2to3 doesn't do that. You mentioned autopep8, it could do that.
> > "from cal_year import *; from dialogs import *" works, the reverse
> > doesn't, so the /usr/bin/cycle code is definitely problematic, not sure
> > about other changes.
>
> I can not confirm that
>
> from cal_year import *
>
> works at all. It works in the unpatched Python2 version.
I was just saying that (in the unpatched Python2 version) "from cal_year
import *; from dialogs import *" works, the reverse doesn't, and the
patched version contains the reverse.
> git clone https://salsa.debian.org/med-team/cycle
> cd cycle
> echo "from cal_year import *" | python
> quilt push -a
> echo "from cal_year import *" | python3
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "/home/andreas/debian-maintain/salsa/med-team/cycle/cal_year.py", line 9, in <module>
> from dialogs import Note_Dlg
> File "/home/andreas/debian-maintain/salsa/med-team/cycle/dialogs.py", line 12, in <module>
> from cal_year import cycle, Val
> ImportError: cannot import name 'cycle' from 'cal_year' (/home/andreas/debian-maintain/salsa/med-team/cycle/cal_year.py)
>
>
> So may be I misinterpreted your hint but even reverting the reordering
> of 2to3 in my latest commit does not help.
I also said that other changes may be problematic too. I didn't check
them.
--
WBR, wRAR
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 894 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-med-packaging/attachments/20190912/5d5d91d7/attachment.sig>
More information about the Debian-med-packaging
mailing list