[mythtv-users] V35 install on Archlinux using cmake is missing python modules used in find_orphans.py
Bill Meek
keemllib at gmail.com
Thu Feb 20 04:06:28 UTC 2025
On Wednesday 19 February 2025 06:34:08 PM (-06:00), Scott Theisen wrote:
> On 2/19/25 16:59, Roland Ernst wrote:
> >
> > Jim,
> > As explained previous in this thread, every python module you try to
install in a "|EXTERNALLY-MANAGED" environment|
> > |without using a package manager is causing a PEP 668 error.|
> > |The flag |-DMYTH_BINDINGS_INSTALL_ROOT=/ is a red herring.
> > The only way to overcome this is
> > sudo PIP_BREAK_SYSTEM_PACKAGES=1 cmake --build build-qt5
> >
> > You definitely should not use this in a production environment, for
the following reasons:
> > - Consistency
> > - Maintainability
> > - Security
> > - Safety
> >
> > Roland
>
> Roland,
>
> Is there a way to change how MythTV installs its python bindings so it
doesn't produce this error or need --break-system-packages in an
"EXTERNALLY-MANAGED" environment?
>
> Scott
Roland can comment on this.
As root on a archlinux Docker image ('cause I'm testing ansible there),
I did these:
python -m venv /usr/local/lib/venv
# I made that path up, we need to agree on a
# real one so folks don't have to guess.
source /usr/local/lib/venv/bin/activate # you'll see your PS1 change
python -m pip install --upgrade pip
for PACKAGE in \
lxml \
mysqlclient \
requests \
setuptools \
pip \
wheel \
pycurl \
oauthlib
do pip install $PACKAGE
done
# The packages can be all on one line, I just wanted to watch errors
# print when I was getting used to this. The 'normal' packages all had
# "python-" before their name.
cmake --preset qt5
cmake --build build-qt5
# I put MythTV in the default (think make install) place of
/usr/local.
Then to test: python -c "import MythTV"
If the build worked, there will be no response. If not,
python will print a ModuleNotFoundError.
HTH
--
Bill
More information about the mythtv-users
mailing list