Devuan bug report logs - #528
python3-reportbug: fails to install due to syntax error

Packages: python3-reportbug, severity:, version:, 7.8.0+devuan1, grave; Maintainer for python3-reportbug is Mark Hindley <mark@hindley.org.uk>; Source for python3-reportbug is src:reportbug. Maintainer for severity: is (unknown); Maintainer for version: is (unknown); Maintainer for 7.8.0+devuan1 is (unknown); Maintainer for grave is (unknown);

Reported by: "Gerard H. Pille" <ghpille@hotmail.com>

Date: Fri, 4 Dec 2020 23:18:02 UTC

Severity: normal

Tags: invalid, moreinfo

Done: Mark Hindley <mark@hindley.org.uk>

Full log


Message #20 received at 528@bugs.devuan.org (full text, mbox, reply):

Received: (at 528) by bugs.devuan.org; 5 Dec 2020 16:50:03 +0000
Return-Path: <mark@hindley.org.uk>
Delivered-To: devuanbugs@dyne.org
Received: from tupac3.dyne.org [195.169.149.119]
	by doc.devuan.org with IMAP (fetchmail-6.4.0.beta4)
	for <debbugs@localhost> (single-drop); Sat, 05 Dec 2020 16:50:03 +0000 (UTC)
Received: from mx.hindley.org.uk (193-36-131-5.cfwn.uk [193.36.131.5])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by vm6.ganeti.dyne.org (Postfix) with ESMTPS id CBF84F60917
	for <528@bugs.devuan.org>; Sat,  5 Dec 2020 17:41:59 +0100 (CET)
Received: from apollo.hindleynet ([192.168.1.3] helo=hindley.org.uk)
	by mx.hindley.org.uk with smtp (Exim 4.84_2)
	(envelope-from <mark@hindley.org.uk>)
	id 1kladA-0000wR-Tj; Sat, 05 Dec 2020 16:41:57 +0000
Received: (nullmailer pid 23152 invoked by uid 1000);
	Sat, 05 Dec 2020 16:41:53 -0000
Date: Sat, 5 Dec 2020 16:41:53 +0000
From: Mark Hindley <mark@hindley.org.uk>
To: "Gerard H. Pille" <ghpille@hotmail.com>
Cc: 528@bugs.devuan.org
Subject: Re: bug#528: python3-reportbug: fails to install due to syntax error
Message-ID: <X8u4UcDlR4/j48Lp@hindley.org.uk>
References: <AM5PR04MB3185CDCB518BFB41FDA24421BCF10@AM5PR04MB3185.eurprd04.prod.outlook.com>
 <X8tguFoiYIJcJzad@hindley.org.uk>
 <AM5PR04MB318534446BB5CFC205546420BCF00@AM5PR04MB3185.eurprd04.prod.outlook.com>
 <X8uLoz1p8Ix7tK0Q@hindley.org.uk>
 <AM5PR04MB31850FC0B2AF156AE0C338B8BCF00@AM5PR04MB3185.eurprd04.prod.outlook.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <AM5PR04MB31850FC0B2AF156AE0C338B8BCF00@AM5PR04MB3185.eurprd04.prod.outlook.com>
X-Spam-Status: No, score=0.4 required=5.0 tests=RDNS_DYNAMIC,SPF_PASS
	autolearn=disabled version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org
Gerard,

On Sat, Dec 05, 2020 at 02:34:21PM +0100, Gerard H. Pille wrote:
> Mark Hindley wrote:
> > 
> > Does /usr/bin/python exist? Which package does it belong to? Is it a symlink,
> > and if so, what to?
> 
> ghp-amdphIIx4a:/root
> # ls -al /usr/bin/python
> lrwxrwxrwx 1 root root 9 24 jan  2017 /usr/bin/python -> python2.7
> 
> According to the date, this is not my doing.  System was installed a year
> ago on a disk that hadn't seen Linux before.

Does it belong to any installed package? 'dpkg -S /usr/bin/python' should tell
you.

Even with a /usr/bin/python -> python2 symlink I am unable to get the postinst
to fail as it does in your case. Somehow you appear to have a python2 interpreter
which is trying to compile python3 code. I can't see how that could happen.

Can you check your python3 versions? I get:

 $ python3 -V
 Python 3.9.1rc1

Any extraneous symlinks in /usr/local/bin or elsewhere in the $PATH?

Thanks.

Mark

Send a report that this bug log contains spam.


Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.

Devuan Bugs Owner <owner@bugs.devuan.org>.
Last modified: Mon Nov 25 04:27:41 2024;