Getting flexget working again on Vero 4K+

With some help from the OSMC community, I managed to get flexget running on my Vero 4K+ a couple of years ago. It worked perfectly until the last major upgrade to OSMC, after which flexget seemed to no longer be installed. I tried various approaches to getting it to install again, but nothing worked.
I’m running OSMC with the latest updates (Debian 11 release 11 / Python 3.9.2). When I try to install flexget using “sudo pip install flexget”, various errors are returned and the installation fails. I’m posting what look like the most relevant parts of the output below. In general terms, I understand that there are issues installing packages flexget relies on, such as brotli, but I’m at a loss as to how to get them to load correctly. I would be very grateful for any advice – thanks in advance!

Using cached requests-2.28.1-py3-none-any.whl (62 kB)
[33mWARNING: The candidate selected for download or install is a yanked version: ‘apscheduler’ candidate (version 3.9.1 at https://files.pythonhosted.org/packages/e4/9f/c3937d4babe62504b874d4bf2c0d85aa69c7f59fa84cf6050f3b9dc5d83e/APScheduler-3.9.1-py2.py3-none-any.whl#sha256=ddc25a0ddd899de44d7f451f4375fb971887e65af51e41e5dcf681f59b8b2c9a (from Links for apscheduler) (requires-python:>=2.7, !=3.0., !=3.1., !=3.2., !=3.3., !=3.4., <4))
Reason for being yanked: Not compatible with Python 2.7 [0m
Building wheels for collected packages: brotli, greenlet, psutil, pyyaml, sqlalchemy
Building wheel for brotli (setup.py) … [?25l- \ | error
[31m ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-tmuy2qn4/brotli_19cb66ae02eb45dd83db010127ca5a14/setup.py’“'”‘; file=’“'”‘/tmp/pip-install-tmuy2qn4/brotli_19cb66ae02eb45dd83db010127ca5a14/setup.py’“'”‘;f=getattr(tokenize, ‘"’“‘open’”’“‘, open)(file);code=f.read().replace(’”‘"’\r\n’“'”‘, ‘"’"’\n’“'”‘);f.close();exec(compile(code, file, ‘"’“‘exec’”’"‘))’ bdist_wheel -d /tmp/pip-wheel-po2mausm
cwd: /tmp/pip-install-tmuy2qn4/brotli_19cb66ae02eb45dd83db010127ca5a14/
Complete output (23 lines):
/usr/local/lib/python3.9/dist-packages/setuptools/dist.py:771: UserWarning: Usage of dash-separated ‘build-base’ will not be supported in future versions. Please use the underscore name ‘build_base’ instead
warnings.warn(
running bdist_wheel
running build
running build_py
creating bin
creating bin/lib.linux-aarch64-cpython-39
copying python/brotli.py → bin/lib.linux-aarch64-cpython-39
running build_ext
building ‘_brotli’ extension
creating bin/temp.linux-aarch64-cpython-39
creating bin/temp.linux-aarch64-cpython-39/c
creating bin/temp.linux-aarch64-cpython-39/c/common
creating bin/temp.linux-aarch64-cpython-39/c/dec
creating bin/temp.linux-aarch64-cpython-39/c/enc
arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ic/include -I/usr/include/python3.9 -c c/common/constants.c -o bin/temp.linux-aarch64-cpython-39/c/common/constants.o
In file included from c/common/./constants.h:15,
from c/common/constants.c:7:
c/common/././platform.h:26:10: fatal error: string.h: No such file or directory
26 | #include <string.h> /
memcpy */
| ^~~~~~~~~~
compilation terminated.
error: command ‘/usr/bin/arm-linux-gnueabihf-gcc’ failed with exit code 1
---------------------------------------- [0m
[31m ERROR: Failed building wheel for brotli [0m
[?25h Running setup.py clean for brotli
Building wheel for greenlet (setup.py) … [?25l- \ | error
[31m ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-tmuy2qn4/greenlet_beea8113248c41858d4829f9c1487ad5/setup.py’“'”‘; file=’“'”‘/tmp/pip-install-tmuy2qn4/greenlet_beea8113248c41858d4829f9c1487ad5/setup.py’“'”‘;f=getattr(tokenize, ‘"’“‘open’”’“‘, open)(file);code=f.read().replace(’”‘"’\r\n’“'”‘, ‘"’"’\n’“'”‘);f.close();exec(compile(code, file, ‘"’“‘exec’”’"‘))’ bdist_wheel -d /tmp/pip-wheel-s_md58yp
cwd: /tmp/pip-install-tmuy2qn4/greenlet_beea8113248c41858d4829f9c1487ad5/

DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/usr/include/python3.9 -c src/greenlet/greenlet.cpp -o build/temp.linux-aarch64-cpython-39/src/greenlet/greenlet.o
arm-linux-gnueabihf-gcc: fatal error: cannot execute ‘cc1plus’: execvp: No such file or directory
compilation terminated.
error: command ‘/usr/bin/arm-linux-gnueabihf-gcc’ failed with exit code 1
---------------------------------------- [0m
[31m ERROR: Failed building wheel for greenlet [0m
[?25h Running setup.py clean for greenlet
Building wheel for psutil (PEP 517) … [?25l- \ | error
[31m ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 /tmp/tmpw8h6h479_in_process.py build_wheel /tmp/tmps8pqusi3
cwd: /tmp/pip-install-tmuy2qn4/psutil_5d89bcaddec1417fabc1569bb7b0f427
Complete output (49 lines):
/tmp/tmpfsl7axnw.c:1:10: fatal error: linux/ethtool.h: No such file or directory


error: command ‘/usr/bin/arm-linux-gnueabihf-gcc’ failed with exit code 1
---------------------------------------- [0m
[31m ERROR: Failed building wheel for psutil [0m
[?25h Building wheel for pyyaml (PEP 517) … [?25l- \ | / - done
[?25h Created wheel for pyyaml: filename=PyYAML-6.0-cp39-cp39-linux_aarch64.whl size=45334 sha256=9471899fc6fb3beb22ee9fcf22297336638e2699812456ec845622f1f84b47e2
Stored in directory: /root/.cache/pip/wheels/b4/0f/9a/d6af48581dda678920fccfb734f5d9f827c6ed5b4074c7eda8
Building wheel for sqlalchemy (setup.py) … [?25l- \ | / - \ | / - \ | / - \ | / - \ | / - \ done
[?25h Created wheel for sqlalchemy: filename=SQLAlchemy-1.4.43-cp39-cp39-linux_aarch64.whl size=1540207 sha256=12019c12dd00edfbd1e9a396a91b3d17f578275f232e047a833d7caa02483521
Stored in directory: /root/.cache/pip/wheels/4c/97/72/4a73ff291746529c05f8b8fd68c9e2beae1cce7d7cfa097f61
Successfully built pyyaml sqlalchemy
Failed to build brotli greenlet psutil
[31mERROR: Could not build wheels for psutil which use PEP 517 and cannot be installed directly

HI @mungo_park , I actually encountered the same behavior as you - after OSMC update in December, Flexget disappeared from the system, and no matter what I tried I can’t manage to find out how to reinstall Flexget on OSMC.
I ended up in installing DietPI distro on VirtualBox to make some testing, and I could successfully reinstall Flexget using the procedure listed here : RaspberryPi OS Lite | FlexGet

I then made a fresh reinstall of OSMC latest version, on a SDCARD to use with my Pi 3B+, and I thus followed the same procedure to install Flexget.
No matter what I again have the same error messages when installing.

I thus post the result of the error I receive, hoping you or someone else will understand better than I do, why Flexget fails to install on OSMC whereas it works well on DietPI in VM.

Thanks a lot in advance to whoever can shed some lights here :slight_smile:

(have to split the code, as I exceed the maximum length for a message)

osmc@osmc:/tmp$ ~/.local/bin/pipx install flexget
Fatal error from pip prevented installation. Full pip output in file:
    /home/osmc/.local/pipx/logs/cmd_2023-03-11_22.05.58_pip_errors.log

pip failed to build package:
    brotli

Some possibly relevant errors from pip install:
    error: subprocess-exited-with-error
    arm-linux-gnueabihf-gcc: fatal error: cannot execute 'cc1plus': execvp: No such file or directory
    error: command '/usr/bin/arm-linux-gnueabihf-gcc' failed with exit code 1
    error: legacy-install-failure

Error installing flexget.
osmc@osmc:/tmp$ cat /home/osmc/.local/pipx/logs/cmd_2023-03-11_2
cmd_2023-03-11_21.47.26.log             cmd_2023-03-11_21.47.57_pip_errors.log  cmd_2023-03-11_22.05.58_pip_errors.log
cmd_2023-03-11_21.47.57.log             cmd_2023-03-11_22.05.58.log
osmc@osmc:/tmp$ cat /home/osmc/.local/pipx/logs/cmd_2023-03-11_22.05.58
cmd_2023-03-11_22.05.58.log             cmd_2023-03-11_22.05.58_pip_errors.log
osmc@osmc:/tmp$ cat /home/osmc/.local/pipx/logs/cmd_2023-03-11_22.05.58_pip_errors.log
PIP STDOUT
----------
Collecting flexget
  Using cached FlexGet-3.5.30-py3-none-any.whl (9.1 MB)
Collecting certifi==2022.12.7
  Using cached certifi-2022.12.7-py3-none-any.whl (155 kB)
Collecting pygments==2.13.0
  Using cached Pygments-2.13.0-py3-none-any.whl (1.1 MB)
Collecting python-dateutil==2.8.2
  Using cached python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
Collecting babelfish==0.6.0
  Using cached babelfish-0.6.0-py3-none-any.whl (93 kB)
Collecting markupsafe==2.1.1
  Using cached MarkupSafe-2.1.1-py3-none-any.whl
Collecting pyrss2gen==1.1
  Using cached PyRSS2Gen-1.1-py3-none-any.whl
Collecting zc-lockfile==2.0
  Using cached zc.lockfile-2.0-py2.py3-none-any.whl (9.7 kB)
Collecting loguru==0.6.0
  Using cached loguru-0.6.0-py3-none-any.whl (58 kB)
Collecting autocommand==2.2.2
  Using cached autocommand-2.2.2-py3-none-any.whl (19 kB)
Collecting rpyc==5.3.1
  Using cached rpyc-5.3.1-py3-none-any.whl (74 kB)
Collecting plumbum==1.8.0
  Using cached plumbum-1.8.0-py3-none-any.whl (117 kB)
Collecting zxcvbn-python==4.4.24
  Using cached zxcvbn_python-4.4.24-py3-none-any.whl
Collecting zipp==3.11.0
  Using cached zipp-3.11.0-py3-none-any.whl (6.6 kB)
Collecting pytz==2022.6
  Using cached pytz-2022.6-py2.py3-none-any.whl (498 kB)
Collecting pytz-deprecation-shim==0.1.0.post0
  Using cached pytz_deprecation_shim-0.1.0.post0-py2.py3-none-any.whl (15 kB)
Collecting rebulk==3.1.0
  Using cached rebulk-3.1.0-py3-none-any.whl (56 kB)
Collecting tzlocal==4.2
  Using cached tzlocal-4.2-py3-none-any.whl (19 kB)
Collecting pyrsistent==0.19.2
  Using cached pyrsistent-0.19.2-py3-none-any.whl (57 kB)
Collecting webencodings==0.5.1
  Using cached webencodings-0.5.1-py2.py3-none-any.whl (11 kB)
Collecting importlib-metadata==5.1.0
  Using cached importlib_metadata-5.1.0-py3-none-any.whl (21 kB)
Collecting tzdata==2022.7
  Using cached tzdata-2022.7-py2.py3-none-any.whl (340 kB)
Collecting sgmllib3k==1.0.0
  Using cached sgmllib3k-1.0.0-py3-none-any.whl
Collecting packaging==22.0
  Using cached packaging-22.0-py3-none-any.whl (42 kB)
Collecting flask-compress==1.13
  Using cached Flask_Compress-1.13-py3-none-any.whl (7.9 kB)
Collecting portend==3.1.0
  Using cached portend-3.1.0-py3-none-any.whl (5.3 kB)
Collecting setuptools==65.6.3
  Using cached setuptools-65.6.3-py3-none-any.whl (1.2 MB)
Collecting pynzb==0.1.0
  Using cached pynzb-0.1.0-py3-none-any.whl
Collecting html5lib==1.1
  Using cached html5lib-1.1-py2.py3-none-any.whl (112 kB)
Collecting commonmark==0.9.1
  Using cached commonmark-0.9.1-py2.py3-none-any.whl (51 kB)
Collecting flask-login==0.6.2
  Using cached Flask_Login-0.6.2-py3-none-any.whl (17 kB)
Collecting flask-restx==1.0.3
  Using cached flask_restx-1.0.3-py2.py3-none-any.whl (5.3 MB)
Collecting aniso8601==9.0.1
  Using cached aniso8601-9.0.1-py2.py3-none-any.whl (52 kB)
Collecting typing-extensions==4.4.0
  Using cached typing_extensions-4.4.0-py3-none-any.whl (26 kB)
Collecting colorama==0.4.6
  Using cached colorama-0.4.6-py2.py3-none-any.whl (25 kB)
Collecting feedparser==6.0.10
  Using cached feedparser-6.0.10-py3-none-any.whl (81 kB)
Collecting flask-cors==3.0.10
  Using cached Flask_Cors-3.0.10-py2.py3-none-any.whl (14 kB)
Collecting jaraco-classes==3.2.3
  Using cached jaraco.classes-3.2.3-py3-none-any.whl (6.0 kB)
Collecting requests==2.28.1
  Using cached requests-2.28.1-py3-none-any.whl (62 kB)
Collecting jinja2==3.1.2
  Using cached Jinja2-3.1.2-py3-none-any.whl (133 kB)
Collecting sqlalchemy==1.4.45
  Using cached SQLAlchemy-1.4.45-cp39-cp39-linux_armv7l.whl
Collecting pyyaml==6.0
  Using cached PyYAML-6.0-cp39-cp39-linux_armv7l.whl
Collecting idna==3.4
  Using cached idna-3.4-py3-none-any.whl (61 kB)
Collecting jaraco-text==3.11.0
  Using cached jaraco.text-3.11.0-py3-none-any.whl (11 kB)
Collecting charset-normalizer==2.1.1
  Using cached charset_normalizer-2.1.1-py3-none-any.whl (39 kB)
Collecting werkzeug==2.2.3
  Using cached Werkzeug-2.2.3-py3-none-any.whl (233 kB)
Collecting inflect==6.0.2
  Using cached inflect-6.0.2-py3-none-any.whl (34 kB)
Collecting jsonschema==4.17.3
  Using cached jsonschema-4.17.3-py3-none-any.whl (90 kB)
Collecting click==8.1.3
  Using cached click-8.1.3-py3-none-any.whl (96 kB)
Collecting soupsieve==2.3.2.post1
  Using cached soupsieve-2.3.2.post1-py3-none-any.whl (37 kB)
Collecting jaraco-collections==3.8.0
  Using cached jaraco.collections-3.8.0-py3-none-any.whl (10 kB)
Collecting beautifulsoup4==4.11.1
  Using cached beautifulsoup4-4.11.1-py3-none-any.whl (128 kB)
Collecting itsdangerous==2.1.2
  Using cached itsdangerous-2.1.2-py3-none-any.whl (15 kB)
Collecting six==1.16.0
  Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting attrs==22.1.0
  Using cached attrs-22.1.0-py2.py3-none-any.whl (58 kB)
Collecting tempora==5.1.0
  Using cached tempora-5.1.0-py3-none-any.whl (15 kB)
Collecting brotli==1.0.9
  Using cached Brotli-1.0.9.zip (510 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting cherrypy==18.8.0
  Using cached CherryPy-18.8.0-py2.py3-none-any.whl (348 kB)
Collecting flask-restful==0.3.9
  Using cached Flask_RESTful-0.3.9-py2.py3-none-any.whl (25 kB)
Collecting cheroot==9.0.0
  Using cached cheroot-9.0.0-py2.py3-none-any.whl (100 kB)
Collecting psutil==5.9.4
  Using cached psutil-5.9.4.tar.gz (485 kB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Collecting rich==12.6.0
  Using cached rich-12.6.0-py3-none-any.whl (237 kB)
Collecting jaraco-context==4.2.0
  Using cached jaraco.context-4.2.0-py3-none-any.whl (5.0 kB)
Collecting pyparsing==3.0.9
  Using cached pyparsing-3.0.9-py3-none-any.whl (98 kB)
Collecting apscheduler==3.9.1.post1
  Using cached APScheduler-3.9.1.post1-py2.py3-none-any.whl (59 kB)
Collecting guessit==3.5.0
  Using cached guessit-3.5.0-py3-none-any.whl (167 kB)
Collecting pydantic==1.10.2
  Using cached pydantic-1.10.2-py3-none-any.whl (154 kB)
Collecting jaraco-functools==3.5.2
  Using cached jaraco.functools-3.5.2-py3-none-any.whl (7.3 kB)
Collecting urllib3==1.26.13
  Using cached urllib3-1.26.13-py2.py3-none-any.whl (140 kB)
Collecting more-itertools==9.0.0
  Using cached more_itertools-9.0.0-py3-none-any.whl (52 kB)
Collecting flask==2.2.2
  Using cached Flask-2.2.2-py3-none-any.whl (101 kB)
Building wheels for collected packages: brotli, psutil
  Building wheel for brotli (setup.py): started
  Building wheel for brotli (setup.py): still running...
  Building wheel for brotli (setup.py): still running...
  Building wheel for brotli (setup.py): still running...
  Building wheel for brotli (setup.py): finished with status 'error'
  Running setup.py clean for brotli
  Building wheel for psutil (pyproject.toml): started
  Building wheel for psutil (pyproject.toml): finished with status 'done'
  Created wheel for psutil: filename=psutil-5.9.4-cp39-abi3-linux_armv7l.whl size=273667 sha256=0162fe6c18fb81b5c1b0998cd08d123ee0a211aaf42492adb9b616845c968497
  Stored in directory: /home/osmc/.cache/pip/wheels/b3/e1/ef/72253145950aea37e83c8c13a844c583e2b575f1c93598901d
Successfully built psutil
Failed to build brotli
Installing collected packages: zxcvbn-python, webencodings, sgmllib3k, rebulk, pytz, pyrss2gen, commonmark, brotli, aniso8601, zipp, urllib3, tzdata, typing-extensions, sqlalchemy, soupsieve, six, setuptools, pyyaml, pyrsistent, pyparsing, pygments, psutil, plumbum, packaging, more-itertools, markupsafe, loguru, jaraco-context, itsdangerous, idna, feedparser, colorama, click, charset-normalizer, certifi, babelfish, autocommand, attrs, zc-lockfile, werkzeug, rpyc, rich, requests, pytz-deprecation-shim, python-dateutil, pynzb, pydantic, jsonschema, jinja2, jaraco-functools, jaraco-classes, importlib-metadata, html5lib, beautifulsoup4, tzlocal, tempora, inflect, guessit, flask, cheroot, portend, jaraco-text, flask-restx, flask-restful, flask-login, flask-cors, flask-compress, apscheduler, jaraco-collections, cherrypy, flexget
  Running setup.py install for brotli: started
  Running setup.py install for brotli: still running...
  Running setup.py install for brotli: still running...
  Running setup.py install for brotli: still running...
  Running setup.py install for brotli: finished with status 'error'

PIP STDERR
----------
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [49 lines of output]
      /home/osmc/.local/pipx/shared/lib/python3.9/site-packages/setuptools/dist.py:788: UserWarning: Usage of dash-separated 'build-base' will not be supported in future versions. Please use the underscore name 'build_base' instead
        warnings.warn(
      running bdist_wheel
      running build
      running build_py
      creating bin
      creating bin/lib.linux-armv7l-cpython-39
      copying python/brotli.py -> bin/lib.linux-armv7l-cpython-39
      running build_ext
      building '_brotli' extension
      creating bin/temp.linux-armv7l-cpython-39
      creating bin/temp.linux-armv7l-cpython-39/c
      creating bin/temp.linux-armv7l-cpython-39/c/common
      creating bin/temp.linux-armv7l-cpython-39/c/dec
      creating bin/temp.linux-armv7l-cpython-39/c/enc
      arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ic/include -I/home/osmc/.local/pipx/venvs/flexget/include -I/usr/include/python3.9 -c c/common/constants.c -o bin/temp.linux-armv7l-cpython-39/c/common/constants.o
      arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ic/include -I/home/osmc/.local/pipx/venvs/flexget/include -I/usr/include/python3.9 -c c/common/context.c -o bin/temp.linux-armv7l-cpython-39/c/common/context.o
      arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ic/include -I/home/osmc/.local/pipx/venvs/flexget/include -I/usr/include/python3.9 -c c/common/dictionary.c -o bin/temp.linux-armv7l-cpython-39/c/common/dictionary.o
      arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ic/include -I/home/osmc/.local/pipx/venvs/flexget/include -I/usr/include/python3.9 -c c/common/platform.c -o bin/temp.linux-armv7l-cpython-39/c/common/platform.o
      arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ic/include -I/home/osmc/.local/pipx/venvs/flexget/include -I/usr/include/python3.9 -c c/common/transform.c -o bin/temp.linux-armv7l-cpython-39/c/common/transform.o
      arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ic/include -I/home/osmc/.local/pipx/venvs/flexget/include -I/usr/include/python3.9 -c c/dec/bit_reader.c -o bin/temp.linux-armv7l-cpython-39/c/dec/bit_reader.o
      arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ic/include -I/home/osmc/.local/pipx/venvs/flexget/include -I/usr/include/python3.9 -c c/dec/decode.c -o bin/temp.linux-armv7l-cpython-39/c/dec/decode.o
      arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ic/include -I/home/osmc/.local/pipx/venvs/flexget/include -I/usr/include/python3.9 -c c/dec/huffman.c -o bin/temp.linux-armv7l-cpython-39/c/dec/huffman.o
      arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ic/include -I/home/osmc/.local/pipx/venvs/flexget/include -I/usr/include/python3.9 -c c/dec/state.c -o bin/temp.linux-armv7l-cpython-39/c/dec/state.o
      arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ic/include -I/home/osmc/.local/pipx/venvs/flexget/include -I/usr/include/python3.9 -c c/enc/backward_references.c -o bin/temp.linux-armv7l-cpython-39/c/enc/backward_references.o
      arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ic/include -I/home/osmc/.local/pipx/venvs/flexget/include -I/usr/include/python3.9 -c c/enc/backward_references_hq.c -o bin/temp.linux-armv7l-cpython-39/c/enc/backward_references_hq.o
      arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ic/include -I/home/osmc/.local/pipx/venvs/flexget/include -I/usr/include/python3.9 -c c/enc/bit_cost.c -o bin/temp.linux-armv7l-cpython-39/c/enc/bit_cost.o
      arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ic/include -I/home/osmc/.local/pipx/venvs/flexget/include -I/usr/include/python3.9 -c c/enc/block_splitter.c -o bin/temp.linux-armv7l-cpython-39/c/enc/block_splitter.o
      arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ic/include -I/home/osmc/.local/pipx/venvs/flexget/include -I/usr/include/python3.9 -c c/enc/brotli_bit_stream.c -o bin/temp.linux-armv7l-cpython-39/c/enc/brotli_bit_stream.o
      arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ic/include -I/home/osmc/.local/pipx/venvs/flexget/include -I/usr/include/python3.9 -c c/enc/cluster.c -o bin/temp.linux-armv7l-cpython-39/c/enc/cluster.o
      arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ic/include -I/home/osmc/.local/pipx/venvs/flexget/include -I/usr/include/python3.9 -c c/enc/command.c -o bin/temp.linux-armv7l-cpython-39/c/enc/command.o
      arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ic/include -I/home/osmc/.local/pipx/venvs/flexget/include -I/usr/include/python3.9 -c c/enc/compress_fragment.c -o bin/temp.linux-armv7l-cpython-39/c/enc/compress_fragment.o
      arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ic/include -I/home/osmc/.local/pipx/venvs/flexget/include -I/usr/include/python3.9 -c c/enc/compress_fragment_two_pass.c -o bin/temp.linux-armv7l-cpython-39/c/enc/compress_fragment_two_pass.o
      arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ic/include -I/home/osmc/.local/pipx/venvs/flexget/include -I/usr/include/python3.9 -c c/enc/dictionary_hash.c -o bin/temp.linux-armv7l-cpython-39/c/enc/dictionary_hash.o
      arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ic/include -I/home/osmc/.local/pipx/venvs/flexget/include -I/usr/include/python3.9 -c c/enc/encode.c -o bin/temp.linux-armv7l-cpython-39/c/enc/encode.o
      arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ic/include -I/home/osmc/.local/pipx/venvs/flexget/include -I/usr/include/python3.9 -c c/enc/encoder_dict.c -o bin/temp.linux-armv7l-cpython-39/c/enc/encoder_dict.o
      arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ic/include -I/home/osmc/.local/pipx/venvs/flexget/include -I/usr/include/python3.9 -c c/enc/entropy_encode.c -o bin/temp.linux-armv7l-cpython-39/c/enc/entropy_encode.o
      arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ic/include -I/home/osmc/.local/pipx/venvs/flexget/include -I/usr/include/python3.9 -c c/enc/fast_log.c -o bin/temp.linux-armv7l-cpython-39/c/enc/fast_log.o
      arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ic/include -I/home/osmc/.local/pipx/venvs/flexget/include -I/usr/include/python3.9 -c c/enc/histogram.c -o bin/temp.linux-armv7l-cpython-39/c/enc/histogram.o
      arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ic/include -I/home/osmc/.local/pipx/venvs/flexget/include -I/usr/include/python3.9 -c c/enc/literal_cost.c -o bin/temp.linux-armv7l-cpython-39/c/enc/literal_cost.o
      arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ic/include -I/home/osmc/.local/pipx/venvs/flexget/include -I/usr/include/python3.9 -c c/enc/memory.c -o bin/temp.linux-armv7l-cpython-39/c/enc/memory.o
      arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ic/include -I/home/osmc/.local/pipx/venvs/flexget/include -I/usr/include/python3.9 -c c/enc/metablock.c -o bin/temp.linux-armv7l-cpython-39/c/enc/metablock.o
      arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ic/include -I/home/osmc/.local/pipx/venvs/flexget/include -I/usr/include/python3.9 -c c/enc/static_dict.c -o bin/temp.linux-armv7l-cpython-39/c/enc/static_dict.o
      arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ic/include -I/home/osmc/.local/pipx/venvs/flexget/include -I/usr/include/python3.9 -c c/enc/utf8_util.c -o bin/temp.linux-armv7l-cpython-39/c/enc/utf8_util.o
      creating bin/temp.linux-armv7l-cpython-39/python
      arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ic/include -I/home/osmc/.local/pipx/venvs/flexget/include -I/usr/include/python3.9 -c python/_brotli.cc -o bin/temp.linux-armv7l-cpython-39/python/_brotli.o
      arm-linux-gnueabihf-gcc: fatal error: cannot execute 'cc1plus': execvp: No such file or directory
      compilation terminated.
      error: command '/usr/bin/arm-linux-gnueabihf-gcc' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for brotli
  error: subprocess-exited-with-error

  × Running setup.py install for brotli did not run successfully.
  │ exit code: 1
  ╰─> [51 lines of output]
      /home/osmc/.local/pipx/shared/lib/python3.9/site-packages/setuptools/dist.py:788: UserWarning: Usage of dash-separated 'build-base' will not be supported in future versions. Please use the underscore name 'build_base' instead
        warnings.warn(
      running install
      /home/osmc/.local/pipx/shared/lib/python3.9/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      running build
      running build_py
      creating bin
      creating bin/lib.linux-armv7l-cpython-39
      copying python/brotli.py -> bin/lib.linux-armv7l-cpython-39
      running build_ext
      building '_brotli' extension
      creating bin/temp.linux-armv7l-cpython-39
      creating bin/temp.linux-armv7l-cpython-39/c
      creating bin/temp.linux-armv7l-cpython-39/c/common
      creating bin/temp.linux-armv7l-cpython-39/c/dec
      creating bin/temp.linux-armv7l-cpython-39/c/enc
      arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ic/include -I/home/osmc/.local/pipx/venvs/flexget/include -I/usr/include/python3.9 -c c/common/constants.c -o bin/temp.linux-armv7l-cpython-39/c/common/constants.o
      arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ic/include -I/home/osmc/.local/pipx/venvs/flexget/include -I/usr/include/python3.9 -c c/common/context.c -o bin/temp.linux-armv7l-cpython-39/c/common/context.o
      arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ic/include -I/home/osmc/.local/pipx/venvs/flexget/include -I/usr/include/python3.9 -c c/common/dictionary.c -o bin/temp.linux-armv7l-cpython-39/c/common/dictionary.o
      arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ic/include -I/home/osmc/.local/pipx/venvs/flexget/include -I/usr/include/python3.9 -c c/common/platform.c -o bin/temp.linux-armv7l-cpython-39/c/common/platform.o
      arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ic/include -I/home/osmc/.local/pipx/venvs/flexget/include -I/usr/include/python3.9 -c c/common/transform.c -o bin/temp.linux-armv7l-cpython-39/c/common/transform.o
      arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ic/include -I/home/osmc/.local/pipx/venvs/flexget/include -I/usr/include/python3.9 -c c/dec/bit_reader.c -o bin/temp.linux-armv7l-cpython-39/c/dec/bit_reader.o
      arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ic/include -I/home/osmc/.local/pipx/venvs/flexget/include -I/usr/include/python3.9 -c c/dec/decode.c -o bin/temp.linux-armv7l-cpython-39/c/dec/decode.o
      arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ic/include -I/home/osmc/.local/pipx/venvs/flexget/include -I/usr/include/python3.9 -c c/dec/huffman.c -o bin/temp.linux-armv7l-cpython-39/c/dec/huffman.o
      arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ic/include -I/home/osmc/.local/pipx/venvs/flexget/include -I/usr/include/python3.9 -c c/dec/state.c -o bin/temp.linux-armv7l-cpython-39/c/dec/state.o
      arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ic/include -I/home/osmc/.local/pipx/venvs/flexget/include -I/usr/include/python3.9 -c c/enc/backward_references.c -o bin/temp.linux-armv7l-cpython-39/c/enc/backward_references.o
      arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ic/include -I/home/osmc/.local/pipx/venvs/flexget/include -I/usr/include/python3.9 -c c/enc/backward_references_hq.c -o bin/temp.linux-armv7l-cpython-39/c/enc/backward_references_hq.o
      arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ic/include -I/home/osmc/.local/pipx/venvs/flexget/include -I/usr/include/python3.9 -c c/enc/bit_cost.c -o bin/temp.linux-armv7l-cpython-39/c/enc/bit_cost.o
      arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ic/include -I/home/osmc/.local/pipx/venvs/flexget/include -I/usr/include/python3.9 -c c/enc/block_splitter.c -o bin/temp.linux-armv7l-cpython-39/c/enc/block_splitter.o
      arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ic/include -I/home/osmc/.local/pipx/venvs/flexget/include -I/usr/include/python3.9 -c c/enc/brotli_bit_stream.c -o bin/temp.linux-armv7l-cpython-39/c/enc/brotli_bit_stream.o
      arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ic/include -I/home/osmc/.local/pipx/venvs/flexget/include -I/usr/include/python3.9 -c c/enc/cluster.c -o bin/temp.linux-armv7l-cpython-39/c/enc/cluster.o
      arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ic/include -I/home/osmc/.local/pipx/venvs/flexget/include -I/usr/include/python3.9 -c c/enc/command.c -o bin/temp.linux-armv7l-cpython-39/c/enc/command.o
      arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ic/include -I/home/osmc/.local/pipx/venvs/flexget/include -I/usr/include/python3.9 -c c/enc/compress_fragment.c -o bin/temp.linux-armv7l-cpython-39/c/enc/compress_fragment.o
      arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ic/include -I/home/osmc/.local/pipx/venvs/flexget/include -I/usr/include/python3.9 -c c/enc/compress_fragment_two_pass.c -o bin/temp.linux-armv7l-cpython-39/c/enc/compress_fragment_two_pass.o
      arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ic/include -I/home/osmc/.local/pipx/venvs/flexget/include -I/usr/include/python3.9 -c c/enc/dictionary_hash.c -o bin/temp.linux-armv7l-cpython-39/c/enc/dictionary_hash.o
      arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ic/include -I/home/osmc/.local/pipx/venvs/flexget/include -I/usr/include/python3.9 -c c/enc/encode.c -o bin/temp.linux-armv7l-cpython-39/c/enc/encode.o
      arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ic/include -I/home/osmc/.local/pipx/venvs/flexget/include -I/usr/include/python3.9 -c c/enc/encoder_dict.c -o bin/temp.linux-armv7l-cpython-39/c/enc/encoder_dict.o
      arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ic/include -I/home/osmc/.local/pipx/venvs/flexget/include -I/usr/include/python3.9 -c c/enc/entropy_encode.c -o bin/temp.linux-armv7l-cpython-39/c/enc/entropy_encode.o
      arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ic/include -I/home/osmc/.local/pipx/venvs/flexget/include -I/usr/include/python3.9 -c c/enc/fast_log.c -o bin/temp.linux-armv7l-cpython-39/c/enc/fast_log.o
      arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ic/include -I/home/osmc/.local/pipx/venvs/flexget/include -I/usr/include/python3.9 -c c/enc/histogram.c -o bin/temp.linux-armv7l-cpython-39/c/enc/histogram.o
      arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ic/include -I/home/osmc/.local/pipx/venvs/flexget/include -I/usr/include/python3.9 -c c/enc/literal_cost.c -o bin/temp.linux-armv7l-cpython-39/c/enc/literal_cost.o
      arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ic/include -I/home/osmc/.local/pipx/venvs/flexget/include -I/usr/include/python3.9 -c c/enc/memory.c -o bin/temp.linux-armv7l-cpython-39/c/enc/memory.o
      arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ic/include -I/home/osmc/.local/pipx/venvs/flexget/include -I/usr/include/python3.9 -c c/enc/metablock.c -o bin/temp.linux-armv7l-cpython-39/c/enc/metablock.o
      arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ic/include -I/home/osmc/.local/pipx/venvs/flexget/include -I/usr/include/python3.9 -c c/enc/static_dict.c -o bin/temp.linux-armv7l-cpython-39/c/enc/static_dict.o
      arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ic/include -I/home/osmc/.local/pipx/venvs/flexget/include -I/usr/include/python3.9 -c c/enc/utf8_util.c -o bin/temp.linux-armv7l-cpython-39/c/enc/utf8_util.o
      creating bin/temp.linux-armv7l-cpython-39/python
      arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ic/include -I/home/osmc/.local/pipx/venvs/flexget/include -I/usr/include/python3.9 -c python/_brotli.cc -o bin/temp.linux-armv7l-cpython-39/python/_brotli.o
      arm-linux-gnueabihf-gcc: fatal error: cannot execute 'cc1plus': execvp: No such file or directory
      compilation terminated.
      error: command '/usr/bin/arm-linux-gnueabihf-gcc' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> brotli

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

Make sure you have development tools installed (build-essential package)
Don’t cross compile.

1 Like

Once again, the king @sam_nazarko has resolved an issue in just 2 seconds, while I spent 2 months pulling my hair away without finding a clue how to move forward. :upside_down_face:

You were 100% right @sam_nazarko : installing build essential package first, resolved all the issue.

So first running this cmdline

sudo apt install build-essential

Secondly running the cmdline works fine

sudo pip install flexget

Thx again for your valuable help Sir ! :+1:

Cheers.