'bool' object not callable in pgconnection.py

Bug #941382 reported by Friedrich Strohmaier
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
sqlobject (Debian)
Fix Released
Unknown
sqlobject (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

trying to install mirrorbrain triggered an error in pgconnection.py
The problem & solution is described here:
http://stackoverflow.com/questions/6374121/python-why-does-sqlobject-fail-in-conn-autocommit1

TypeError: 'bool' object is not callable

replacing conn.autocommit(val) by the assignment as described in the answer solves the problem

Revision history for this message
drnlm (drnlmuller+bugs) wrote :

This bug has been fixed upstream in SQLOBject 1.2, and in Debian with the 0.12.4-2.1 package, Syncing this with the latest version of the Debian package looks like the way to go here.

Changed in sqlobject (Debian):
status: Unknown → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in sqlobject (Ubuntu):
status: New → Confirmed
Revision history for this message
Florian Effenberger (floeff) wrote :

Here's a quick workaround that helps on Ubuntu 12.04:

sed -i s/"conn.autocommit(auto)"/"conn.autocommit = auto"/g /usr/lib/pymodules/python2.7/sqlobject/postgres/pgconnection.py
sed -i s/"conn.autocommit(1)"/"conn.autocommit = 1"/g /usr/lib/pymodules/python2.7/sqlobject/postgres/pgconnection.py

Revision history for this message
Stefano Rivera (stefanor) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. However, I am closing it because the bug has been fixed in Ubuntu, since Quantal.

This is a significant bug in Ubuntu. If you need a fix for the bug in previous versions of Ubuntu, please do steps 1 and 2 of the SRU Procedure [1] to bring the need to a developer's attention.

[1]: https://wiki.ubuntu.com/StableReleaseUpdates#Procedure

Changed in sqlobject (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.