<div dir="ltr">I was starting to build mythtv from source on Endeavour OS which is a Arch linux based distro.  It complied fine but the sudo make install failed due to new rules that are starting to creep into OSs.  It will affect Debian, Ubuntu, Fedora, Archlinux, etc very soon. It happened to me today on something that last week didn't cause a problem.<div><br></div><div>The error is related to installing pip packages. Here is a the console error I saw at the end of sudo make install:</div><div><br></div><div><br class="gmail-Apple-interchange-newline"><span style="color:rgb(38,38,38);font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre;background-color:rgb(241,241,241)">
make[</span><span class="gmail-hljs-number" style="font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre">1</span><span style="color:rgb(38,38,38);font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre;background-color:rgb(241,241,241)">]: Entering directory </span><span class="gmail-hljs-comment" style="font-style:italic;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre">'/home/jim/build/mythtv/mythtv/bindings/python'</span><span style="color:rgb(38,38,38);font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre;background-color:rgb(241,241,241)">
python3 -m pip install   --no-build-isolation --no-cache-dir --no-index --disable-pip-version-check --no-deps --find-links ./dist MythTV
</span><span class="gmail-hljs-symbol" style="font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre">error:</span><span style="color:rgb(38,38,38);font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre;background-color:rgb(241,241,241)"> externally-managed-environment

× This environment </span><span class="gmail-hljs-built_in" style="font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre">is</span><span style="color:rgb(38,38,38);font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre;background-color:rgb(241,241,241)"> externally managed
╰─> </span><span class="gmail-hljs-keyword" style="color:rgb(38,38,38);font-weight:bold;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre">To</span><span style="color:rgb(38,38,38);font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre;background-color:rgb(241,241,241)"> install Python packages system-wide, </span><span class="gmail-hljs-keyword" style="color:rgb(38,38,38);font-weight:bold;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre">try</span><span style="color:rgb(38,38,38);font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre;background-color:rgb(241,241,241)"> </span><span class="gmail-hljs-comment" style="font-style:italic;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre">'pacman -S</span><span style="color:rgb(38,38,38);font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre;background-color:rgb(241,241,241)">
    python-xyz</span><span class="gmail-hljs-comment" style="font-style:italic;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre">', where xyz is the package you are trying to</span><span style="color:rgb(38,38,38);font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre;background-color:rgb(241,241,241)">
    install.
    
    </span><span class="gmail-hljs-keyword" style="color:rgb(38,38,38);font-weight:bold;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre">If</span><span style="color:rgb(38,38,38);font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre;background-color:rgb(241,241,241)"> you wish </span><span class="gmail-hljs-keyword" style="color:rgb(38,38,38);font-weight:bold;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre">to</span><span style="color:rgb(38,38,38);font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre;background-color:rgb(241,241,241)"> install a non-Arch-packaged Python package,
    create a virtual environment </span><span class="gmail-hljs-keyword" style="color:rgb(38,38,38);font-weight:bold;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre">using</span><span style="color:rgb(38,38,38);font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre;background-color:rgb(241,241,241)"> </span><span class="gmail-hljs-comment" style="font-style:italic;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre">'python -m venv path/to/venv'.</span><span style="color:rgb(38,38,38);font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre;background-color:rgb(241,241,241)">
    </span><span class="gmail-hljs-keyword" style="color:rgb(38,38,38);font-weight:bold;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre">Then</span><span style="color:rgb(38,38,38);font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre;background-color:rgb(241,241,241)"> use path/</span><span class="gmail-hljs-keyword" style="color:rgb(38,38,38);font-weight:bold;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre">to</span><span style="color:rgb(38,38,38);font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre;background-color:rgb(241,241,241)">/venv/bin/python </span><span class="gmail-hljs-built_in" style="font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre">and</span><span style="color:rgb(38,38,38);font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre;background-color:rgb(241,241,241)"> path/</span><span class="gmail-hljs-keyword" style="color:rgb(38,38,38);font-weight:bold;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre">to</span><span style="color:rgb(38,38,38);font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre;background-color:rgb(241,241,241)">/venv/bin/pip.
    
    </span><span class="gmail-hljs-keyword" style="color:rgb(38,38,38);font-weight:bold;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre">If</span><span style="color:rgb(38,38,38);font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre;background-color:rgb(241,241,241)"> you wish </span><span class="gmail-hljs-keyword" style="color:rgb(38,38,38);font-weight:bold;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre">to</span><span style="color:rgb(38,38,38);font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre;background-color:rgb(241,241,241)"> install a non-Arch packaged Python application,
    it may be easiest </span><span class="gmail-hljs-keyword" style="color:rgb(38,38,38);font-weight:bold;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre">to</span><span style="color:rgb(38,38,38);font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre;background-color:rgb(241,241,241)"> use </span><span class="gmail-hljs-comment" style="font-style:italic;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre">'pipx install xyz', which will manage a</span><span style="color:rgb(38,38,38);font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre;background-color:rgb(241,241,241)">
    virtual environment </span><span class="gmail-hljs-keyword" style="color:rgb(38,38,38);font-weight:bold;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre">for</span><span style="color:rgb(38,38,38);font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre;background-color:rgb(241,241,241)"> you. Make sure you have python-pipx
    installed via pacman.

</span><span class="gmail-hljs-symbol" style="font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre">note:</span><span style="color:rgb(38,38,38);font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre;background-color:rgb(241,241,241)"> </span><span class="gmail-hljs-keyword" style="color:rgb(38,38,38);font-weight:bold;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre">If</span><span style="color:rgb(38,38,38);font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre;background-color:rgb(241,241,241)"> you believe this </span><span class="gmail-hljs-built_in" style="font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre">is</span><span style="color:rgb(38,38,38);font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre;background-color:rgb(241,241,241)"> a mistake, please contact your Python installation </span><span class="gmail-hljs-built_in" style="font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre">or</span><span style="color:rgb(38,38,38);font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre;background-color:rgb(241,241,241)"> OS distribution provider. You can override this, at the risk </span><span class="gmail-hljs-keyword" style="color:rgb(38,38,38);font-weight:bold;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre">of</span><span style="color:rgb(38,38,38);font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre;background-color:rgb(241,241,241)"> breaking your Python installation </span><span class="gmail-hljs-built_in" style="font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre">or</span><span style="color:rgb(38,38,38);font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre;background-color:rgb(241,241,241)"> OS, </span><span class="gmail-hljs-keyword" style="color:rgb(38,38,38);font-weight:bold;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre">by</span><span style="color:rgb(38,38,38);font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre;background-color:rgb(241,241,241)"> passing --break-system-packages
</span><span class="gmail-hljs-symbol" style="font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre">hint:</span><span style="color:rgb(38,38,38);font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre;background-color:rgb(241,241,241)"> See PEP </span><span class="gmail-hljs-number" style="font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre">668</span><span style="color:rgb(38,38,38);font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre;background-color:rgb(241,241,241)"> </span><span class="gmail-hljs-keyword" style="color:rgb(38,38,38);font-weight:bold;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre">for</span><span style="color:rgb(38,38,38);font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre;background-color:rgb(241,241,241)"> the detailed specification.
make[</span><span class="gmail-hljs-number" style="font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre">1</span><span style="color:rgb(38,38,38);font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre;background-color:rgb(241,241,241)">]: *** [Makefile:</span><span class="gmail-hljs-number" style="font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre">35</span><span style="color:rgb(38,38,38);font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre;background-color:rgb(241,241,241)">: install] </span><span class="gmail-hljs-keyword" style="color:rgb(38,38,38);font-weight:bold;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre">Error</span><span style="color:rgb(38,38,38);font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre;background-color:rgb(241,241,241)"> </span><span class="gmail-hljs-number" style="font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre">1</span><br></div><div><span class="gmail-hljs-number" style="font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre"><br></span></div><div><span class="gmail-hljs-number" style="font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:15.008px;white-space:pre"><span style="color:rgb(0,0,0);font-family:Arial,sans-serif;white-space:normal;background-color:rgb(247,247,247)">This link gives a better explanation of what’s going on: </span><a href="https://pythonspeed.com/articles/externally-managed-environment-pep-668/" rel="noopener nofollow ugc" style="background-color:rgb(247,247,247);text-decoration-line:none;font-family:Arial,sans-serif;white-space:normal">https://pythonspeed.com/articles/externally-managed-environment-pep-668/</a><br></span></div><div><br></div><div>So my question is, now what?</div><div><br></div><div>Jim A<br><br></div></div>