Package: python3.4
Version: 3.4.2-1+deb8u3

When I try to upgrade my packages it fails due to f-string in python3.4
code:

% LANG=C sudo apt full-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up python3.4 (3.4.2-1+deb8u3) ...
  File "/usr/lib/python3.4/http/client.py", line 1014
    raise InvalidURL(f"URL can't contain control characters. {url!r} "
                                                                     ^
SyntaxError: invalid syntax
dpkg: error processing package python3.4 (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 python3.4
E: Sub-process /usr/bin/dpkg returned an error code (1)
LANG=C sudo apt full-upgrade  5,37s user 1,38s system 83% cpu 8,085 total
% cat /etc/debian_version
8.11

I suggest to replace the f-string to one of the two supported mechanism
in < python3.6.

I think the surroundings (libc, kernel, ...) are unimportant here.

kind regards,

Andreas Bießmann

Reply via email to