[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#916357: streamtuner2: Unable to install because omitted parenthesis in the print stantment under python3



Package: streamtuner2
Version: 2.2.1+dfsg-1
Severity: normal

Dear Maintainer,

>>> error during upgrade:
Configurazione di streamtuner2 (2.2.1+dfsg-1)...
  File "/usr/share/streamtuner2/try.py", line 10
    print "ERROR"
                ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean
print("ERROR")?

dpkg: errore nell'elaborare il pacchetto streamtuner2 (--configure):
 il sottoprocesso installato pacchetto streamtuner2 script post-installation ha
restituito lo stato di errore 1
Elaborazione dei trigger per menu (2.1.47+b1)...
Si sono verificati degli errori nell'elaborazione:
 streamtuner2
E: Sub-process /usr/bin/dpkg returned an error code (1)

Configurazione di streamtuner2 (2.2.1+dfsg-1)... File "/usr/share/streamtuner2/try.py", line 15 print json.dumps(data) ^ SyntaxError: invalid syntax dpkg: errore nell'elaborare il pacchetto streamtuner2 (--configure): il sottoprocesso installato pacchetto streamtuner2 script post-installation ha restituito lo stato di errore 1 Si sono verificati degli errori nell'elaborazione: streamtuner2 E: Sub-process /usr/bin/dpkg returned an error code (1) >>> After correct file /usr/share/streamtuner2/try.py the installation was
completed.

#! /usr/bin/python3
import sys, json

#print(sys.argv)

# Load the data that PHP sent us
try:
    data = ""
except:
    print("ERROR")
    sys.exit(1)

#print (data)
# Send it to stdout (to PHP)
print(json.dumps(data))



-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (700, 'unstable'), (600, 'testing'), (500, 'stable-updates'), (500, 'stable'), (100, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.8-custom (SMP w/4 CPU cores; PREEMPT)
Locale: LANG=it_IT, LC_CTYPE=it_IT (charmap=ISO-8859-1), LANGUAGE=it (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages streamtuner2 depends on:
ii  python3            3.7.1-2
ii  python3-distutils  3.7.1-1
ii  python3-gi         3.30.2-1
ii  python3-lxml       4.2.5-1
ii  python3-pil        5.3.0-1
ii  python3-pyquery    1.2.9-3
ii  python3-requests   2.20.0-2

Reply to: