[mythtv-users] using find_orphans.py

Stephen Worthington stephen_agent at jsw.gen.nz
Wed Jun 19 02:19:06 UTC 2024


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.


More information about the mythtv-users mailing list