Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#12458 closed Bug Report - General (fixed)

Python bindings no longer add missing 'videocategory'.'category' during method update() for Video object

Reported by: spmorton@… Owned by: Raymond Wagner
Priority: minor Milestone: 0.28
Component: Bindings - Python Version: Master Head
Severity: medium Keywords:
Cc: Ticket locked: no


The traceback points to a bad cursor.execute statement at line 870 of in method 'def _cat_toid(self):' I adjusted the code as follows to correct the errant behavior.

cursor.execute("INSERT INTO videocategory (category) VALUES (%s)", [self.category])

Traceback (most recent call last):

File "<stdin>", line 1, in <module> File "/mnt/data/mythtv/", line 288, in update_vid


File "/usr/lib/python2.7/site-packages/MythTV/", line 429, in update


File "/usr/lib/python2.7/site-packages/MythTV/", line 885, in _push


File "/usr/lib/python2.7/site-packages/MythTV/", line 870, in _cat_toid


File "/usr/lib/python2.7/site-packages/MythTV/", line 71, in execute

raise MythDBError(MythDBError.DB_RAW, e.args)

MythTV.exceptions.MythDBError: MySQL error: not all arguments converted during string formatting

Change History (3)

comment:1 Changed 6 years ago by Ben Klopfenstein <benklop@…>

I've submitted a PR with your fix as described here ( - i hope that will grease the wheels on getting this integrated. If there's anything I should do, let me know.

comment:2 Changed 6 years ago by Karl Dietz <dekarl@…>

Resolution: fixed
Status: newclosed

In 7a6cddb04ccabc6737671907ff9cf29db26f5347/mythtv:

Merge remote-tracking branch 'benklop/fix-dataheap-binding' into HEAD

Fixes #12458

comment:3 Changed 6 years ago by Karl Egly

Milestone: unknown0.28
Version: UnspecifiedMaster Head
Note: See TracTickets for help on using tickets.