[mythtv-users] MythTV and Python 3
Stephen Worthington
stephen_agent at jsw.gen.nz
Tue Oct 14 01:26:01 UTC 2014
Mythbuntu 14.04, MythTV 0.27+fixes
I was just looking at using Python for another MythTV script and I
realised I should be writing it in Python 3 now that Python 2 is
deprecated. So I grabbed one of the MythTV scripts I downloaded a
while ago (tunerstatus.py) and converted it to Python 3 to see if it
would work. But this is what I got:
root at mypvr:~# tunerstat.py
Traceback (most recent call last):
File "/usr/local/bin/tunerstat.py", line 6, in <module>
from MythTV import MythDB, MythBE
ImportError: No module named 'MythTV'
So it looks like the MythTV package(s) are not installed for Python 3.
I have only dabbled in Python so far - I am far from an expert. So I
was wondering if anyone had run across this and if there was an easy
solution, or whether I have to keep using Python 2 for now.
And in general, what is the state of play with MythTV and Python 3?
Are the MythTV bindings Python 3 compatible? Is anyone working on
moving MythTV scripts to Python 3?
More information about the mythtv-users
mailing list