[ATrpms-users] tmdb and Centos5 - again
Axel.Thimm at ATrpms.net
Fri Feb 25 00:44:48 CET 2011
On Tue, 2011-02-22 at 23:02 -0800, Fedor Pikus wrote:
> This problem of tmdb and Centos5 used to be solved here:
> but after upgrade to mytth-0.24 it's broken again:
> The subdirectory "tmdb" containing the modules tmdb_api.py (v0.1.3 or
> greater), tmdb_ui.py,
> tmdb_exceptions.py must have been installed with the MythTV python
> Error:(invalid syntax (logging.py, line 202))
> All the scripts it mentions are there, for example:
> line 202 is "with self._lock:", btw.
> Any ideas what needs to be fixed now?
The with statement without a target ensures that __enter__() and
__exit__() are called appropriately. See also
Not sure whether _lock has any such methods, it probably has or could
have otherwise the statement makes no sense. You can use the url above
to translate this to pre-with code, e.g. calling __enter__() and
__exit__() on self._lock manually at the beginning and end of the block.
Can you give it a try and if it works properly we can patch it in the
next package updates.
http://thimm.gr/ - http://ATrpms.net/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 198 bytes
Desc: This is a digitally signed message part
More information about the atrpms-users