Activity log for bug #1182835

Date Who What changed Old value New value Message
2013-05-22 10:30:48 Ulf Mehlig bug added bug
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)
2013-05-29 18:39:07 Launchpad Janitor py-postgresql (Ubuntu): status New Confirmed
2013-10-11 10:45:19 Patrik Lundquist tags amd64 apport-bug raring amd64 apport-bug raring saucy
2013-10-11 10:46:19 Patrik Lundquist bug added subscriber Patrik Lundquist
2013-10-11 11:10:50 Patrik Lundquist attachment added Patch for postgresql/types/io/__init__.py https://bugs.launchpad.net/ubuntu/+source/py-postgresql/+bug/1182835/+attachment/3874224/+files/__init__.patch
2013-10-11 12:21:47 Ubuntu Foundations Team Bug Bot tags amd64 apport-bug raring saucy amd64 apport-bug patch raring saucy
2013-10-11 12:21:55 Ubuntu Foundations Team Bug Bot bug added subscriber Ubuntu Review Team
2013-10-11 22:42:25 Alberto Salvia Novella py-postgresql (Ubuntu): status Confirmed Triaged
2013-10-11 22:42:41 Alberto Salvia Novella py-postgresql (Ubuntu): importance Undecided High
2013-10-11 22:42:46 Alberto Salvia Novella bug added subscriber Alberto Salvia Novella
2019-07-15 16:44:41 William Grzybowski py-postgresql (Ubuntu): status Triaged Fix Released
2019-07-15 17:06:21 Alberto Salvia Novella removed subscriber Alberto Salvia Novella