python-pygresql requires libpq5 to work

Bug #130792 reported by Scott Kitterman
0
Affects Status Importance Assigned to Milestone
pygresql (Debian)
Fix Released
Unknown
pygresql (Ubuntu)
Fix Released
Medium
Unassigned
Feisty
Won't Fix
Medium
Unassigned

Bug Description

If you use python-pygresql on a system that has never have postgresql installed, you get:

Traceback (most recent call last):
  File "stddev5.py", line 12, in <module>
    import pg
  File "/usr/lib/python2.5/site-packages/pg.py", line 21, in <module>
    from _pg import *
ImportError: libpq.so.5: cannot open shared object file: No such file or directory

Installing libpq5 in Feisty solves this problem.

Revision history for this message
Scott Kitterman (kitterman) wrote :

Fix attached. Adding ${shlibs:depends} is enough.

Built the current gutsy package with the added depends and then it demanded libpq5, after it was installed, it ran fine. This change is important in the case of using the package to connect to a remove databse.

Revision history for this message
Scott Kitterman (kitterman) wrote :

Confirmed based on same report in Debian too.

Changed in pygresql:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Scott Kitterman (kitterman) wrote :

Debdiff for feisty-proposed

Changed in pygresql:
importance: Undecided → Medium
status: New → Confirmed
status: Confirmed → In Progress
status: Confirmed → Triaged
Revision history for this message
Scott Kitterman (kitterman) wrote :

Corrected debdiff for Gutsy

Revision history for this message
Scott Kitterman (kitterman) wrote :

Correction for feisty-proposed.

Changed in pygresql:
status: Unknown → Fix Committed
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for the patch. I'm not sure that's worth a stable update, the workaround is easy enough and there is not lot of users who opened a bug about it

Revision history for this message
Scott Kitterman (kitterman) wrote :

pygresql (1:3.8.1-1ubuntu2) gutsy; urgency=low

  * Add ${shlibs:Depends} to depends (LP: #130792)

 -- Scott Kitterman <email address hidden> Tue, 7 Aug 2007 23:31:27 -0400

Changed in pygresql:
status: In Progress → Fix Released
Revision history for this message
Scott Kitterman (kitterman) wrote :

OK. Thanks for uploading for Gutsy. Generally for SRUs for Universe packages, if it's an easy, low risk fix like this I lean towards uploading it to -proposed so it's there for testing if there is interest, but I agree it's an easy enough work around.

Changed in pygresql:
status: Fix Committed → Fix Released
Revision history for this message
Daniel Holbach (dholbach) wrote :

Closing task according to the discussion.

Changed in pygresql:
status: Triaged → Won't Fix
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.