Package: python-minimal
Version: 2.7.13-2
Severity: normal

Dear Maintainer,

After setting /usr/bin/python to point to python3 via alternatives the
next update of debconf failed with:

  File "/usr/bin/pyclean", line 63
    except (IOError, OSError), e:
                             ^
SyntaxError: invalid syntax

and

  File "/usr/bin/pycompile", line 35, in <module>
    from debpython.version import SUPPORTED, debsorted, vrepr, \
  File "/usr/share/python/debpython/version.py", line 24, in <module>
    from ConfigParser import SafeConfigParser
ImportError: No module named 'ConfigParser'

pyversions also fails with:

  File "/usr/bin/pyversions", line 20
    except IOError, msg:
                  ^
SyntaxError: invalid syntax


Changing the first line of all scripts to

#! /usr/bin/python2

helped. They are apparently not compatible with python3.

Best regards,
Matthias


-- System Information:
Debian Release: 9.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-2-amd64 (SMP w/1 CPU core)
Shell: /bin/sh linked to /bin/dash
Init:  systemd (via /run/systemd/system)

Versions of packages python-minimal depends on:
ii  dpkg               1.18.24
ii  python2.7-minimal  2.7.13-2

Versions of packages python-minimal recommends:
ii  python             2.7.13-2

python-minimal suggests no packages.

-- debconf information excluded

Reply via email to