[mythtv-users] using find_orphans.py

James Abernathy jfabernathy at gmail.com
Thu Jun 27 14:14:36 UTC 2024


On Thu, Jun 27, 2024 at 9:21 AM James Abernathy <jfabernathy at gmail.com>
wrote:

>
>
> On Wed, Jun 26, 2024 at 6:09 PM James Abernathy <jfabernathy at gmail.com>
> wrote:
>
>>
>>
>> On Wed, Jun 26, 2024 at 7:09 AM James Abernathy <jfabernathy at gmail.com>
>> wrote:
>>
>>>
>>>
>>> On Wed, Jun 19, 2024 at 10:51 AM James Abernathy <jfabernathy at gmail.com>
>>> wrote:
>>>
>>>>
>>>>
>>>> On Tue, Jun 18, 2024 at 10:20 PM Stephen Worthington <
>>>> stephen_agent at jsw.gen.nz> wrote:
>>>>
>>>>> On Tue, 18 Jun 2024 16:51:06 -0400, you wrote:
>>>>>
>>>>> >On Tue, Jun 18, 2024 at 4:22?PM Hika van den Hoven <hikavdh at gmail.com
>>>>> >
>>>>> >wrote:
>>>>> >
>>>>> >> Hoi James,
>>>>> >>
>>>>> >> Tuesday, June 18, 2024, 10:06:08 PM, you wrote:
>>>>> >>
>>>>> >>
>>>>> >>
>>>>> >>
>>>>> >> > On Tue, Jun 18, 2024 at 4:03?PM James Abernathy <
>>>>> jfabernathy at gmail.com>
>>>>> >> wrote:
>>>>> >>
>>>>> >>
>>>>> >>
>>>>> >>
>>>>> >> > On Tue, Jun 18, 2024 at 3:56?PM Hika van den Hoven <
>>>>> hikavdh at gmail.com>
>>>>> >> wrote:
>>>>> >>
>>>>> >> > Hoi James,
>>>>> >> >
>>>>> >> >  You do not have the python bindings installed
>>>>> >> >
>>>>> >> >  Tuesday, June 18, 2024, 9:42:36 PM, you wrote:
>>>>> >> >
>>>>> >>  >> I have a test system on Archlinux and I'm trying to run
>>>>> >>  >> find_orphans.py from the wiki
>>>>> >>  >> (https://www.mythtv.org/wiki/Find_orphans.py) and I get an
>>>>> error
>>>>> >>  >> right off in line 3. I tried 2 ways to execute, same results.
>>>>> >> >
>>>>> >>  >> [jim at den-pc ~]$ ./find_orphans.py
>>>>> >>  >> Traceback (most recent call last):
>>>>> >>  >>  File "/home/jim/./find_orphans.py", line 3, in <module>
>>>>> >>  >>    from MythTV import MythDB, MythBE, Recorded, MythError
>>>>> >>  >> ModuleNotFoundError: No module named 'MythTV'
>>>>> >>  >> [jim at den-pc ~]$ python3 find_orphans.py
>>>>> >>  >> Traceback (most recent call last):
>>>>> >>  >>  File "/home/jim/find_orphans.py", line 3, in <module>
>>>>> >>  >>    from MythTV import MythDB, MythBE, Recorded, MythError
>>>>> >> >
>>>>> >>  >> ModuleNotFoundError: No module named 'MythTV'
>>>>> >> >
>>>>> >>  >> Not sure what I missed.  It works fine on my Ubuntu system.
>>>>> >> >
>>>>> >> >
>>>>> >>  >> Jim A
>>>>> >> >
>>>>> >> >
>>>>> >> >  Tot mails,
>>>>> >> >    Hika                            mailto:hikavdh at gmail.com
>>>>> >> >
>>>>> >> >  "Zonder hoop kun je niet leven
>>>>> >> >  Zonder leven is er geen hoop
>>>>> >> >  Het eeuwige dilemma
>>>>> >> >  Zeker als je hoop moet vernietigen om te kunnen overleven!"
>>>>> >> >
>>>>> >> >  De lerende Mens
>>>>> >> >
>>>>> >>
>>>>> >>
>>>>> >>
>>>>> >> > Thanks, not sure what I missed but here is what those commands
>>>>> show:
>>>>> >>
>>>>> >>
>>>>> >> > [jim at den-pc ~]$ mythbackend --version|grep bindings_python
>>>>> >> > [jim at den-pc ~]$ sudo find / -name bindings | grep mythtv
>>>>> >> > [sudo] password for jim:
>>>>> >> >
>>>>> >>
>>>>> /home/.snapshots/21/snapshot/jim/.cache/yay/mythtv-git/src/mythtv/mythtv/bindings
>>>>> >> >
>>>>> >>
>>>>> /home/.snapshots/21/snapshot/jim/.cache/yay/mythtv-git/src/mythtv/platform/win32/msvc/external/taglib/bindings
>>>>> >> >
>>>>> >>
>>>>> /home/.snapshots/22/snapshot/jim/.cache/yay/mythtv-git/src/mythtv/mythtv/bindings
>>>>> >> >
>>>>> >>
>>>>> /home/.snapshots/22/snapshot/jim/.cache/yay/mythtv-git/src/mythtv/platform/win32/msvc/external/taglib/bindings
>>>>> >> > find: ‘/run/user/1000/doc’: Permission denied
>>>>> >> > /usr/share/mythtv/bindings
>>>>> >> > /.snapshots/24/snapshot/usr/share/mythtv/bindings
>>>>> >> > /.snapshots/25/snapshot/usr/share/mythtv/bindings
>>>>> >> > /.snapshots/26/snapshot/usr/share/mythtv/bindings
>>>>> >> > /.snapshots/27/snapshot/usr/share/mythtv/bindings
>>>>> >> > /.snapshots/28/snapshot/usr/share/mythtv/bindings
>>>>> >> > /.snapshots/29/snapshot/usr/share/mythtv/bindings
>>>>> >> > /.snapshots/30/snapshot/usr/share/mythtv/bindings
>>>>> >> > /.snapshots/31/snapshot/usr/share/mythtv/bindings
>>>>> >> > /.snapshots/32/snapshot/usr/share/mythtv/bindings
>>>>> >> > /.snapshots/33/snapshot/usr/share/mythtv/bindings
>>>>> >> > /.snapshots/34/snapshot/usr/share/mythtv/bindings
>>>>> >> > [jim at den-pc ~]
>>>>> >>
>>>>> >>
>>>>> >>
>>>>> >> > So If I'm missing the bindings, How do I install them in Arch?
>>>>> >>
>>>>> >>
>>>>> >> > Jim a
>>>>> >>
>>>>> >>
>>>>> >>
>>>>> >>
>>>>> >>
>>>>> >> > I see in /usr/share/mythtv/bindings the following files.
>>>>> >>
>>>>> >> > MythBackend.php  MythBase.php  MythFrontend.php  MythTVChannel.php
>>>>> >> > MythTV.php  MythTVProgram.php  MythTVRecording.php
>>>>> >> MythTVStorageGroup.php
>>>>> >>
>>>>> >>
>>>>> >> > Jim A
>>>>> >>
>>>>> >> It's a python package, so in something like
>>>>> >> /usr/lib/python3/site-packages/ and you install it as such.
>>>>> >>
>>>>> >> It's to long ago to remember wherefrom you can install it. It also I
>>>>> >> think contains the media grabbers.
>>>>> >> Some time ago I did some testing on the new grabbers under python3
>>>>> >> with older versions of mythtv and I am almost sure there is
>>>>> something
>>>>> >> on the wiki about it.
>>>>> >>
>>>>> >> Tot mails,
>>>>> >>   Hika                            mailto:hikavdh at gmail.com
>>>>> >>
>>>>> >> "Zonder hoop kun je niet leven
>>>>> >> Zonder leven is er geen hoop
>>>>> >> Het eeuwige dilemma
>>>>> >> Zeker als je hoop moet vernietigen om te kunnen overleven!"
>>>>> >>
>>>>> >> De lerende Mens
>>>>> >>
>>>>> >
>>>>> >Not sure how relevant this is but I notice in the AUR for mythtv-git
>>>>> there
>>>>> >are a number of optional packages related to python bindings.
>>>>> >
>>>>> >I have all of them installed except "python-requests-cache". It failed
>>>>> >during build and is a known problem that is in the process of getting
>>>>> fixed.
>>>>> >
>>>>> >I did install python-requests-cache-git and it installed correctly
>>>>> but I'm
>>>>> >not sure if that would work the same way or not.
>>>>> >
>>>>> >JIm A
>>>>>
>>>>> On Ubuntu, the Python bindings are found here:
>>>>>
>>>>> /usr/lib/python3/dist-packages/MythTV
>>>>>
>>>>> They are installed from the libmyth-python package.
>>>>>
>>>>>
>>>> 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.
>>>>
>>>> Jim A
>>>>
>>>
>>> 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.
>>>
>>> Jim A
>>>
>>
>> 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.
>>
>>  I've added a comment on the AUR for mythtv-git.
>>
>> Jim A
>>
>
> UPDATE:
>
> 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.
>
> Jim A
>

Now I think this is closed:

from the AUR comments:
JohnLBergqvist <https://aur.archlinux.org/account/JohnLBergqvist> commented
on 2024-06-27 10:11 (EDT)
<https://aur.archlinux.org/packages/mythtv-git#comment-979847>

@jfabernathy I've added python-pip as a dependency now
 Jim A
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20240627/384f8da1/attachment.htm>


More information about the mythtv-users mailing list