[mythtv-users] Fw: Re: [mythtv] python and mythtv

Ian Barton lists at manor-farm.org
Wed Jul 22 07:34:33 UTC 2009


Copied from my reply to the dev list:

 >>> On Tue, Jul 21, 2009 at 6:57 AM, Tom Sparks wrote:
 >>>
 >>>> I have a python program that need the python mythyv module
 >>>>
 >>>> Traceback (most recent call last):
 >>>>
 >>>>   File "./mythDiskBalancer.py", line 5, in
 >>>> <module>
 >>>>
 >>>>     import MythTV
 >>>>
 >>>> ImportError: No module named MythTV
 >>>> Where do I find this module?
 >>> Compile and install myth --with-bindings=python. Personally, minds 
ends up in
 >>> /usr/local/lib/python2.6/dist-packages/MythTV/MythTV.py.
 >> there has to be another way
 >> i dont want to bring down a working mythtv master backend just to 
add python support
 >>
 >> I was think of the python's Distutils
 >
 > Please try the mythtv-users mailing list, as this is not (yet) 
development related.
 >

You can also install it from the source. Grab the 0.21 fixes branch via 
svn and navigate to the bindings/python folder. I can't remember exactly 
where it ends up, as I don't have the source in front of me. The folder 
should contain setup.py.

Now run sudo python setup.py install

I am sure doing it this way isn't supported, but it's basically what the 
make file does.

Ian.



More information about the mythtv-users mailing list