[mythtv] MySQL issue with Python binding
Michael T. Dean
mtdean at thirdcontact.com
Tue Nov 10 02:49:26 UTC 2015
On 11/09/2015 05:42 PM, Richard Shaw wrote:
> I have a bug report[1] that with the version of MySQL in Fedora 22 no
> longer works with:
>
> self.connection.commit()
>
> but should be changed to:
>
> self._get_db().commit()
>
> He says it should be safe for earlier versions.
>
> Can anyone confirm changing this in _conn_mysqldb.py is safe?
>
> Thanks,
> Richard
>
> [1] https://bugzilla.rpmfusion.org/show_bug.cgi?id=3734
https://code.mythtv.org/trac/ticket/12491
Though no one has commented on the MythTV ticket, nor uploaded a patch
for the MythTV Python bindings (let alone said that they tested the
patch on the new and old Python MySQL interface library versions).
FWIW, I'm pretty sure that Raymond Wagner wrote the Python bindings to
work with 2 different Python MySQL interface libraries, but I'm not sure
which ones (MySQL-python and something else--maybe mysqlclient?). Based
on the version numbers in the RPMFusion ticket, it sounds like Fedora
switched from MySQL-python (which is currently at version 1.2.5) to
mysqlclient (which is at version 1.3.7). Whoever decides whether this
change should go in the MythTV bindings needs to figure out 1) which
Python-MySQL interface libraries are supposed to be supported, 2)
whether the change will work on all supported libraries and 3) which
library versions are/will be required for that support to work.
Mike
More information about the mythtv-dev
mailing list