connecting to databases does not work
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
py-postgresql (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug 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.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/
c.connect()
File "/usr/lib/
sd = self.sys.
File "/usr/lib/
bs = BoundSymbol(sym, db)
File "/usr/lib/
ps = database.
File "/usr/lib/
ps._fini()
File "/usr/lib/
self._output_io = typio.resolve_
File "/usr/lib/
(self.
File "/usr/lib/
(self.
File "/usr/lib/
typio = builtins(typid)
File "/usr/lib/
module_
File "/usr/lib/
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
ProcVersionSign
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_
LANG=en_GB.UTF-8
SHELL=/bin/bash
SourcePackage: py-postgresql
UpgradeStatus: Upgraded to raring on 2013-04-27 (24 days ago)
description: | updated |
tags: | added: saucy |
Changed in py-postgresql (Ubuntu): | |
status: | Confirmed → Triaged |
importance: | Undecided → High |
Status changed to 'Confirmed' because the bug affects multiple users.