[ZODB-Dev] DisconnectedError

2007-05-04 Thread José Pedro Ferreira
Hello. I am experiencing a problem with ZODB-3.6.0 / Python 2.5, under Linux. Each time I initialize a database, i get a DisconnectedError exception in the client, with the following traceback: quote File /home/pferreir/workspace/indico/code/code/MaKaC/common/db.py, line 50, in __init__

Re: [ZODB-Dev] DisconnectedError

2007-05-04 Thread José Pedro Ferreira
Gary Poster wrote: Hi. ZODB does not currently work with Py2.5. Gary OK, thanks. However, I was able to make it work, running this simple script, and then running the application again. quote #!/usr/bin/python import ZODB from ZODB import FileStorage, DB import transaction storage =

Re: [ZODB-Dev] DisconnectedError

2007-05-04 Thread José Pedro Ferreira
Jim Fulton wrote: I don't know why the client is being disconnected. As others have hinted, you should try this with Python 2.4 -- and please report back if that changes the outcome. OK, I've tested it with Python 2.4.4, and it worked OK. For Python 2.5, I had to use the hack I posted in

Re: [ZODB-Dev] DisconnectedError

2007-05-04 Thread José Pedro Ferreira
Yes, the DB did not exist. And yes, it's not a hack, it's only opening and closing the database... but it unexpectedly works after doing it. Cheers, Pedro On May 4, 2007, at 11:25 AM, José Pedro Ferreira wrote: Jim Fulton wrote: I don't know why the client is being disconnected