[mythtv-users] MythTV and Python 3

Andréas Kühne andreas at kuhne.se
Tue Oct 14 07:06:35 UTC 2014


2014-10-14 3:26 GMT+02:00 Stephen Worthington <stephen_agent at jsw.gen.nz>:

> 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?
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://www.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org
>

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.

Regards,

Andréas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mythtv.org/pipermail/mythtv-users/attachments/20141014/eb4b5483/attachment.html>


More information about the mythtv-users mailing list