<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 26, 2024 at 6:09 PM James Abernathy <<a href="mailto:jfabernathy@gmail.com">jfabernathy@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 26, 2024 at 7:09 AM James Abernathy <<a href="mailto:jfabernathy@gmail.com" target="_blank">jfabernathy@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 19, 2024 at 10:51 AM James Abernathy <<a href="mailto:jfabernathy@gmail.com" target="_blank">jfabernathy@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jun 18, 2024 at 10:20 PM Stephen Worthington <<a href="mailto:stephen_agent@jsw.gen.nz" target="_blank">stephen_agent@jsw.gen.nz</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Tue, 18 Jun 2024 16:51:06 -0400, you wrote:<br>
<br>
>On Tue, Jun 18, 2024 at 4:22?PM Hika van den Hoven <<a href="mailto:hikavdh@gmail.com" target="_blank">hikavdh@gmail.com</a>><br>
>wrote:<br>
><br>
>> Hoi James,<br>
>><br>
>> Tuesday, June 18, 2024, 10:06:08 PM, you wrote:<br>
>><br>
>><br>
>><br>
>><br>
>> > On Tue, Jun 18, 2024 at 4:03?PM James Abernathy <<a href="mailto:jfabernathy@gmail.com" target="_blank">jfabernathy@gmail.com</a>><br>
>> wrote:<br>
>><br>
>><br>
>><br>
>><br>
>> > On Tue, Jun 18, 2024 at 3:56?PM Hika van den Hoven <<a href="mailto:hikavdh@gmail.com" target="_blank">hikavdh@gmail.com</a>><br>
>> wrote:<br>
>><br>
>> > Hoi James,<br>
>> ><br>
>> > You do not have the python bindings installed<br>
>> ><br>
>> > Tuesday, June 18, 2024, 9:42:36 PM, you wrote:<br>
>> ><br>
>> >> I have a test system on Archlinux and I'm trying to run<br>
>> >> find_orphans.py from the wiki<br>
>> >> (<a href="https://www.mythtv.org/wiki/Find_orphans.py" rel="noreferrer" target="_blank">https://www.mythtv.org/wiki/Find_orphans.py</a>) and I get an error<br>
>> >> right off in line 3. I tried 2 ways to execute, same results.<br>
>> ><br>
>> >> [jim@den-pc ~]$ ./find_orphans.py<br>
>> >> Traceback (most recent call last):<br>
>> >> File "/home/jim/./find_orphans.py", line 3, in <module><br>
>> >> from MythTV import MythDB, MythBE, Recorded, MythError<br>
>> >> ModuleNotFoundError: No module named 'MythTV'<br>
>> >> [jim@den-pc ~]$ python3 find_orphans.py<br>
>> >> Traceback (most recent call last):<br>
>> >> File "/home/jim/find_orphans.py", line 3, in <module><br>
>> >> from MythTV import MythDB, MythBE, Recorded, MythError<br>
>> ><br>
>> >> ModuleNotFoundError: No module named 'MythTV'<br>
>> ><br>
>> >> Not sure what I missed. It works fine on my Ubuntu system.<br>
>> ><br>
>> ><br>
>> >> Jim A<br>
>> ><br>
>> ><br>
>> > Tot mails,<br>
>> > Hika mailto:<a href="mailto:hikavdh@gmail.com" target="_blank">hikavdh@gmail.com</a><br>
>> ><br>
>> > "Zonder hoop kun je niet leven<br>
>> > Zonder leven is er geen hoop<br>
>> > Het eeuwige dilemma<br>
>> > Zeker als je hoop moet vernietigen om te kunnen overleven!"<br>
>> ><br>
>> > De lerende Mens<br>
>> ><br>
>><br>
>><br>
>><br>
>> > Thanks, not sure what I missed but here is what those commands show:<br>
>><br>
>><br>
>> > [jim@den-pc ~]$ mythbackend --version|grep bindings_python<br>
>> > [jim@den-pc ~]$ sudo find / -name bindings | grep mythtv<br>
>> > [sudo] password for jim:<br>
>> ><br>
>> /home/.snapshots/21/snapshot/jim/.cache/yay/mythtv-git/src/mythtv/mythtv/bindings<br>
>> ><br>
>> /home/.snapshots/21/snapshot/jim/.cache/yay/mythtv-git/src/mythtv/platform/win32/msvc/external/taglib/bindings<br>
>> ><br>
>> /home/.snapshots/22/snapshot/jim/.cache/yay/mythtv-git/src/mythtv/mythtv/bindings<br>
>> ><br>
>> /home/.snapshots/22/snapshot/jim/.cache/yay/mythtv-git/src/mythtv/platform/win32/msvc/external/taglib/bindings<br>
>> > find: ‘/run/user/1000/doc’: Permission denied<br>
>> > /usr/share/mythtv/bindings<br>
>> > /.snapshots/24/snapshot/usr/share/mythtv/bindings<br>
>> > /.snapshots/25/snapshot/usr/share/mythtv/bindings<br>
>> > /.snapshots/26/snapshot/usr/share/mythtv/bindings<br>
>> > /.snapshots/27/snapshot/usr/share/mythtv/bindings<br>
>> > /.snapshots/28/snapshot/usr/share/mythtv/bindings<br>
>> > /.snapshots/29/snapshot/usr/share/mythtv/bindings<br>
>> > /.snapshots/30/snapshot/usr/share/mythtv/bindings<br>
>> > /.snapshots/31/snapshot/usr/share/mythtv/bindings<br>
>> > /.snapshots/32/snapshot/usr/share/mythtv/bindings<br>
>> > /.snapshots/33/snapshot/usr/share/mythtv/bindings<br>
>> > /.snapshots/34/snapshot/usr/share/mythtv/bindings<br>
>> > [jim@den-pc ~]<br>
>><br>
>><br>
>><br>
>> > So If I'm missing the bindings, How do I install them in Arch?<br>
>><br>
>><br>
>> > Jim a<br>
>><br>
>><br>
>><br>
>><br>
>><br>
>> > I see in /usr/share/mythtv/bindings the following files.<br>
>><br>
>> > MythBackend.php MythBase.php MythFrontend.php MythTVChannel.php<br>
>> > MythTV.php MythTVProgram.php MythTVRecording.php<br>
>> MythTVStorageGroup.php<br>
>><br>
>><br>
>> > Jim A<br>
>><br>
>> It's a python package, so in something like<br>
>> /usr/lib/python3/site-packages/ and you install it as such.<br>
>><br>
>> It's to long ago to remember wherefrom you can install it. It also I<br>
>> think contains the media grabbers.<br>
>> Some time ago I did some testing on the new grabbers under python3<br>
>> with older versions of mythtv and I am almost sure there is something<br>
>> on the wiki about it.<br>
>><br>
>> Tot mails,<br>
>> Hika mailto:<a href="mailto:hikavdh@gmail.com" target="_blank">hikavdh@gmail.com</a><br>
>><br>
>> "Zonder hoop kun je niet leven<br>
>> Zonder leven is er geen hoop<br>
>> Het eeuwige dilemma<br>
>> Zeker als je hoop moet vernietigen om te kunnen overleven!"<br>
>><br>
>> De lerende Mens<br>
>><br>
><br>
>Not sure how relevant this is but I notice in the AUR for mythtv-git there<br>
>are a number of optional packages related to python bindings.<br>
><br>
>I have all of them installed except "python-requests-cache". It failed<br>
>during build and is a known problem that is in the process of getting fixed.<br>
><br>
>I did install python-requests-cache-git and it installed correctly but I'm<br>
>not sure if that would work the same way or not.<br>
><br>
>JIm A<br>
<br>
On Ubuntu, the Python bindings are found here:<br>
<br>
/usr/lib/python3/dist-packages/MythTV<br>
<br>
They are installed from the libmyth-python package.<br><br></blockquote><div><br></div><div>Thanks, everyone. I think my semi-annual tests of can a complete mythtv system be installed on Arch has come up short once again. While the bulk of it works, there is always something that is missing. I'm back to playing with something more MythTV friendly. <br></div><div><br></div><div>Jim A</div></div></div></blockquote><div><br></div><div>To close this out, I saw that the python-requests-cache AUR package got fixed in the upstream recently and I was able to build Mythtv using the mythtv AUR. This also fixed the find_orphan.py issue I reported here. So it seems Archlinux and Mythtv work again at least for now. Your mileage may vary.<br></div><div><br></div><div>Jim A</div></div></div></blockquote><div><br></div><div>I spoke too soon. On a clean Endeavour OS system (archlinux) I built Mythtv using the AUR mythtv-git. I got the system built and working with the exception of find_orphans.py as before. However, I then went back and built mythtv from source and installed the commands and now find_orphans.py works. I modified the build/mythtv/mythtv/bindings/python/Makefile to include the pip option, --break-system-packages. sudo make install works without errors with the change.<br></div><div><br></div><div> I've added a comment on the AUR for mythtv-git.</div><div><br></div><div>Jim A</div></div></div></blockquote><div><br></div><div>UPDATE:</div><div><br></div><div>I have discovered that the PKGBUILD in the mythtv-git AUR does not include the dependency python-pip or python-wheel. My script to install dependencies prior to a build from source run does have those dependencies. That's why my build from source makes find_orphans.py work and the AUR install doesn't. I'm confirming this again on a fresh VM.</div><div><br></div><div>Jim A</div><div> <br></div></div></div>