<div dir="ltr"><br><div class="gmail_extra">
<br><div class="gmail_quote">2014-10-14 3:26 GMT+02:00 Stephen Worthington <span dir="ltr"><<a href="mailto:stephen_agent@jsw.gen.nz" target="_blank">stephen_agent@jsw.gen.nz</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Mythbuntu 14.04, MythTV 0.27+fixes<br>
<br>
I was just looking at using Python for another MythTV script and I<br>
realised I should be writing it in Python 3 now that Python 2 is<br>
deprecated. So I grabbed one of the MythTV scripts I downloaded a<br>
while ago (tunerstatus.py) and converted it to Python 3 to see if it<br>
would work. But this is what I got:<br>
<br>
root@mypvr:~# tunerstat.py<br>
Traceback (most recent call last):<br>
File "/usr/local/bin/tunerstat.py", line 6, in <module><br>
from MythTV import MythDB, MythBE<br>
ImportError: No module named 'MythTV'<br>
<br>
So it looks like the MythTV package(s) are not installed for Python 3.<br>
I have only dabbled in Python so far - I am far from an expert. So I<br>
was wondering if anyone had run across this and if there was an easy<br>
solution, or whether I have to keep using Python 2 for now.<br>
<br>
And in general, what is the state of play with MythTV and Python 3?<br>
Are the MythTV bindings Python 3 compatible? Is anyone working on<br>
moving MythTV scripts to Python 3?<br>
_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
<a href="http://www.mythtv.org/mailman/listinfo/mythtv-users" target="_blank">http://www.mythtv.org/mailman/listinfo/mythtv-users</a><br>
<a href="http://wiki.mythtv.org/Mailing_List_etiquette" target="_blank">http://wiki.mythtv.org/Mailing_List_etiquette</a><br>
MythTV Forums: <a href="https://forum.mythtv.org" target="_blank">https://forum.mythtv.org</a><br>
</blockquote></div><br></div><div class="gmail_extra">It doesn't matter if it is compiled with python 2 or 3, that error just means that Python can't find the Mythtv module. Check so that you have access to the mythtv modules in your site packages for python.<div class="gmail_extra"><br clear="all"><div><div dir="ltr">Regards,</div></div><div dir="ltr"><br></div><div dir="ltr">Andréas</div></div></div></div>