Subject: Re: bug#528: python3-reportbug: fails to install due to syntax error

From: Mark Hindley <[email-masked]>
Date: Sat, 5 Dec 2020 10:28:08 +0000

Control: tags -1 moreinfo

Gerard,

Thanks for this. However, can't yet reproduce it.

On Sat, Dec 05, 2020 at 12:03:34AM +0100, Gerard H. Pille wrote:
> Setting up python3-reportbug (7.8.0+devuan1) ...
>   File "/usr/lib/python3/dist-packages/reportbug/utils.py", line 1214
>     init += f', PID 1: {pf.read().strip()}'
>                                           ^
> SyntaxError: invalid syntax

Strange. This seems to imply that the python interpreter doesn understand the
f-string.  Presumably it is running under python2? What python2 pacakges do you
have installed?

 dpkg -l | grep python2 should producs a list.

Thanks

Mark