Path: csiph.com!news.samoylyk.net!news.albasani.net!tahina.priv.at!bofh.it!news.nic.it!robomod From: Andrey Rahmatullin Newsgroups: linux.debian.bugs.dist,linux.debian.maint.python Subject: Bug#939181: [Help] Re: Bug#939181: cycle: Python2 removal in sid/bullseye Date: Thu, 12 Sep 2019 11:10:02 +0200 Message-ID: References: X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Thu Sep 12 09:00:10 2019 Old-Return-Path: X-Spam-Flag: NO X-Spam-Score: -4 Reply-To: Andrey Rahmatullin , 939181@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: Debian Med Packaging Team X-Debian-Pr-Message: followup 939181 X-Debian-Pr-Package: src:cycle X-Debian-Pr-Keywords: help sid bullseye X-Debian-Pr-Source: cycle X-Spam-Bayes: score:0.0000 Tokens: new, 7; hammy, 150; neutral, 72; spammy, 0. spammytokens: hammytokens:0.000-+--python3, 0.000-+--H*ct:application, 0.000-+--H*ct:protocol, 0.000-+--H*ct:micalg, 0.000-+--H*ct:signed Dkim-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=wrar.name; s=20160710; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=rWsqkI9IGbGeX264AK2qunnzk5aE1l86IhP0bu7FbVk=; b=2YqEW8eki5YtQgpC2LcynbaL3 3IqzC8WQjLM2OmYNgC9+UYsOhKWnP2yIMvKujQql6f8m2GNbVdSZg6ViX5sSocLFe6lkYf5oNd52t C2c5f5MXkLlrdk4Iili7FW7KxFmWmavb6TmDT8E3L/XZzp5sQt8HYMF7FppRRq6nAZMas=; MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="vOmOzSkFvhd7u8Ms" Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-Debian-Message: from BTS X-Mailing-List: archive/latest/1558182 List-ID: List-URL: Approved: robomod@news.nic.it Lines: 83 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: Antonio Terceiro , 939181@bugs.debian.org, debian-python@lists.debian.org X-Original-Date: Thu, 12 Sep 2019 13:57:32 +0500 X-Original-Message-ID: <20190912085732.GD1706@belkar.wrar.name> X-Original-References: <20190911123354.GA16873@debian.org> <20190911141234.7hwnsil5bp2m6cew@an3as.eu> <20190911143233.GC1706@belkar.wrar.name> <20190912071708.5olnqppyshvtus2n@an3as.eu> <20190912071708.5olnqppyshvtus2n@an3as.eu> Xref: csiph.com linux.debian.bugs.dist:974809 linux.debian.maint.python:11793 --vOmOzSkFvhd7u8Ms Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 > > > from dialogs import * > > > File "/usr/share/cycle/dialogs.py", line 8, in > > > from cal_year import cycle, Val > > > File "/usr/share/cycle/cal_year.py", line 9, in > > > 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. >=20 > 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. >=20 > I can not confirm that >=20 > from cal_year import * >=20 > 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 "", line 1, in > File "/home/andreas/debian-maintain/salsa/med-team/cycle/cal_year.py", = line 9, in > from dialogs import Note_Dlg > File "/home/andreas/debian-maintain/salsa/med-team/cycle/dialogs.py", l= ine 12, in > from cal_year import cycle, Val > ImportError: cannot import name 'cycle' from 'cal_year' (/home/andreas/de= bian-maintain/salsa/med-team/cycle/cal_year.py) >=20 >=20 > 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. --=20 WBR, wRAR --vOmOzSkFvhd7u8Ms Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJgBAABCgBLFiEEolIP6gqGcKZh3YxVM2L3AxpJkuEFAl16CHwtFIAAAAAAFQAP cGthLWFkZHJlc3NAZ251cGcub3Jnd3JhckBkZWJpYW4ub3JnAAoJEDNi9wMaSZLh DpAP+PVmTEFhmOKx+xMAB2RmN0qKwsExUGvsWUhWyvJ5Q1EaZH5+axKn4y0OW46E 1aSvsPZWb9nzZ7KTo0ZP+b/kCnoMXAgFPRPzVeIKSGIaLcqwDeP/ZFLapdi3ICDY vOBxuzkdp3w0Q8jEuB9fFuX8aCX3h23fDmvj4mzMyN/Viy0Pc+fJXyMpAC1aIymy WmGXtRVeZGUGhAy0GtLqCvasjkJWr2f1YV0rZ4d4DqNkq+siVvDwtW0To4as77yb v3QeUDTs8lAtoxrIN90ysBq4eO0Pqg71RYsuhnkaWJhgT+JoOHmoZvKm3uOIQpc7 liWdwucmF6qkpjxvpRcmHN3y2C890HbsPnZMlWQpGI2XmtzEjbRiEk6L2Yw1ykUK zBbzEgxyugtcM0aNKFYQ48HBLmAd04COBjQYTwB3ImPSEOA4EPZfEtF4DTRgzfXP a9XZh3CvKlm/0+QUampfI8IS6pFLjCbYW8eRZasJFY09Xn9YJGReBouIAfxVOVgC M4Y5A4IvVxgLxD287HVGqCObfOMSANZy5JKZfx1SerHwKBY7k8Qz8phSvew9gEBF JFhZNHl7vMbjFA+pzXhRT4+krjyuCNWIRskcu2NkwK77oPdAbQDQx+VfUJBUmZQG of6Zn5fShlHr1caTiN5GTZJM4NF7P2jzqKEr1sNYq2EyzZ8= =UB9Y -----END PGP SIGNATURE----- --vOmOzSkFvhd7u8Ms--