[ATrpms-users] tmdb and Centos5 - again

Axel Thimm 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:
> http://www.gossamer-threads.com/lists/atrpms/users/14356
> 
> but after upgrade to mytth-0.24 it's broken again:
> /usr/share/mythtv/metadata/
> Movie/tmdb.py 
> 
> 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
> bindings.
> Error:(invalid syntax (logging.py, line 202))
> 
> All the scripts it mentions are there, for example:
> /usr/lib/python2.4/site-packages/MythTV/tmdb/tmdb_exceptions.py
> 
> 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
http://www.python.org/dev/peps/pep-0343/

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
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.atrpms.net/pipermail/atrpms-users/attachments/20110225/27ec2b2d/attachment.sig>


More information about the atrpms-users mailing list