You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ubuntu 16.04.6 LTS
Python 3.5.2 (default, Nov 12 2018, 13:43:14)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
import postgresql
db= postgresql.open("pq://localhost/weather")
Traceback (most recent call last):
File "", line 1, in
File "/home/div/work/weather/db/py/fe/postgresql/init.py", line 92, in open
c.connect()
File "/home/div/work/weather/db/py/fe/postgresql/driver/pq3.py", line 2427, in connect
self._establish()
File "/home/div/work/weather/db/py/fe/postgresql/driver/pq3.py", line 2559, in _establish
self.version_info = pg_version.normalize(pg_version.split(sv))
File "/home/div/work/weather/db/py/fe/postgresql/versionstring.py", line 28, in split
vlist = [int(x or '0') for x in v[:-1]]
File "/home/div/work/weather/db/py/fe/postgresql/versionstring.py", line 28, in
vlist = [int(x or '0') for x in v[:-1]]
ValueError: invalid literal for int() with base 10: '2 (Ubuntu 11'
The text was updated successfully, but these errors were encountered:
The debian and ubuntu PostgreSQL packages ship with a modified postgresql version string. I would recommend using a different PostgreSQL package, install from source, or use debian's py-postgresql package accommodating for the modification local to their distribution.
Ubuntu 16.04.6 LTS
Python 3.5.2 (default, Nov 12 2018, 13:43:14)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
The text was updated successfully, but these errors were encountered: