[mythtv-users] find_orphans.py error

Raymond Wagner raymond at wagnerrp.com
Mon Jan 16 21:50:57 UTC 2012


On 1/16/2012 16:46, Jeff Siddall wrote:
> /usr/local/bin/find_orphans.py
>     File "/usr/local/bin/find_orphans.py", line 57
>       with DB as c:
>             ^
> SyntaxError: invalid syntax
>
>
> This is a CentOS 5.2 system.  Any ideas?

Your system is too old to run that script.  The 'with' construct was in 
staging in Python 2.5, requiring a special future import to make it 
work, and was not proper syntax until Python 2.6.  CentOS 5 uses Python 2.4.


More information about the mythtv-users mailing list