Package: lyx-common
Version: 2.3.0-1
Severity: grave
Justification: renders package unusable
Dear Maintainer,
Either lyx-common scripts should be python neutral - run both with python 2.7
and python 3.x or explicitely specify python3 in the shebang line.
File "/usr/share/lyx/scripts/convertDefault.py", line 68
print(sys.argv[0], 'ERROR', file=sys.stderr)
^
SyntaxError: invalid syntax
File "/usr/share/lyx/scripts/fig_copy.py", line 23
print("Usage: fig_copy.py <from file> <to file>", file=sys.stderr)
^
SyntaxError: invalid syntax
dpkg: error processing package lyx-common (--configure):
installed lyx-common package post-installation script subprocess returned
error exit status 101
An example:
$ python
Python 2.7.14+ (default, Feb 6 2018, 19:12:18)
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> print("Usage: fig_copy.py <from file> <to file>", file=sys.stderr)
File "<stdin>", line 1
print("Usage: fig_copy.py <from file> <to file>", file=sys.stderr)
^
SyntaxError: invalid syntax
>>>
$ python3
Python 3.6.4+ (default, Feb 12 2018, 08:25:03)
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> print("Usage: fig_copy.py <from file> <to file>", file=sys.stderr)
Usage: fig_copy.py <from file> <to file>
>>>
-- System Information:
Debian Release: buster/sid
APT prefers unstable
APT policy: (800, 'unstable'), (500, 'unstable-debug')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.15.0-1-amd64 (SMP w/6 CPU cores)
Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8),
LANGUAGE=en_DK.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages lyx-common depends on:
ii python 2.7.14-4
ii tex-common 6.09
Versions of packages lyx-common recommends:
iu lyx 2.3.0-1
lyx-common suggests no packages.
-- no debconf information
----
This mail was virus scanned and spam checked before delivery.
This mail is also DKIM signed. See header dkim-signature.