Opened 5 years ago

Last modified 5 years ago

#12243 new Bug Report - General

Python Bindings failing with new inetrefid changes

Reported by: skd5aner@… Owned by: Raymond Wagner
Priority: minor Milestone: unknown
Component: Bindings - Python Version: 0.27-fixes
Severity: medium Keywords:
Cc: Ticket locked: no


While trying to run mythvidexport via a job, it fails with:

   Traceback (most recent call last):
      File "/usr/local/bin/", line 410, in main
        export = VIDEO(opts,int(args[0]))
      File "/usr/local/bin/", line 66, in __init__
      File "/usr/local/bin/", line 132, in get_meta
        metadata = grab.grabInetref(self.rec.inetref)
      File "/usr/local/lib/python2.7/dist-packages/MythTV/", line 411, in grabInetref
        return self.command('-D', *args).next()
      File "/usr/local/lib/python2.7/dist-packages/MythTV/", line 351, in command
        return self._processMetadata(super(Grabber, self).command(*args))
      File "/usr/local/lib/python2.7/dist-packages/MythTV/", line 137, in command
        return self._runcmd(cmd)
      File "/usr/local/lib/python2.7/dist-packages/MythTV/", line 146, in _runcmd
        raise MythError(MythError.SYSTEM,self.returncode,cmd,self.stderr)
    MythError: External system call failed: code 1

speaking with wagnerrp via IRC, it seems the python bindings may need to be updated to account for recent changes in the metadata handling.

Running: MythTV Version : v0.27.3-107-gf91e18d MythTV Branch : fixes/0.27

Change History (1)

comment:1 Changed 5 years ago by troy@…

mythvidexport grabs the inetref from the database and it is now something like: ttvdb.py_12345

This breaks the python bindings.

It looks like the problem is here:

The grabbers are already hard coded into the python bindings:

I added a quick and dirty work around to the script in the MythTV Wiki.

To fix this bug either the VideoGrabber? needs to be re-written, which would probably break even more things, or a check placed in>Grabber.grabInetref() for the new format of inetrefs and strip out the leading grabber name.

Note: See TracTickets for help on using tickets.