Package: python3-postgresql
Version: 1.1.0-2+b4
Severity: grave
Justification: renders package unusable
Split of Versionstring fails:
db = postgresql.open(database='marten',host='10.8.2.1',port=5431)
# postgresql-v10 runs on port 5431 on that machine
->
File "/usr/lib/python3/dist-packages/postgresql/versionstring.py", line 28,
in <listcomp>
vlist = [int(x or '0') for x in v[:-1]]
ValueError: invalid literal for int() with base 10: '2 (Debian 10'
My solution:
Changed line from
v = vstr.strip().split('.')
to
v = vstr.strip().split(' ')[0].split('.')
Tests with that changed file run well with different databases on postgresql
v9.4, v9.6 and 10.2
on my systems.
-- System Information:
Debian Release: 9.3
APT prefers stable
APT policy: (990, 'stable'), (500, 'stable-updates'), (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 4.9.0-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages python3-postgresql depends on:
ii libc6 2.24-11+deb9u1
ii libjs-jquery 3.2.1-1
ii libjs-underscore 1.8.3~dfsg-1
ii libpython3-stdlib 3.5.3-1
ii python3 3.5.3-1
python3-postgresql recommends no packages.
python3-postgresql suggests no packages.
-- no debconf information