linux-traipu team mailing list archive
-
linux-traipu team
-
Mailing list archive
-
Message #06354
[Bug 1051872] Re: mythtv python bindings crash with an IndexError
** Changed in: mythtv
Status: Unknown => New
--
You received this bug notification because you are a member of UBUNTU -
AL - BR, which is subscribed to Mythbuntu.
https://bugs.launchpad.net/bugs/1051872
Title:
mythtv python bindings crash with an IndexError
Status in Mythbuntu, Ubuntu derivative focused upon MythTV:
Triaged
Status in MythTV:
New
Bug description:
Hi,
I'm using the latest 0.26 precise mythtv APKs. the current libmythtv-
perl (all the other mythtv packages are the same version) version is
2:0.26.0~master.20120917.0a56d7f-0ubuntu0mythbuntu2
For the last week or so, I've realized that I cannot download
metadata. I debugged further and the mythtv python libraries are
throwing an IndexError. The full error is
root@mythtv:~/Data# mythwikiscripts
Traceback (most recent call last):
File "/usr/bin/mythwikiscripts", line 3, in <module>
from MythTV.wikiscripts import *
File "/usr/lib/python2.7/dist-packages/MythTV/__init__.py", line 41, in <module>
from dataheap import *
File "/usr/lib/python2.7/dist-packages/MythTV/dataheap.py", line 583, in <module>
class Job( DBDataWrite, JOBTYPE, JOBCMD, JOBFLAG, JOBSTATUS ):
File "/usr/lib/python2.7/dist-packages/MythTV/dataheap.py", line 589, in Job
_defaults = {'id':None, 'inserttime':datetime.now(),
File "/usr/lib/python2.7/dist-packages/MythTV/utility/dt.py", line 237, in now
obj = super(datetime, cls).now(tz)
File "/usr/lib/python2.7/dist-packages/MythTV/utility/dt.py", line 55, in utcoffset
return timedelta(0, self._get_transition(dt).offset)
File "/usr/lib/python2.7/dist-packages/MythTV/utility/dt.py", line 38, in _get_transition
if dt < self._transitions[index].local[0:5]:
IndexError: tuple index out of range(
I'm not sure how to fix this. I've removed all the python scripts and
reinstalled. no change. i've diffed the python scripts (dataheap.py
and dt.py) with the mythth git version. They are identical.
I've added the timezone data to mysql and verified that it works by
logging into mysql and doing something like
SELECT CONVERT_TZ('2012-06-07 12:00:00', 'GMT', 'America/New_York');
the correct response (shown below) is returned
+--------------------------------------------------------------+
| CONVERT_TZ('2012-06-07 12:00:00', 'GMT', 'America/New_York') |
+--------------------------------------------------------------+
| 2012-06-07 08:00:00 |
+--------------------------------------------------------------+
What can I do to fix this?
my mythtv box is running the latest precise packages.
It might be a mythbuntu and/or ubuntu precise issue as nobody is
reporting this error (which affects every python script) on the mythtv
mailing lists and bug repository.
Thanks,
Raj
To manage notifications about this bug go to:
https://bugs.launchpad.net/mythbuntu/+bug/1051872/+subscriptions
References