[mythtv-commits] Ticket #12491: Accessing myth database from python bindings throws an exception
MythTV
noreply at mythtv.org
Fri Nov 13 17:46:02 UTC 2015
#12491: Accessing myth database from python bindings throws an exception
----------------------------------+----------------------------
Reporter: hobbes1069@… | Owner: wagnerrp
Type: Bug Report - General | Status: new
Priority: minor | Milestone: unknown
Component: Bindings - Python | Version: 0.27-fixes
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
----------------------------------+----------------------------
Comment (by Roger Siddons <dizygotheca@…>):
Dev list discussion
http://www.gossamer-threads.com/lists/mythtv/dev/592151
This issue also affects Ubuntu 15.10.
\\Vivid (15.04) uses python-mysqldb 1.2.3.2 whereas Wily (15.10) uses
1.3.4-2
The bindings do appear to support 2 Python SQL libraries - mysqldb and
oursql.
This issue only concerns mysqldb, which changed upstream in 1.3.4
\\https://github.com/PyMySQL/mysqlclient-
python/commit/382fb9f9b3453f579f7bb59af46f127405635945
For mysqldb, Fedora & Ubuntu package the same source, which was MySQLdb1
up to 1.2.3 and mysqlclient thereafter.
MySQLdb1 http://sourceforge.net/projects/mysql-python/
is a legacy project that's been dormant for 2 years. It doesn't support
Python 3 and the maintainer cannot be contacted.
mysqlclient https://github.com/PyMySQL/mysqlclient-python is an active
fork to support distributions moving to Python 3.
It appears they will likely be merged back together once the name
ownership is resolved.
\\https://github.com/PyMySQL/mysqlclient-python/issues/44
Attached patch has been tested on Ubuntu 15.04 (python scripts still work)
& 15.10 (fixes issue), so should fix all distros using python-mysqldb
--
Ticket URL: <https://code.mythtv.org/trac/ticket/12491#comment:1>
MythTV <http://www.mythtv.org>
MythTV Media Center
More information about the mythtv-commits
mailing list