There seems to be something weird going on with Python in the latest build, which causes the metadata grabber scripts to break.
root@frontroom:/usr/lib/python2.6/site-packages/MythTV/utility # /usr/share/mythtv/metadata/Movie/tmdb3.py -t
Failed to import MythTV bindings. Check your `configure` output to make sure installation was not disabled due to external dependencies
Failed to import PyTMDB3 library. This should have been included with the python MythTV bindings.
root@frontroom:/usr/lib/python2.6/site-packages/MythTV/utility # /usr/share/mythtv/metadata/Television/ttvdb.py -t
The modules tvdb_api.py (v1.0.0 or greater), tvdb_ui.py, tvdb_exceptions.py and cache.py.
They should have been installed along with the MythTV python bindings.
Error:('module' object has no attribute 'tzset')
root@frontroom:/usr/lib/python2.6/site-packages/MythTV/utility # /usr/share/myth
tv/metadata/Movie/tmdb3.py
Traceback (most recent call last):
File "/usr/share/mythtv/metadata/Movie/tmdb3.py", line 255, in <module>
main()
File "/usr/share/mythtv/metadata/Movie/tmdb3.py", line 232, in main
from MythTV.tmdb3 import set_key, set_cache, set_locale
File "/usr/lib/python2.6/site-packages/MythTV/__init__.py", line 36, in <module>
from utility import *
File "/usr/lib/python2.6/site-packages/MythTV/utility/__init__.py", line 1, in <module>
from dt import datetime
File "/usr/lib/python2.6/site-packages/MythTV/utility/dt.py", line 15, in <module>
time.tzset()
AttributeError: 'module' object has no attribute 'tzset'
The import errors are actually red herrrings, the directories are there - the real problem is this :
File "/usr/lib/python2.6/site-packages/MythTV/utility/dt.py", line 15, in <module>
time.tzset()
AttributeError: 'module' object has no attribute 'tzset'
Which then stops the modules being imported. If you comment out line 15 in dt.py the grabbers all start working again. Time.tzset() should work on a standard python install, so it seems like something is wrong with Python.
Python problems
Moderator: Pablo
Re: Python problems
I've posted what I think is the fix for this issue in the Build System forum.