[mythtv-users] mythcal error with 0.22-fixes

Michael T. Dean mtdean at thirdcontact.com
Sun Nov 22 01:29:02 UTC 2009

On 11/21/2009 02:26 PM, John Finlay wrote:
> David Knight wrote:
>> I've pulled down the latest version of mythcal from google code
>> (http://code.google.com/p/mythcal/), installed the pytz and python-gdata
>> prerequisites but get the following error when running mythcal 
>> --dry-run:
>> Traceback (most recent call last):
>>   File "./mythcal", line 106, in <module>
>>     recordings = get_recordings_from_backend()
>>   File "./mythcal", line 98, in get_recordings_from_backend
>>     if mythtv.isRecording(recorder):
>>   File "usr/lib/python2.5/site-packages/MythTV/MythTV.py", line 295, in
>> isRecording
>> TypeError: sequence item 0: expected string, int found   
> Looks like the MythTV API was changed when the bindings were updated. 
> isRecording will not accept an int anymore so mythcal will have to 
> pass a string or MythTV would  have to be changed to support the 
> previous API. Looks like the getCurrentRecording binding has been 
> changed in this fashion as well.

Ah, though now I see you're pointing out that it does use the MythTV 
Python bindings.  That means it just needs updated for the new API 
version--which should be much easier than updating for a new protocol 

Didn't notice the MythTV/MythTV.py in there.  Sorry for the noise.


More information about the mythtv-users mailing list