[mythtv-users] find_orphans.py

James Abernathy jfabernathy at gmail.com
Fri Feb 7 19:27:17 UTC 2025


On Fri, Feb 7, 2025 at 7:26 AM James Abernathy <jfabernathy at gmail.com>
wrote:

>
>
> On Fri, Feb 7, 2025 at 12:21 AM David Hampton via mythtv-users <
> mythtv-users at mythtv.org> wrote:
>
>> On Thu, 2025-02-06 at 21:19 -0500, James Abernathy wrote:
>> > On Thu, Feb 6, 2025 at 9:09 PM Peter Bennett <pb.mythtv at gmail.com>
>> > wrote:
>> > > On 2/6/25 20:24, James Abernathy wrote:
>> > > >
>> > > > I can't find a package called python3-mythtv for Debian 12.  I
>> > > > know it gets installed by building the Debian packages, but I'm
>> > > > doing a build from source via cmake and I installed my
>> > > > dependencies using ansible but python3-mythtv must not get
>> > > > installed there.
>> > > >
>> > > > Jim A
>> > >
>> > > /usr/local/lib/python3.12/dist-packages/MythTV. That is where all
>> > > the python stuff for MythTV is installed on my testing system.
>> > > Depending on your python version the python3.12 directory may be
>> > > different. find_orphans.py works on my system. This system was
>> > > installed using a mythtv-light package built with cmake, but it
>> > > should be the same for other install methods.
>> > >
>> > >  Peter
>> > >
>> >
>> > Thanks, maybe there's an option to either build or install it. In my
>> > /usr/local/lib/phton3.11/dist-packages directory, there are no files.
>>
>> Both make and cmake will create the python bindings if they find the
>> appropriate python packages installed on the system.  If not, they
>> don't fail the build, they simply disable the python buildings.  You
>> need to look at the output of configure (for make) of the configuration
>> stage of the MythTV sub-package (for cmake).  Search for the string
>> "bindings_python" in the output of either type of build.  The cmake
>> build has additional info if you search for "Found python version".
>>
>> David
>>
>>
> Thanks,  I may have a mess right now so I'm going to start a few separate
> test cases.  I have a small GMKTec NUCBOX G3 with a pop out lid for quick
> access to the NVME drive.  I can change the boot ssd in under 15 seconds.
> I also have a stack of nvme drives, so I can work up some tests to see
> where I'm missing the python bindings.
>
> It bothers me that having to run the build stuff as sudo creates a lot of
> files under /root in addition to the files in /home/$USER.
>
> My first test was a fresh LM22.1 (ubuntu) install and mythtv installed via
> the ppa:mythbuntu/35.  That went smoothly and find_orphans.py works
> correctly.  Now to get something working with Debian using mythtv-light via
> cmake.  I like having packages that can be installed and removed.
>
> The question may come up as to why not just use LM22.1.  For my production
> backend, it's headless in a closet. Having a full Desktop environment means
> dozens of updates to programs that I'll never use on the backend and just
> updating them could cause issues with the stability of the system.
>
> I'm not using the Ubuntu server because it uses snapd.
>
> Jim A
>

I may have a compromise for my production backend for the short term.

In looking for a safe way to run ubuntu without snapd I found out that
Lubuntu 24.04 has no snaps installed on their minimal install.  In fact
they don't have snapd even installed. That coupled with the fact that
Lubuntu minimal is just a few steps up from a server only it should keep my
updates to a minimum.   I tested mythtv v35 installed using the ubuntu
ppa:mythbuntu/35 and everything works as you'd expect including
'find_orphans.py'

So I may just run Lubuntu on my production backend while I learn the right
way to build mythtv v35 on Debian.

Jim A
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20250207/7bea1758/attachment.htm>


More information about the mythtv-users mailing list