Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 262739 - dev-python/psycopg-2.0.8 stablereq (was: psycopg 2.0.2 issues)
Summary: dev-python/psycopg-2.0.8 stablereq (was: psycopg 2.0.2 issues)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: STABLEREQ
Depends on: 268138
Blocks:
  Show dependency tree
 
Reported: 2009-03-16 22:48 UTC by Reinis Danne
Modified: 2009-07-20 01:47 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Reinis Danne 2009-03-16 22:48:39 UTC
dev-python/psycopg-2.0.2: psycopg2.extensions.QuotedString().__str__ doesn't return str

Reproducible: Always

Steps to Reproduce:
1.emerge =dev-python/psycopg-2.0.2
2.python
3.from psycopg2.extensions import QuotedString
4.str(QuotedString("abc"))

Actual Results:  
TypeError: __str__ returned non-string (type str)

type(QuotedString("abc"))
<type 'psycopg2._psycopg.QuotedString'>

Expected Results:  
"'abc'"

type(str(QuotedString("abc")))
<type 'str'>

It is fixed in psycopg-2.0.6 and 2.0.7.

psyco-2.0.8 has issues with missing symbols as reported in bug #242336

Additionaly psycopg-2.0.2 has a QA issue:
 * QA Notice: file does not exist:
 * 
 * 	dodoc: CREDITS does not exist
Comment 1 Patrick Lauer gentoo-dev 2009-03-21 16:58:10 UTC
Arches: Please stable 2.0.8 to fix this issue.
Thanks!
Comment 2 Markus Meier gentoo-dev 2009-03-22 16:56:12 UTC
hrm...

$ python /usr/share/doc/psycopg-2.0.8/examples/usercast.py 
Traceback (most recent call last):
  File "/usr/share/doc/psycopg-2.0.8/examples/usercast.py", line 23, in <module>
    import psycopg2
  File "//usr/lib64/python2.5/site-packages/psycopg2/__init__.py", line 60, in <module>
    from _psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID
ImportError: /usr/lib64/python2.5/site-packages/psycopg2/_psycopg.so: undefined symbol: lo_create
Comment 3 Tobias Klausmann (RETIRED) gentoo-dev 2009-03-22 18:53:54 UTC
Stable on alpha.
Comment 4 Reinis Danne 2009-03-23 11:54:09 UTC
There already is a stabilisation request for >dev-python/psycopg-2.0.2 in bug #242336 and there are also described issues with missing symbols in psycopg-2.0.8. Maybe this bug should depend on that one?
Comment 5 Brent Baude (RETIRED) gentoo-dev 2009-03-26 18:16:54 UTC
ppc stable
Comment 6 Brent Baude (RETIRED) gentoo-dev 2009-04-12 18:05:43 UTC
ppc64 stable
Comment 7 Nathan 2009-04-21 16:38:49 UTC
I think this bug is superseded by bug #242336
Comment 8 Patrick Lauer gentoo-dev 2009-05-01 18:12:16 UTC
Tightening the postgresql dep isn't possible for the stable version atm.:

dev-python/psycopg/psycopg-2.0.8.ebuild: alpha(default/linux/alpha/2008.0/server) ['>=virtual/postgresql-base-8.1']

Same for PPC and PPC64.

#268138 filed, once that is done we can resume :)
Comment 9 Christian Faulhammer (RETIRED) gentoo-dev 2009-05-07 14:16:54 UTC
x86 stable
Comment 10 Alec Shaner 2009-05-14 20:01:16 UTC
On my x86 stable machine psycopg-2.0.8 just broke my system, i.e., I got the import error about lo_create.so described in Comment #2. Shouldn't this wait until #268138 is completed for x86?
Comment 11 Atanas Kamburov 2009-05-15 01:34:57 UTC
I think too that psycopg-2.0.8 should not be marked stable for x86 since I have the same problem like in comment 2...
Comment 12 barrie backhurst 2009-05-19 15:35:09 UTC
I also have the same problem as #2 on x86 stable

If it is any use I found this(although it is old)

http://osdir.com/ml/python.db.psycopg.devel/2007-02/msg00031.html
Comment 13 Christian Faulhammer (RETIRED) gentoo-dev 2009-05-28 15:09:29 UTC
Sorry for the discomfort.  I stabled a newer PostgreSQL version.
Comment 14 Atanas Kamburov 2009-05-28 19:32:58 UTC
(In reply to comment #13)
> Sorry for the discomfort.  I stabled a newer PostgreSQL version.
> 

Thanks for that! I don't know if I'm doing this too soon, but I'm trying to run emerge -atvuND world and here is the result:

[ebuild     U ] dev-python/psycopg-2.0.8 [2.0.2] USE="-debug -doc% -examples% -mxdatetime%" 243 kB
[ebuild     U ]  dev-db/libpq-8.1.11 [8.0.15] USE="nls pam readline ssl zlib -kerberos -pg-intdatetime -threads" 0 kB
[blocks B     ] <=dev-db/postgresql-8.1.4 ("<=dev-db/postgresql-8.1.4" is blocking dev-db/libpq-8.1.11)

So I think that you should stabilize a newer postgreql version from the 8.1 series, since you've stabilized libpq-8.1.11 ....

We're almost there ;-)

Thanks again
Comment 15 Christian Faulhammer (RETIRED) gentoo-dev 2009-05-29 09:12:08 UTC
(In reply to comment #14)
> So I think that you should stabilize a newer postgreql version from the 8.1
> series, since you've stabilized libpq-8.1.11 ....

 Gnah...yes.
 
> We're almost there ;-)

 Step-by-step. :)
Comment 16 Atanas Kamburov 2009-05-29 19:58:56 UTC
ok, I have emerged the new stable versions of libpq, postgresql and psycopg (dev-db/libpq-8.1.11,  dev-db/postgresql-8.1.11,  dev-python/psycopg-2.0.8), everything works so far (and the error described in comment 2 is gone)...

thanks
Comment 17 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-07-20 01:47:02 UTC
dev-python/psycopg-2.0.11 will be stabilized in bug #278366.