Re: RuntimeError: cannot release un-acquired lock
Etienne Robillard <[email protected]> Fri, 11 Aug 2017 06:06:32 -0400
| Newsgroups | gmane.comp.web.zope.zodb |
|---|---|
| Message-ID | <[email protected]> |
Apparently the problem was caused because of gevent. I solved the
problem by adding the following line into the schevo.database2 module:
from gevent import monkey
monkey.patch_all()
Cheers,
E
Le 2017-08-11 à 05:11, Etienne Robillard a écrit :
> Hi,
>
>
> I'm attempting to update my schevo database schema and got a fatal
> exception with the command:
>
> $ schevo db update --app blogengine2 zodb://127.0.0.1:4343
>
> 05:06:43 environ No en_CA translation found for domain kiwi
> 05:06:43 environ No en_CA translation found for domain
> gazpacho
> libschevo 3.2.8 :: Database Activities :: Update Database
>
> Opening database...
> 05:06:44 trollius Exception in callback _(<Future ...',
> None)>) at /home/erob/work/ZEO-5.1.0/src/ZEO/asyncio/client.py:37
> handle: <Handle _(<Future ...', None)>) at
> /home/erob/work/ZEO-5.1.0/src/ZEO/asyncio/client.py:37>
> Traceback (most recent call last):
> File
> "/usr/local/lib/python2.7/dist-packages/trollius-2.1-py2.7.egg/trollius/events.py",
> line 136, in _run
> self._callback(*self._args)
> File "/home/erob/work/ZEO-5.1.0/src/ZEO/asyncio/client.py", line 45,
> in _
> f = gen.send(result)
> File "/home/erob/work/ZEO-5.1.0/src/ZEO/asyncio/client.py", line
> 613, in load_before_threadsafe
> self.cache.store(oid, start, end, data)
> File "/home/erob/work/ZEO-5.1.0/src/ZEO/cache.py", line 644, in store
> self._trace(0x52, oid, start_tid, dlen=len(data))
> File "/usr/lib/python2.7/threading.py", line 216, in __exit__
> self.release()
> File "/usr/lib/python2.7/threading.py", line 204, in release
> raise RuntimeError("cannot release un-acquired lock")
> RuntimeError: cannot release un-acquired lock
>
>
> Do ZODB depends on trollius ? Is this a bug in ZODB ?
>
> Thank you in advance,
>
>
> Etienne
>
>
--
Etienne Robillard
[email protected]
http://www.isotopesoftware.ca/
--
You received this message because you are subscribed to the Google Groups "zodb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.