python2.3-pygresql: internal error: isinstance expected 2 arguments, got 1

Bug #9163 reported by Debian Bug Importer
4
Affects Status Importance Assigned to Milestone
pygresql (Debian)
Fix Released
Unknown
pygresql (Ubuntu)
Invalid
High
LaMont Jones

Bug Description

Automatically imported from Debian bug report #276775 http://bugs.debian.org/276775

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Automatically imported from Debian bug report #276775 http://bugs.debian.org/276775

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <E1CIlpQ-0001ja-7Z@localhost>
Date: Sat, 16 Oct 2004 13:30:24 +0300
From: Lasse Kantola <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: python2.3-pygresql: internal error: isinstance expected 2 arguments, got 1

Package: python2.3-pygresql
Version: 1:3.5-2
Severity: grave
Justification: renders package unusable

There seems to be a little bug/typo in the last patch:

--- pygresql-3.5.orig/pgdb.py
+++ pygresql-3.5/pgdb.py
@@ -270,17 +270,17 @@
   _quoteparams = _pg.quoteparams_fast
 except (NameError, AttributeError):
   def _quote(x):
- if type(x) == DateTime.DateTimeType:
+ if isinstance(x) == DateTime.DateTimeType:
   x = str(x)

....

isinstance() can not be used like this. It requires 2 arguments.

Changing "isinstance(x) == DateTime.DateTimeType" to
isinstance(x, DateTime.DateTimeType) seemed to fix the problem for me.

I set the severity to grave since all my cursor.execute() calls which
use parameter substitution seem to trigger this exception.

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.7
Locale: LANG=C, LC_CTYPE=fi_FI.UTF-8

Versions of packages python2.3-pygresql depends on:
ii libc6 2.3.2.ds1-18 GNU C Library: Shared libraries an
ii libpq3 7.4.5-3 Shared library libpq.so.3 for Post
ii python2.3 2.3.4-13 An interactive high-level object-o
ii python2.3-egenix-mxdatetime 2.0.5-2 Date and time handling routines fo

-- no debconf information

Revision history for this message
In , Matthias Klose (doko) wrote : Bug#276775: fixed in pygresql 1:3.5-3

Source: pygresql
Source-Version: 1:3.5-3

We believe that the bug you reported is fixed in the latest version of
pygresql, which is due to be installed in the Debian FTP archive:

pygresql_3.5-3.diff.gz
  to pool/main/p/pygresql/pygresql_3.5-3.diff.gz
pygresql_3.5-3.dsc
  to pool/main/p/pygresql/pygresql_3.5-3.dsc
python-pygresql_3.5-3_all.deb
  to pool/main/p/pygresql/python-pygresql_3.5-3_all.deb
python2.2-pygresql_3.5-3_i386.deb
  to pool/main/p/pygresql/python2.2-pygresql_3.5-3_i386.deb
python2.3-pygresql_3.5-3_i386.deb
  to pool/main/p/pygresql/python2.3-pygresql_3.5-3_i386.deb

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to <email address hidden>,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Matthias Klose <email address hidden> (supplier of updated pygresql package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing <email address hidden>)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Sat, 16 Oct 2004 13:49:03 +0200
Source: pygresql
Binary: python-pygresql python2.2-pygresql python2.3-pygresql
Architecture: source all i386
Version: 1:3.5-3
Distribution: unstable
Urgency: medium
Maintainer: Matthias Klose <email address hidden>
Changed-By: Matthias Klose <email address hidden>
Description:
 python-pygresql - PostgreSQL module for Python
 python2.2-pygresql - PostgreSQL module for Python
 python2.3-pygresql - PostgreSQL module for Python
Closes: 276775
Changes:
 pygresql (1:3.5-3) unstable; urgency=medium
 .
   * Fix typo (closes: #276775).
Files:
 14f289fb48c9df5e8f0e6d1570ff120b 672 python optional pygresql_3.5-3.dsc
 68d6f5042f31987d113df08fcb9cda0f 3134 python optional pygresql_3.5-3.diff.gz
 2f132eca197cb218a7f4b1b679579afc 44430 python optional python2.3-pygresql_3.5-3_i386.deb
 73eca0d97b3d56543436f48c2606285c 44376 python optional python2.2-pygresql_3.5-3_i386.deb
 23d613caf6f8457e782458fddb84f5c4 28742 python optional python-pygresql_3.5-3_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFBcQrVStlRaw+TLJwRAgQ8AKCCcRoN4zcFTis3LHfUBMxnPvRcTQCgg29r
wcTVC/SNDybJQ/rpqh4VzO8=
=vUOa
-----END PGP SIGNATURE-----

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <email address hidden>
Date: Sat, 16 Oct 2004 08:17:12 -0400
From: Matthias Klose <email address hidden>
To: <email address hidden>
Subject: Bug#276775: fixed in pygresql 1:3.5-3

Source: pygresql
Source-Version: 1:3.5-3

We believe that the bug you reported is fixed in the latest version of
pygresql, which is due to be installed in the Debian FTP archive:

pygresql_3.5-3.diff.gz
  to pool/main/p/pygresql/pygresql_3.5-3.diff.gz
pygresql_3.5-3.dsc
  to pool/main/p/pygresql/pygresql_3.5-3.dsc
python-pygresql_3.5-3_all.deb
  to pool/main/p/pygresql/python-pygresql_3.5-3_all.deb
python2.2-pygresql_3.5-3_i386.deb
  to pool/main/p/pygresql/python2.2-pygresql_3.5-3_i386.deb
python2.3-pygresql_3.5-3_i386.deb
  to pool/main/p/pygresql/python2.3-pygresql_3.5-3_i386.deb

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to <email address hidden>,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Matthias Klose <email address hidden> (supplier of updated pygresql package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing <email address hidden>)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Sat, 16 Oct 2004 13:49:03 +0200
Source: pygresql
Binary: python-pygresql python2.2-pygresql python2.3-pygresql
Architecture: source all i386
Version: 1:3.5-3
Distribution: unstable
Urgency: medium
Maintainer: Matthias Klose <email address hidden>
Changed-By: Matthias Klose <email address hidden>
Description:
 python-pygresql - PostgreSQL module for Python
 python2.2-pygresql - PostgreSQL module for Python
 python2.3-pygresql - PostgreSQL module for Python
Closes: 276775
Changes:
 pygresql (1:3.5-3) unstable; urgency=medium
 .
   * Fix typo (closes: #276775).
Files:
 14f289fb48c9df5e8f0e6d1570ff120b 672 python optional pygresql_3.5-3.dsc
 68d6f5042f31987d113df08fcb9cda0f 3134 python optional pygresql_3.5-3.diff.gz
 2f132eca197cb218a7f4b1b679579afc 44430 python optional python2.3-pygresql_3.5-3_i386.deb
 73eca0d97b3d56543436f48c2606285c 44376 python optional python2.2-pygresql_3.5-3_i386.deb
 23d613caf6f8457e782458fddb84f5c4 28742 python optional python-pygresql_3.5-3_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFBcQrVStlRaw+TLJwRAgQ8AKCCcRoN4zcFTis3LHfUBMxnPvRcTQCgg29r
wcTVC/SNDybJQ/rpqh4VzO8=
=vUOa
-----END PGP SIGNATURE-----

Revision history for this message
LaMont Jones (lamont) wrote :

Post warty version

Changed in pygresql:
status: Unknown → 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.