Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 257545 - net-zope/zodb-3.6.0 is not compatible with Python >=2.5
Summary: net-zope/zodb-3.6.0 is not compatible with Python >=2.5
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: net-zope (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on: 191260
Blocks: python-2.5 278824
  Show dependency tree
 
Reported: 2009-02-04 00:18 UTC by Gabe
Modified: 2009-10-11 17:50 UTC (History)
1 user (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 Gabe 2009-02-04 00:18:01 UTC
Setup:
 net-zope/zodb-3.6.0
 dev-lang/python-2.5.2-r7

Using this combination, when trying to connect to a new database instance (via this code), it dies.

Reproducible: Always

Steps to Reproduce:
1. create an empty database

2. try to connect via this code:
<code>

from ZEO.ClientStorage import ClientStorage
import ZODB
import time

storage = ClientStorage('/tmp/my-zeosocket' )

# wait until the storage is ready
deadline = time.time() + 10
while (time.time() < deadline) and (not storage.is_connected()):
  time.sleep(1)

database = ZODB.DB(storage)
print database
</code>
Actual Results:  
localhost  # python ./test.py
No handlers could be found for logger "ZEO.zrpc"
Traceback (most recent call last):
  File "./test.py", line 12, in <module>
    database = ZODB.DB(storage)
  File "usr/lib/python2.5/site-packages/ZODB/DB.py", line 238, in __init__
  File "usr/lib/python2.5/site-packages/ZEO/ClientStorage.py", line 746, in load
  File "usr/lib/python2.5/site-packages/ZEO/ClientStorage.py", line 769, in loadEx
  File "usr/lib/python2.5/site-packages/ZEO/ServerStub.py", line 192, in loadEx
  File "usr/lib/python2.5/site-packages/ZEO/zrpc/connection.py", line 531, in call
  File "usr/lib/python2.5/site-packages/ZEO/zrpc/connection.py", line 621, in wait
ZEO.zrpc.error.DisconnectedError


Expected Results:  
Running this code with python 2.4 returns back a database object.

After a bit of debugging in connection.py, the problem can be seen by adding more logging in the error_handler function:

ZRPCError('Unsafe global: ZODB.POSException.POSKeyError',)

This error then lead me to a thread from the Zope guys saying that ZODB >3.6 need to run on python > 2.5

http://mail.zope.org/pipermail/zodb-dev/2008-January/011412.html

Could someone please update the DEPENDS line on the net-zope/zodb-3.6.0.ebuild to:

DEPEND=">=dev-lang/python-2.3.5
        !>dev-lang/python-2.5"

Thanks,
-Gabe
Comment 1 Rafał Mużyło 2009-02-04 02:36:03 UTC
I think you were looking for slot dependencies,
cause this form would simply block higher python versions.
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2009-08-17 13:15:25 UTC
Unmaintained and doesn't work with stable python. Let's vote.
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2009-08-17 13:17:01 UTC
(In reply to comment #2)
> Unmaintained and doesn't work with stable python. Let's vote.
> 

Make that: Doesn't work with previous stable python OR current stable python.
Comment 4 Robert Buchholz (RETIRED) gentoo-dev 2009-08-17 13:31:45 UTC
ZODB is also shipped as part of Zope itself. I have no idea how these two relate.
Comment 5 Robert Buchholz (RETIRED) gentoo-dev 2009-08-17 13:35:19 UTC
(In reply to comment #4)
> ZODB is also shipped as part of Zope itself. I have no idea how these two
> relate.

Ignore that. I remembered this incorrectly. ZEO is part of both zodb and zope, which is completely unrelated to this bug.

Comment 6 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-08-17 14:43:40 UTC
I vote no, still works with python in the tree. Upstream limitation, as long as zope (and related) have a Gentoo maintainer, treecleaners should not be involved.
Comment 7 Samuli Suominen (RETIRED) gentoo-dev 2009-08-17 14:54:08 UTC
Which maintainer? The empty herd?
Comment 8 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-10-05 03:21:27 UTC
Let's remove it wrt bug 191260. No one cares to bump it.
Comment 9 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-10-06 11:42:38 UTC
I can try to fix it in this week.
Comment 10 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-10-11 17:50:04 UTC
This bug should be fixed in net-zope/zodb-3.9.1.