Re: RuntimeError: cannot release un-acquired lock

Jim Fulton <[email protected]> Fri, 11 Aug 2017 09:59:44 -0400
Newsgroups gmane.comp.web.zope.zodb
Message-ID <CAPDm-Fgowy_OFVKxZY+bqir5qrMeyQ6zr8_MVo8fB_whxSRcEA@mail.gmail.com>
On Fri, Aug 11, 2017 at 5:11 AM, Etienne Robillard <[email protected]>
wrote:

> 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
>

I'm glad you figured this out.



> Do ZODB depends on trollius ?


FTR: ZODB doesn't depend on Trollius. ZEO depends on Trollius on Python 2.

Jim

-- 
Jim Fulton
http://jimfulton.info

-- 
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.