[mythtvnz] mhegepgsnoop.py broken by Python 3.12

Stephen Worthington stephen_agent at jsw.gen.nz
Sat Oct 5 08:41:35 BST 2024


Last night I upgraded my main MythTV box from Xubuntu 22.04.5 to
Xubuntu 24.04.1.  Python 3 was upgraded from 3.10.12 to 3.12.3 and
this broke mhegepgsnoop.py.  The call in mhegepgsnoop.py to
sqlite3.OptimizedUnicode was apparently deprecated a long time ago,
and it was returning str instead of its old function, which I think
was previously needed in Python 2 due to Python 2 not doing Unicode
very well.  Python 3 is fully Unicode and did not need
sqlite3.OptimizedUnicode any more, and in Python 3.12 it was finally
removed (or it might have been in Python 3.11).  So, before you
upgrade to anything that is running Python > 3.10, please replace your
copy of mhegepgsnoop.py with the new version:

http://www.jsw.gen.nz/mythtv/mhegepgsnoop-0.7.4.py



More information about the mythtvnz mailing list