2013-05-22 10:37:08 |
Ulf Mehlig |
description |
Connection attempts to databases on localhost and on remote hosts fail with the following error messages (user name, password and database name substituted by placeholders):
Python 3.3.1 (default, Apr 17 2013, 22:30:32)
[GCC 4.7.3] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import postgresql
>>> db = postgresql.open("pq://theusername:thepasswd@localhost/thedatabasename")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3/dist-packages/postgresql/__init__.py", line 88, in open
c.connect()
File "/usr/lib/python3/dist-packages/postgresql/driver/pq3.py", line 2559, in connect
sd = self.sys.startup_data()
File "/usr/lib/python3/dist-packages/postgresql/lib/__init__.py", line 398, in __getattr__
bs = BoundSymbol(sym, db)
File "/usr/lib/python3/dist-packages/postgresql/lib/__init__.py", line 288, in __init__
ps = database.prepare(symbol)
File "/usr/lib/python3/dist-packages/postgresql/driver/pq3.py", line 2352, in prepare
ps._fini()
File "/usr/lib/python3/dist-packages/postgresql/driver/pq3.py", line 1482, in _fini
self._output_io = typio.resolve_descriptor(tupdesc, 1)
File "/usr/lib/python3/dist-packages/postgresql/driver/pq3.py", line 220, in resolve_descriptor
(self.resolve(x[3]) or (None, None))[index] for x in desc
File "/usr/lib/python3/dist-packages/postgresql/driver/pq3.py", line 220, in <listcomp>
(self.resolve(x[3]) or (None, None))[index] for x in desc
File "/usr/lib/python3/dist-packages/postgresql/driver/pq3.py", line 243, in resolve
typio = builtins(typid)
File "/usr/lib/python3/dist-packages/postgresql/types/io/__init__.py", line 96, in resolve
module_io.update(load(io).oid_to_io)
File "/usr/lib/python3/dist-packages/postgresql/types/io/__init__.py", line 89, in load
return __import__(__name__ + '.' + relmod, fromlist = True, level = 1)
KeyError: "'__name__' not in globals"
This used to work in 12.10. Accessing the database is possible by using other tools (e.g., psql -h 127.0.0.1 -U therusername the databasename). If more information is necessary, please let me know.
ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: python3-postgresql 1.0.2-1build2
ProcVersionSignature: Ubuntu 3.8.0-21.32-generic 3.8.8
Uname: Linux 3.8.0-21-generic x86_64
ApportVersion: 2.9.2-0ubuntu8
Architecture: amd64
Date: Wed May 22 07:00:41 2013
InstallationDate: Installed on 2013-03-07 (75 days ago)
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Release amd64 (20121017.5)
MarkForUpload: True
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
XDG_RUNTIME_DIR=<set>
LANG=en_GB.UTF-8
SHELL=/bin/bash
SourcePackage: py-postgresql
UpgradeStatus: Upgraded to raring on 2013-04-27 (24 days ago) |
Connection attempts to databases on localhost and on remote hosts fail with the following error messages (user name, password and database name substituted by placeholders):
Python 3.3.1 (default, Apr 17 2013, 22:30:32)
[GCC 4.7.3] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import postgresql
>>> db = postgresql.open("pq://theusername:thepasswd@localhost/thedatabasename")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3/dist-packages/postgresql/__init__.py", line 88, in open
c.connect()
File "/usr/lib/python3/dist-packages/postgresql/driver/pq3.py", line 2559, in connect
sd = self.sys.startup_data()
File "/usr/lib/python3/dist-packages/postgresql/lib/__init__.py", line 398, in __getattr__
bs = BoundSymbol(sym, db)
File "/usr/lib/python3/dist-packages/postgresql/lib/__init__.py", line 288, in __init__
ps = database.prepare(symbol)
File "/usr/lib/python3/dist-packages/postgresql/driver/pq3.py", line 2352, in prepare
ps._fini()
File "/usr/lib/python3/dist-packages/postgresql/driver/pq3.py", line 1482, in _fini
self._output_io = typio.resolve_descriptor(tupdesc, 1)
File "/usr/lib/python3/dist-packages/postgresql/driver/pq3.py", line 220, in resolve_descriptor
(self.resolve(x[3]) or (None, None))[index] for x in desc
File "/usr/lib/python3/dist-packages/postgresql/driver/pq3.py", line 220, in <listcomp>
(self.resolve(x[3]) or (None, None))[index] for x in desc
File "/usr/lib/python3/dist-packages/postgresql/driver/pq3.py", line 243, in resolve
typio = builtins(typid)
File "/usr/lib/python3/dist-packages/postgresql/types/io/__init__.py", line 96, in resolve
module_io.update(load(io).oid_to_io)
File "/usr/lib/python3/dist-packages/postgresql/types/io/__init__.py", line 89, in load
return __import__(__name__ + '.' + relmod, fromlist = True, level = 1)
KeyError: "'__name__' not in globals"
This used to work in 12.10. Accessing the database is possible by using other tools (e.g., psql -h 127.0.0.1 -U therusername the databasename). The postgres server is postgresql-9.1 (9.1.9-1ubuntu1). If more information is necessary, please let me know.
ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: python3-postgresql 1.0.2-1build2
ProcVersionSignature: Ubuntu 3.8.0-21.32-generic 3.8.8
Uname: Linux 3.8.0-21-generic x86_64
ApportVersion: 2.9.2-0ubuntu8
Architecture: amd64
Date: Wed May 22 07:00:41 2013
InstallationDate: Installed on 2013-03-07 (75 days ago)
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Release amd64 (20121017.5)
MarkForUpload: True
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
XDG_RUNTIME_DIR=<set>
LANG=en_GB.UTF-8
SHELL=/bin/bash
SourcePackage: py-postgresql
UpgradeStatus: Upgraded to raring on 2013-04-27 (24 days ago) |
|