Torrent Box 2021 (Transmission+Bazarr+Radarr+Sonarr+Prowlarr o Jackett)

Sección Unicamente para Tutoriales y Guías
Avatar de Usuario
MuadDib69
Pi Master
Pi Master
Mensajes: 276
Registrado: 16 Dic 2019, 18:22
Agradecido: 60 veces
Agradecimiento recibido: 13 veces

que no pare la música...
hoy lo intento con la guía de la wiki de bazarr -> https://wiki.bazarr.media/Getting-Start ... nux/linux/
Indican que es necesario actualizar Python a 3.7 o superior (como conté en el capítulo anterior tengo la la 3.10.9).
Todo correcto hasta que ejecuto

Código: Seleccionar todo

python3 -m pip install -r requirements.txt
En este paso revienta con:

Código: Seleccionar todo

pi@choam:/opt/bazarr $ python3 -m pip install -r requirements.txt
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: setuptools in /usr/lib/python3.10/site-packages (from -r requirements.txt (line 1)) (65.5.0)
Collecting lxml>=4.3.0 (from -r requirements.txt (line 2))
  Using cached lxml-4.9.2-cp310-cp310-linux_armv7l.whl
Collecting numpy>=1.12.0 (from -r requirements.txt (line 3))
  Using cached numpy-1.24.3-cp310-cp310-linux_armv7l.whl
Collecting webrtcvad-wheels>=2.0.10 (from -r requirements.txt (line 4))
  Using cached webrtcvad_wheels-2.0.11.post1-cp310-cp310-linux_armv7l.whl
Collecting Pillow>=9.0.0 (from -r requirements.txt (line 5))
  Using cached Pillow-9.5.0.tar.gz (50.5 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: Pillow
  Building wheel for Pillow (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for Pillow (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [198 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-armv7l-cpython-310
      creating build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/Jpeg2KImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/EpsImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImageCms.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/PdfParser.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/MpegImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/Hdf5StubImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImageEnhance.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/GimpPaletteFile.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImageGrab.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImageWin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/PaletteFile.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/MpoImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImageStat.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/CurImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/features.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImageChops.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/JpegPresets.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/DdsImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImageColor.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/FitsImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/GbrImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/WmfImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/SunImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImageMorph.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImageMode.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/FpxImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/BufrStubImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/PcdImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImagePath.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImageTk.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/IcnsImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/IcoImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/TiffImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/GribStubImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImageFont.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/IptcImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/_version.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/SgiImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImageShow.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImageFilter.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/GimpGradientFile.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/BdfFontFile.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/MspImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/PcfFontFile.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/PdfImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImtImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImageFile.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/PixarImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/BmpImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/PpmImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/_util.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/XVThumbImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/FontFile.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/PyAccess.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImageMath.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/JpegImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImagePalette.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/GifImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/_tkinter_finder.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/FitsStubImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/SpiderImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/MicImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/XpmImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/QoiImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/TiffTags.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImageTransform.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImageOps.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/__main__.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImageDraw.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/PalmImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ContainerIO.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/GdImageFile.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/XbmImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/WalImageFile.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/PcxImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/WebPImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImageQt.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/FliImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/PsdImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/_deprecate.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ExifTags.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/BlpImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImageSequence.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/_binary.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/PSDraw.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/DcxImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImageDraw2.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/TarIO.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/__init__.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/FtexImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/McIdasImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/Image.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/PngImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/TgaImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      running egg_info
      writing src/Pillow.egg-info/PKG-INFO
      writing dependency_links to src/Pillow.egg-info/dependency_links.txt
      writing requirements to src/Pillow.egg-info/requires.txt
      writing top-level names to src/Pillow.egg-info/top_level.txt
      reading manifest file 'src/Pillow.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      warning: no files found matching '*.c'
      warning: no files found matching '*.h'
      warning: no files found matching '*.sh'
      warning: no files found matching '*.txt'
      warning: no previously-included files found matching '.appveyor.yml'
      warning: no previously-included files found matching '.clang-format'
      warning: no previously-included files found matching '.coveragerc'
      warning: no previously-included files found matching '.editorconfig'
      warning: no previously-included files found matching '.readthedocs.yml'
      warning: no previously-included files found matching 'codecov.yml'
      warning: no previously-included files found matching 'renovate.json'
      warning: no previously-included files matching '.git*' found anywhere in distribution
      warning: no previously-included files matching '*.pyc' found anywhere in distribution
      warning: no previously-included files matching '*.so' found anywhere in distribution
      no previously-included directories found matching '.ci'
      adding license file 'LICENSE'
      writing manifest file 'src/Pillow.egg-info/SOURCES.txt'
      running build_ext


      The headers or library files could not be found for jpeg,
      a required dependency when compiling Pillow from source.

      Please see the install instructions at:
         https://pillow.readthedocs.io/en/latest/installation.html

      Traceback (most recent call last):
        File "<string>", line 993, in <module>
        File "/tmp/pip-build-env-7ciy4ulm/overlay/lib/python3.10/site-packages/setuptools/__init__.py", line 107, in setup
          return distutils.core.setup(**attrs)
        File "/tmp/pip-build-env-7ciy4ulm/overlay/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 185, in setup
          return run_commands(dist)
        File "/tmp/pip-build-env-7ciy4ulm/overlay/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
          dist.run_commands()
        File "/tmp/pip-build-env-7ciy4ulm/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
          self.run_command(cmd)
        File "/tmp/pip-build-env-7ciy4ulm/overlay/lib/python3.10/site-packages/setuptools/dist.py", line 1244, in run_command
          super().run_command(command)
        File "/tmp/pip-build-env-7ciy4ulm/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/tmp/pip-build-env-7ciy4ulm/overlay/lib/python3.10/site-packages/wheel/bdist_wheel.py", line 343, in run
          self.run_command("build")
        File "/tmp/pip-build-env-7ciy4ulm/overlay/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
          self.distribution.run_command(command)
        File "/tmp/pip-build-env-7ciy4ulm/overlay/lib/python3.10/site-packages/setuptools/dist.py", line 1244, in run_command
          super().run_command(command)
        File "/tmp/pip-build-env-7ciy4ulm/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/tmp/pip-build-env-7ciy4ulm/overlay/lib/python3.10/site-packages/setuptools/_distutils/command/build.py", line 131, in run
          self.run_command(cmd_name)
        File "/tmp/pip-build-env-7ciy4ulm/overlay/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
          self.distribution.run_command(command)
        File "/tmp/pip-build-env-7ciy4ulm/overlay/lib/python3.10/site-packages/setuptools/dist.py", line 1244, in run_command
          super().run_command(command)
        File "/tmp/pip-build-env-7ciy4ulm/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/tmp/pip-build-env-7ciy4ulm/overlay/lib/python3.10/site-packages/setuptools/command/build_ext.py", line 84, in run
          _build_ext.run(self)
        File "/tmp/pip-build-env-7ciy4ulm/overlay/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 345, in run
          self.build_extensions()
        File "<string>", line 809, in build_extensions
      __main__.RequiredDependencyException: jpeg

      During handling of the above exception, another exception occurred:

      Traceback (most recent call last):
        File "/usr/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/usr/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "/usr/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 251, in build_wheel
          return _build_backend().build_wheel(wheel_directory, config_settings,
        File "/tmp/pip-build-env-7ciy4ulm/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 416, in build_wheel
          return self._build_with_temp_dir(['bdist_wheel'], '.whl',
        File "/tmp/pip-build-env-7ciy4ulm/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 401, in _build_with_temp_dir
          self.run_setup()
        File "/tmp/pip-build-env-7ciy4ulm/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 487, in run_setup
          super(_BuildMetaLegacyBackend,
        File "/tmp/pip-build-env-7ciy4ulm/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 338, in run_setup
          exec(code, locals())
        File "<string>", line 1010, in <module>
      __main__.RequiredDependencyException:

      The headers or library files could not be found for jpeg,
      a required dependency when compiling Pillow from source.

      Please see the install instructions at:
         https://pillow.readthedocs.io/en/latest/installation.html


      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for Pillow
Failed to build Pillow
ERROR: Could not build wheels for Pillow, which is required to install pyproject.toml-based projects
lo he preguntado en el discord, pero deben estar en otros temas.

Next chapter soon(R)
farid77
Pi Alpha
Pi Alpha
Mensajes: 25
Registrado: 20 May 2018, 01:12
Agradecido: 0
Agradecimiento recibido: 2 veces

Hola

el comando es incorrecto deberias usar:
python3 -m pip install -r requirements.txt
y asegurarte antes de haber instalado python3-pip

saludos
Estos usuarios agradecieron al autor farid77 por el mensaje:
MuadDib69
Avatar de Usuario
MuadDib69
Pi Master
Pi Master
Mensajes: 276
Registrado: 16 Dic 2019, 18:22
Agradecido: 60 veces
Agradecimiento recibido: 13 veces

Hola Farid, gracias por la respuesta.
No entiendo, mi "python3 -m pip install -r requirements.txt" es igual a tu "python3 -m pip install -r requirements.txt".
De todas maneras agradezco tu sugerencia -> https://pimylifeup.com/raspberry-pi-pip/ con

Código: Seleccionar todo

sudo apt install python3-pip
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias
Leyendo la información de estado... Hecho
python3-pip ya está en su versión más reciente (18.1-5+rpt1).
0 actualizados, 0 nuevos se instalarán, 0 para eliminar y 0 no actualizados.

Código: Seleccionar todo

pip --version
pip 23.1.2 from /usr/lib/python3.10/site-packages/pip (python 3.10)
por lo que entiendo que ya estaba bien instalado.

Creo que el problema está por aquí:

requirements.txt contiene:

Código: Seleccionar todo

setuptools
lxml>=4.3.0
numpy>=1.12.0
webrtcvad-wheels>=2.0.10
Pillow>=9.0.0
encuentro en https://blog.finxter.com/how-to-check-p ... in-python/ como comprobar el paquete pillow:

Código: Seleccionar todo

pip list
Package    Version
---------- -------
pip        23.1.2
setuptools 67.7.2
wheel      0.40.0
(no aparece pillow) (¿?)

Código: Seleccionar todo

pip show pillow
WARNING: Package(s) not found: pillow

Código: Seleccionar todo

pip3 show pillow
WARNING: Package(s) not found: pillow
lo pruebo con:

Código: Seleccionar todo

python -m pip show pillow -> WARNING: Package(s) not found: pillow
python3 -m pip show pillow -> WARNING: Package(s) not found: pillow
py -m pip show pillow -> -bash: py: orden no encontrada
pip3 show pillow - WARNING: Package(s) not found: pillow
...empiezo a pensar que no tengo pillow :guiño2 (sea lo que sea pillow :avergonzado )

Encuentro esta guía pero me parece toomuch4me (porque soy solamente un padawan) https://www.techcoil.com/blog/how-to-se ... pberry-pi/
Por otro lado, python3 -m pip install --upgrade Pillow me parece más asequible a mis posibilidades... pero...

Código: Seleccionar todo

python3 -m pip install --upgrade Pillow
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting Pillow
  Using cached Pillow-9.5.0.tar.gz (50.5 MB)
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: Pillow
  Building wheel for Pillow (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [189 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-armv7l-cpython-310
      creating build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/Jpeg2KImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/EpsImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImageCms.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/PdfParser.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/MpegImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/Hdf5StubImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImageEnhance.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/GimpPaletteFile.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImageGrab.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImageWin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/PaletteFile.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/MpoImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImageStat.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/CurImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/features.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImageChops.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/JpegPresets.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/DdsImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImageColor.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/FitsImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/GbrImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/WmfImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/SunImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImageMorph.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImageMode.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/FpxImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/BufrStubImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/PcdImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImagePath.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImageTk.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/IcnsImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/IcoImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/TiffImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/GribStubImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImageFont.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/IptcImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/_version.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/SgiImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImageShow.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImageFilter.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/GimpGradientFile.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/BdfFontFile.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/MspImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/PcfFontFile.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/PdfImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImtImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImageFile.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/PixarImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/BmpImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/PpmImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/_util.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/XVThumbImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/FontFile.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/PyAccess.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImageMath.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/JpegImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImagePalette.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/GifImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/_tkinter_finder.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/FitsStubImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/SpiderImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/MicImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/XpmImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/QoiImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/TiffTags.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImageTransform.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImageOps.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/__main__.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImageDraw.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/PalmImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ContainerIO.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/GdImageFile.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/XbmImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/WalImageFile.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/PcxImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/WebPImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImageQt.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/FliImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/PsdImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/_deprecate.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ExifTags.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/BlpImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImageSequence.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/_binary.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/PSDraw.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/DcxImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImageDraw2.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/TarIO.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/__init__.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/FtexImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/McIdasImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/Image.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/PngImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/TgaImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      running egg_info
      writing src/Pillow.egg-info/PKG-INFO
      writing dependency_links to src/Pillow.egg-info/dependency_links.txt
      writing requirements to src/Pillow.egg-info/requires.txt
      writing top-level names to src/Pillow.egg-info/top_level.txt
      reading manifest file 'src/Pillow.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      warning: no files found matching '*.c'
      warning: no files found matching '*.h'
      warning: no files found matching '*.sh'
      warning: no files found matching '*.txt'
      warning: no previously-included files found matching '.appveyor.yml'
      warning: no previously-included files found matching '.clang-format'
      warning: no previously-included files found matching '.coveragerc'
      warning: no previously-included files found matching '.editorconfig'
      warning: no previously-included files found matching '.readthedocs.yml'
      warning: no previously-included files found matching 'codecov.yml'
      warning: no previously-included files found matching 'renovate.json'
      warning: no previously-included files matching '.git*' found anywhere in distribution
      warning: no previously-included files matching '*.pyc' found anywhere in distribution
      warning: no previously-included files matching '*.so' found anywhere in distribution
      no previously-included directories found matching '.ci'
      adding license file 'LICENSE'
      writing manifest file 'src/Pillow.egg-info/SOURCES.txt'
      running build_ext


      The headers or library files could not be found for jpeg,
      a required dependency when compiling Pillow from source.

      Please see the install instructions at:
         https://pillow.readthedocs.io/en/latest/installation.html

      Traceback (most recent call last):
        File "/tmp/pip-install-7cpln62c/pillow_3d4164c1e02c421d84a48f82e0b029a0/setup.py", line 993, in <module>
          setup(
        File "/home/pi/.local/lib/python3.10/site-packages/setuptools/__init__.py", line 107, in setup
          return distutils.core.setup(**attrs)
        File "/home/pi/.local/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 185, in setup
          return run_commands(dist)
        File "/home/pi/.local/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
          dist.run_commands()
        File "/home/pi/.local/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
          self.run_command(cmd)
        File "/home/pi/.local/lib/python3.10/site-packages/setuptools/dist.py", line 1244, in run_command
          super().run_command(command)
        File "/home/pi/.local/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/home/pi/.local/lib/python3.10/site-packages/wheel/bdist_wheel.py", line 343, in run
          self.run_command("build")
        File "/home/pi/.local/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
          self.distribution.run_command(command)
        File "/home/pi/.local/lib/python3.10/site-packages/setuptools/dist.py", line 1244, in run_command
          super().run_command(command)
        File "/home/pi/.local/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/home/pi/.local/lib/python3.10/site-packages/setuptools/_distutils/command/build.py", line 131, in run
          self.run_command(cmd_name)
        File "/home/pi/.local/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
          self.distribution.run_command(command)
        File "/home/pi/.local/lib/python3.10/site-packages/setuptools/dist.py", line 1244, in run_command
          super().run_command(command)
        File "/home/pi/.local/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/home/pi/.local/lib/python3.10/site-packages/setuptools/command/build_ext.py", line 84, in run
          _build_ext.run(self)
        File "/home/pi/.local/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 345, in run
          self.build_extensions()
        File "/tmp/pip-install-7cpln62c/pillow_3d4164c1e02c421d84a48f82e0b029a0/setup.py", line 809, in build_extensions
          raise RequiredDependencyException(f)
      __main__.RequiredDependencyException: jpeg

      During handling of the above exception, another exception occurred:

      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-7cpln62c/pillow_3d4164c1e02c421d84a48f82e0b029a0/setup.py", line 1010, in <module>
          raise RequiredDependencyException(msg)
      __main__.RequiredDependencyException:

      The headers or library files could not be found for jpeg,
      a required dependency when compiling Pillow from source.

      Please see the install instructions at:
         https://pillow.readthedocs.io/en/latest/installation.html


      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for Pillow
  Running setup.py clean for Pillow
Failed to build Pillow
ERROR: Could not build wheels for Pillow, which is required to install pyproject.toml-based projects
y pensando que no debería haber --upgrade sin instalación previa, pruebo

Código: Seleccionar todo

python3 -m pip install Pillow
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting Pillow
  Using cached Pillow-9.5.0.tar.gz (50.5 MB)
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: Pillow
  Building wheel for Pillow (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [189 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-armv7l-cpython-310
      creating build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/Jpeg2KImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/EpsImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImageCms.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/PdfParser.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/MpegImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/Hdf5StubImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImageEnhance.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/GimpPaletteFile.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImageGrab.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImageWin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/PaletteFile.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/MpoImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImageStat.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/CurImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/features.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImageChops.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/JpegPresets.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/DdsImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImageColor.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/FitsImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/GbrImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/WmfImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/SunImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImageMorph.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImageMode.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/FpxImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/BufrStubImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/PcdImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImagePath.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImageTk.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/IcnsImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/IcoImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/TiffImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/GribStubImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImageFont.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/IptcImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/_version.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/SgiImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImageShow.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImageFilter.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/GimpGradientFile.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/BdfFontFile.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/MspImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/PcfFontFile.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/PdfImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImtImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImageFile.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/PixarImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/BmpImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/PpmImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/_util.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/XVThumbImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/FontFile.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/PyAccess.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImageMath.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/JpegImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImagePalette.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/GifImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/_tkinter_finder.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/FitsStubImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/SpiderImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/MicImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/XpmImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/QoiImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/TiffTags.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImageTransform.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImageOps.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/__main__.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImageDraw.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/PalmImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ContainerIO.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/GdImageFile.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/XbmImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/WalImageFile.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/PcxImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/WebPImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImageQt.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/FliImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/PsdImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/_deprecate.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ExifTags.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/BlpImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImageSequence.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/_binary.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/PSDraw.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/DcxImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/ImageDraw2.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/TarIO.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/__init__.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/FtexImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/McIdasImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/Image.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/PngImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      copying src/PIL/TgaImagePlugin.py -> build/lib.linux-armv7l-cpython-310/PIL
      running egg_info
      writing src/Pillow.egg-info/PKG-INFO
      writing dependency_links to src/Pillow.egg-info/dependency_links.txt
      writing requirements to src/Pillow.egg-info/requires.txt
      writing top-level names to src/Pillow.egg-info/top_level.txt
      reading manifest file 'src/Pillow.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      warning: no files found matching '*.c'
      warning: no files found matching '*.h'
      warning: no files found matching '*.sh'
      warning: no files found matching '*.txt'
      warning: no previously-included files found matching '.appveyor.yml'
      warning: no previously-included files found matching '.clang-format'
      warning: no previously-included files found matching '.coveragerc'
      warning: no previously-included files found matching '.editorconfig'
      warning: no previously-included files found matching '.readthedocs.yml'
      warning: no previously-included files found matching 'codecov.yml'
      warning: no previously-included files found matching 'renovate.json'
      warning: no previously-included files matching '.git*' found anywhere in distribution
      warning: no previously-included files matching '*.pyc' found anywhere in distribution
      warning: no previously-included files matching '*.so' found anywhere in distribution
      no previously-included directories found matching '.ci'
      adding license file 'LICENSE'
      writing manifest file 'src/Pillow.egg-info/SOURCES.txt'
      running build_ext


      The headers or library files could not be found for jpeg,
      a required dependency when compiling Pillow from source.

      Please see the install instructions at:
         https://pillow.readthedocs.io/en/latest/installation.html

      Traceback (most recent call last):
        File "/tmp/pip-install-4cd6mgr3/pillow_44a975b91e804ce6a0d761e58dcee5a1/setup.py", line 993, in <module>
          setup(
        File "/home/pi/.local/lib/python3.10/site-packages/setuptools/__init__.py", line 107, in setup
          return distutils.core.setup(**attrs)
        File "/home/pi/.local/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 185, in setup
          return run_commands(dist)
        File "/home/pi/.local/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
          dist.run_commands()
        File "/home/pi/.local/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
          self.run_command(cmd)
        File "/home/pi/.local/lib/python3.10/site-packages/setuptools/dist.py", line 1244, in run_command
          super().run_command(command)
        File "/home/pi/.local/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/home/pi/.local/lib/python3.10/site-packages/wheel/bdist_wheel.py", line 343, in run
          self.run_command("build")
        File "/home/pi/.local/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
          self.distribution.run_command(command)
        File "/home/pi/.local/lib/python3.10/site-packages/setuptools/dist.py", line 1244, in run_command
          super().run_command(command)
        File "/home/pi/.local/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/home/pi/.local/lib/python3.10/site-packages/setuptools/_distutils/command/build.py", line 131, in run
          self.run_command(cmd_name)
        File "/home/pi/.local/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
          self.distribution.run_command(command)
        File "/home/pi/.local/lib/python3.10/site-packages/setuptools/dist.py", line 1244, in run_command
          super().run_command(command)
        File "/home/pi/.local/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/home/pi/.local/lib/python3.10/site-packages/setuptools/command/build_ext.py", line 84, in run
          _build_ext.run(self)
        File "/home/pi/.local/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 345, in run
          self.build_extensions()
        File "/tmp/pip-install-4cd6mgr3/pillow_44a975b91e804ce6a0d761e58dcee5a1/setup.py", line 809, in build_extensions
          raise RequiredDependencyException(f)
      __main__.RequiredDependencyException: jpeg

      During handling of the above exception, another exception occurred:

      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-4cd6mgr3/pillow_44a975b91e804ce6a0d761e58dcee5a1/setup.py", line 1010, in <module>
          raise RequiredDependencyException(msg)
      __main__.RequiredDependencyException:

      The headers or library files could not be found for jpeg,
      a required dependency when compiling Pillow from source.

      Please see the install instructions at:
         https://pillow.readthedocs.io/en/latest/installation.html


      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for Pillow
  Running setup.py clean for Pillow
Failed to build Pillow
ERROR: Could not build wheels for Pillow, which is required to install pyproject.toml-based projects
así que a la casilla de salida... pero entretenido.
Avatar de Usuario
MuadDib69
Pi Master
Pi Master
Mensajes: 276
Registrado: 16 Dic 2019, 18:22
Agradecido: 60 veces
Agradecimiento recibido: 13 veces

I'm on fire... (perdón por el monólogo)
"What system libraries are required to support Pillow on Raspbian Buster Lite?"
https://raspberrypi.stackexchange.com/q ... uster-lite

Código: Seleccionar todo

sudo apt install libwebp6 libtiff5 libjbig0 liblcms2-2 libwebpmux3 libopenjp2-7 libzstd1 libwebpdemux2
pero... tampoco es el problema

Código: Seleccionar todo

sudo apt install libwebp6 libtiff5 libjbig0 liblcms2-2 libwebpmux3 libopenjp2-7 libzstd1 libwebpdemux2
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias
Leyendo la información de estado... Hecho
libjbig0 ya está en su versión más reciente (2.1-3.1+b2).
fijado libjbig0 como instalado manualmente.
liblcms2-2 ya está en su versión más reciente (2.9-3).
fijado liblcms2-2 como instalado manualmente.
libopenjp2-7 ya está en su versión más reciente (2.3.0-2+deb10u2).
fijado libopenjp2-7 como instalado manualmente.
libtiff5 ya está en su versión más reciente (4.1.0+git191117-2~deb10u7).
fijado libtiff5 como instalado manualmente.
libwebp6 ya está en su versión más reciente (0.6.1-2+deb10u1).
fijado libwebp6 como instalado manualmente.
libwebpdemux2 ya está en su versión más reciente (0.6.1-2+deb10u1).
fijado libwebpdemux2 como instalado manualmente.
libwebpmux3 ya está en su versión más reciente (0.6.1-2+deb10u1).
fijado libwebpmux3 como instalado manualmente.
libzstd1 ya está en su versión más reciente (1.3.8+dfsg-3+rpi1+deb10u2).
0 actualizados, 0 nuevos se instalarán, 0 para eliminar y 0 no actualizados.
Avatar de Usuario
MuadDib69
Pi Master
Pi Master
Mensajes: 276
Registrado: 16 Dic 2019, 18:22
Agradecido: 60 veces
Agradecimiento recibido: 13 veces

Jiuston... he dado con la solución.
Después de

Código: Seleccionar todo

sudo apt install zlib1g-dev libjpeg-dev libpng-dev
python -m pip install --upgrade Pillow
Ha funcionado el

Código: Seleccionar todo

/opt/bazarr $ python3 -m pip install -r requirements.txt
y el pip list ha cambiado a

Código: Seleccionar todo

pip list
Package          Version
---------------- ------------
lxml             4.9.2
numpy            1.24.3
Pillow           9.5.0
pip              23.1.2
setuptools       67.7.2
webrtcvad-wheels 2.0.11.post1
wheel            0.40.0
he seguido con la instalación desde ese punto (guía -> https://wiki.bazarr.media/Getting-Start ... nux/linux/), y aunque está pelao (ha olvidado toda la config que tenía -no me extraña con tanta guarrada que le he hecho-, arranca el servicio y es accesible desde *:6767
Estos usuarios agradecieron al autor MuadDib69 por el mensaje:
klingsor
Avatar de Usuario
klingsor
Pi Master
Pi Master
Mensajes: 460
Registrado: 14 Jul 2017, 12:16
Agradecido: 69 veces
Agradecimiento recibido: 86 veces

Me alegro que lo hayas arreglado por fin, lo guardo por si me toca arreglarlo a mi. Yo hubiera desistido hace tiempo :)

Saludos.
Estos usuarios agradecieron al autor klingsor por el mensaje:
MuadDib69
duna4
Pi Newbie
Pi Newbie
Mensajes: 1
Registrado: 08 Jul 2023, 19:57
Agradecido: 0
Agradecimiento recibido: 1 vez

Hola,
Un método rápido de instalar algunas de las aplicaciones descritas en el hilo es utilizar el script descrito en el Servarr Wiki (https://wiki.servarr.com/install-script)
Nos conectaremos por SSH a nuestra Raspberry y deberemos crear un script tal que así:

En el directorio que queráis vamos a crear el fichero del script (mejor desde el /home/user/)

sudo nano ArrInstall.sh

Copiad lo siguiente y lo pegais en el fichero ArrInstall.sh abierto por nano :


#!/bin/bash
### Description: \*Arr .NET Debian install
### Originally written for Radarr by: DoctorArr - doctorarr@the-rowlands.co.uk on 2021-10-01 v1.0
### Version v1.1 2021-10-02 - Bakerboy448 (Made more generic and conformant)
### Version v1.1.1 2021-10-02 - DoctorArr (Spellcheck and boilerplate update)
### Version v2.0.0 2021-10-09 - Bakerboy448 (Refactored and ensured script is generic. Added more variables.)
### Version v2.0.1 2021-11-23 - brightghost (Fixed datadir step to use correct variables.)
### Version v3.0.0 2022-02-03 - Bakerboy448 (Rewrote script to prompt for user/group and made generic for all \*Arrs)
### Version v3.0.1 2022-02-05 - aeramor (typo fix line 179: 'chown "$app_uid":"$app_uid" -R "$bindir"' -> 'chown "$app_uid":"$app_guid" -R "$bindir"')
### Version v3.0.3 2022-02-06 - Bakerboy448 fixup ownership
### Version v3.0.3a Readarr to develop
### Version v3.0.4 2022-03-01 - Add sleep before checking service status
### Version v3.0.5 2022-04-03 - VP-EN (Added Whisparr)
### Version v3.0.6 2022-04-26 - Bakerboy448 - binaries to group
### Version v3.0.7 2023-01-05 - Bakerboy448 - Prowlarr to master
### Version v3.0.8 2023-04-20 - Bakerboy448 - Shellcheck fixes & remove prior tarballs
### Version v3.0.9 2023-04-28 - Bakerboy448 - fix tarball check
### Additional Updates by: The \*Arr Community

### Boilerplate Warning
#THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
#EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
#MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
#NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
#LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
#OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
#WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

scriptversion="3.0.8"
scriptdate="2023-04-20"

set -euo pipefail

echo "Running \*Arr Install Script - Version [$scriptversion] as of [$scriptdate]"

# Am I root?, need root!

if [ "$EUID" -ne 0 ]; then
echo "Please run as root."
exit
fi

echo "Select the application to install: "

select app in lidarr prowlarr radarr readarr whisparr quit; do

case $app in
lidarr)
app_port="8686" # Default App Port; Modify config.xml after install if needed
app_prereq="curl sqlite3 libchromaprint-tools mediainfo" # Required packages
app_umask="0002" # UMask the Service will run as
branch="master" # {Update me if needed} branch to install
break
;;
prowlarr)
app_port="9696" # Default App Port; Modify config.xml after install if needed
app_prereq="curl sqlite3" # Required packages
app_umask="0002" # UMask the Service will run as
branch="master" # {Update me if needed} branch to install
break
;;
radarr)
app_port="7878" # Default App Port; Modify config.xml after install if needed
app_prereq="curl sqlite3" # Required packages
app_umask="0002" # UMask the Service will run as
branch="master" # {Update me if needed} branch to install
break
;;
readarr)
app_port="8787" # Default App Port; Modify config.xml after install if needed
app_prereq="curl sqlite3" # Required packages
app_umask="0002" # UMask the Service will run as
branch="develop" # {Update me if needed} branch to install
break
;;
whisparr)
app_port="6969" # Default App Port; Modify config.xml after install if needed
app_prereq="curl sqlite3" # Required packages
app_umask="0002" # UMask the Service will run as
branch="nightly" # {Update me if needed} branch to install
break
;;
quit)
exit 0
;;
*)
echo "Invalid option $REPLY"
;;
esac
done

# Constants
### Update these variables as required for your specific instance
installdir="/opt" # {Update me if needed} Install Location
bindir="${installdir}/${app^}" # Full Path to Install Location
datadir="/var/lib/$app/" # {Update me if needed} AppData directory to use
app_bin=${app^} # Binary Name of the app

if [[ $app != 'prowlarr' ]]; then
echo "It is critical that the user and group you select to run ${app^} as will have READ and WRITE access to your Media Library and Download Client Completed Folders"
fi

# Prompt User
read -r -p "What user should ${app^} run as? (Default: $app): " app_uid
app_uid=$(echo "$app_uid" | tr -d ' ')
app_uid=${app_uid:-$app}
# Prompt Group
read -r -p "What group should ${app^} run as? (Default: media): " app_guid
app_guid=$(echo "$app_guid" | tr -d ' ')
app_guid=${app_guid:-media}

echo "${app^} selected"
echo "This will install [${app^}] to [$bindir] and use [$datadir] for the AppData Directory"
if [[ $app == 'prowlarr' ]]; then
echo "${app^} will run as the user [$app_uid] and group [$app_guid]."
else
echo "${app^} will run as the user [$app_uid] and group [$app_guid]. By continuing, you've confirmed that that user and group will have READ and WRITE access to your Media Library and Download Client Completed Download directories"
fi
echo "Continue with the installation [Yes/No]?"
select yn in "Yes" "No"; do
case $yn in
Yes) break ;;
No) exit 0 ;;
esac
done

# Create User / Group as needed
if [ "$app_guid" != "$app_uid" ]; then
if ! getent group "$app_guid" >/dev/null; then
groupadd "$app_guid"
fi
fi
if ! getent passwd "$app_uid" >/dev/null; then
adduser --system --no-create-home --ingroup "$app_guid" "$app_uid"
echo "Created and added User [$app_uid] to Group [$app_guid]"
fi
if ! getent group "$app_guid" | grep -qw "$app_uid"; then
echo "User [$app_uid] did not exist in Group [$app_guid]"
usermod -a -G "$app_guid" "$app_uid"
echo "Added User [$app_uid] to Group [$app_guid]"
fi

# Stop the App if running
if service --status-all | grep -Fq "$app"; then
systemctl stop "$app"
systemctl disable "$app".service
echo "Stopped existing $app"
fi

# Create Appdata Directory

# AppData
mkdir -p "$datadir"
chown -R "$app_uid":"$app_guid" "$datadir"
chmod 775 "$datadir"
echo "Directories created"
# Download and install the App

# prerequisite packages
echo ""
echo "Installing pre-requisite Packages"
# shellcheck disable=SC2086
apt update && apt install $app_prereq
echo ""
ARCH=$(dpkg --print-architecture)
# get arch
dlbase="https://$app.servarr.com/v1/update/$branch/updatefile?os=linux&runtime=netcore"
case "$ARCH" in
"amd64") DLURL="${dlbase}&arch=x64" ;;
"armhf") DLURL="${dlbase}&arch=arm" ;;
"arm64") DLURL="${dlbase}&arch=arm64" ;;
*)
echo "Arch not supported"
exit 1
;;
esac
echo ""
echo "Removing previous tarballs"
# -f to Force so we fail if it doesnt exist
rm -f "${app^}".*.tar.gz
echo ""
echo "Downloading..."
wget --content-disposition "$DLURL"
tar -xvzf "${app^}".*.tar.gz
echo ""
echo "Installation files downloaded and extracted"

# remove existing installs
echo "Removing existing installation"
# If you happen to run this script in the installdir the line below will delete the extracted files and cause the mv some lines below to fail.
rm -rf "$bindir"
echo "Installing..."
mv "${app^}" $installdir
chown "$app_uid":"$app_guid" -R "$bindir"
chmod 775 "$bindir"
rm -rf "${app^}.*.tar.gz"
# Ensure we check for an update in case user installs older version or different branch
touch "$datadir"/update_required
chown "$app_uid":"$app_guid" "$datadir"/update_required
echo "App Installed"
# Configure Autostart

# Remove any previous app .service
echo "Removing old service file"
rm -rf /etc/systemd/system/"$app".service

# Create app .service with correct user startup
echo "Creating service file"
cat <<EOF | tee /etc/systemd/system/"$app".service >/dev/null
[Unit]
Description=${app^} Daemon
After=syslog.target network.target
[Service]
User=$app_uid
Group=$app_guid
UMask=$app_umask
Type=simple
ExecStart=$bindir/$app_bin -nobrowser -data=$datadir
TimeoutStopSec=20
KillMode=process
Restart=on-failure
[Install]
WantedBy=multi-user.target
EOF

# Start the App
echo "Service file created. Attempting to start the app"
systemctl -q daemon-reload
systemctl enable --now -q "$app"

# Finish Update/Installation
host=$(hostname -I)
ip_local=$(grep -oP '^\S*' <<<"$host")
echo ""
echo "Install complete"
sleep 10
STATUS="$(systemctl is-active "$app")"
if [ "${STATUS}" = "active" ]; then
echo "Browse to http://$ip_local:$app_port for the ${app^} GUI"
else
echo "${app^} failed to start"
fi

# Exit
exit 0




Guardad el fichero con Ctrl + o
Salir con Ctrl + x

Desde la consola, y en el mismo directorio donde lo habéis creado, ejecutar:

sudo bash ArrInstall.sh

Tan solo os queda seleccionar qué programa queréis instalar.

Nota: el script os preguntará que user y grupo quereis usar. Estos deberan tener los permisos suficientes para poder correr sin problemas

Espero os sirva de ayuda

saludos
Estos usuarios agradecieron al autor duna4 por el mensaje:
klingsor
Responder