[mythtv-users] possible to just build bindings?
George Bingham
georgeb1962 at gmail.com
Mon Feb 10 06:53:31 UTC 2025
Thanks Stephen,
I must have messed something up. When I run that python3 -c "import MythTV"
I get the following error:
python3 -c "import MythTV"
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'MythTV'
However I do have the libmyth-python installed, and I reinstalled it, but
still get the error above.
When I switch to a different conda environment that I have setup for this
project, I get the same error.
in my base environment, when I cd to the /usr/lib/python3/dist-packages and
run it again I get
/usr/lib/python3/dist-packages$ python3 -c "import MythTV"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python3/dist-packages/MythTV/__init__.py", line 38, in
<module>
from .connections import dbmodule
File "/usr/lib/python3/dist-packages/MythTV/connections.py", line 14, in
<module>
import lxml.etree as etree
ModuleNotFoundError: No module named 'lxml.etree'
I tried reinstalling libmyth-python via apt, and that went fine, but
didnt change anything.
Ideas?
-- George
On Sat, Feb 8, 2025 at 7:43 PM Stephen Worthington <stephen_agent at jsw.gen.nz>
wrote:
> On Sat, 8 Feb 2025 13:51:09 -0600, you wrote:
>
> >Hey all,
> >
> > I was doing some pythoning on a mythtv server I'd rebuilt several
> >months ago, and just noticed while working on a python project that I had
> >no python bindings in my /usr/share/mythtv/bindings directory ( just have
> >php )
> >
> > Id installed from ubuntu repos, fixes/34. Don't know why theres only
> >php there, but wanted to get the python bindings working on my system.
> >
> > Do I have to pull the source and do a cmake command? Id rather not
> >build anything but the bindings if possible, but I don't do building as of
> >late and I dont know my way around cmake.
> >
> > Hopefully this is a simple answer for someone, thanks in advance.
> >
> >-- George
>
> The Python bindings do not get installed in
> /usr/share/mythtv/bindings. Try running this:
>
> python3 -c "import MythTV"
>
> If you do not get any errors, then the MythTV bindings are installed.
> They are installed in:
>
> /usr/lib/python3/dist-packages/MythTV
>
> This command will show if the package is installed:
>
> apt list --installed | grep libmyth-python
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20250210/63ba6892/attachment-0001.htm>
More information about the mythtv-users
mailing list