Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.bugs.dist > #974787
| From | Andreas Tille <tille@debian.org> |
|---|---|
| Newsgroups | linux.debian.bugs.dist, linux.debian.maint.python |
| Subject | Bug#939181: [Help] Re: Bug#939181: cycle: Python2 removal in sid/bullseye |
| Date | 2019-09-12 09:30 +0200 |
| Message-ID | <yFryx-2BZ-1@gated-at.bofh.it> (permalink) |
| References | (1 earlier) <yFaem-7xs-3@gated-at.bofh.it> <yFbDr-ee-7@gated-at.bofh.it> <yFbWN-lQ-9@gated-at.bofh.it> <yBKT7-8wu-11@gated-at.bofh.it> <yFbWN-lQ-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Cross-posted to 2 groups.
Hi Andrey,
On Wed, Sep 11, 2019 at 07:32:33PM +0500, Andrey Rahmatullin 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/
I admit I did not really checked what 2to3 created but I can assure you
I did not simply fired up an editor and had fun reverting some import
sequences.
> "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.
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.
Kind regards
Andreas.
--
http://fam-tille.de
Back to linux.debian.bugs.dist | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Bug#939181: cycle: Python2 removal in sid/bullseye Scott Talbert <swt@techie.net> - 2019-09-02 05:10 +0200
Bug#939181: cycle: Python2 removal in sid/bullseye Antonio Terceiro <terceiro@debian.org> - 2019-09-11 14:50 +0200
Bug#939181: [Help] Re: Bug#939181: cycle: Python2 removal in sid/bullseye Andreas Tille <andreas@an3as.eu> - 2019-09-11 16:20 +0200
Bug#939181: [Help] Re: Bug#939181: cycle: Python2 removal in sid/bullseye Andrey Rahmatullin <wrar@debian.org> - 2019-09-11 17:10 +0200
Bug#939181: [Help] Re: Bug#939181: cycle: Python2 removal in sid/bullseye Andreas Tille <tille@debian.org> - 2019-09-12 09:30 +0200
Bug#939181: [Help] Re: Bug#939181: cycle: Python2 removal in sid/bullseye Andrey Rahmatullin <wrar@debian.org> - 2019-09-12 11:10 +0200
Re: [Help] Re: Bug#939181: cycle: Python2 removal in sid/bullseye Andreas Tille <andreas@an3as.eu> - 2019-09-12 16:10 +0200
Bug#939181: [Help] Re: Bug#939181: cycle: Python2 removal in sid/bullseye peter green <plugwash@p10link.net> - 2019-09-12 21:50 +0200
Bug#939181: [Help] Re: Bug#939181: cycle: Python2 removal in sid/bullseye Andreas Tille <tille@debian.org> - 2019-09-13 12:10 +0200
Bug#939181: [Help] Re: Bug#939181: cycle: Python2 removal in sid/bullseye peter green <plugwash@p10link.net> - 2019-09-15 16:00 +0200
Bug#939181: [Help] Re: Bug#939181: cycle: Python2 removal in sid/bullseye Andreas Tille <andreas@an3as.eu> - 2019-09-16 11:50 +0200
Bug#939181: [Help] Re: Bug#939181: cycle: Python2 removal in sid/bullseye peter green <plugwash@p10link.net> - 2019-09-17 02:20 +0200
csiph-web