mattblovell / kodi_panel

Front panel LCD display for Kodi (via JSON-RPC)
MIT License
12 stars 5 forks source link

Spidev broken? #52

Open RosensRauk opened 4 months ago

RosensRauk commented 4 months ago

As I understand Lumacore is needed for use of an hdmi-display via front buffer copy. I have been struggling and failing the install of Kodi_panel dependencies.

Using the walk through recommended from luma.lcd, trying to get my two hdmi 7inch displays to use kodi_panel to view stats remotely from my networkd Coreelec (vim3) and hopefully also my Home Assistant stats. I cannot get Kodi_panel to work on -Raspberry pi 4 DietPi v9.3.0 (bookworm) with hdmi-display w usb multi touch.

Install of luma.lcd is giving this Trying: $ ~/luma-env/bin/python -m pip install --upgrade luma.lcd Gets: "Building wheel for spidev (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [23 lines of output] /tmp/pip-build-env-wbp8h11c/overlay/lib/python3.11/site-packages/setuptools/dist.py:476: SetuptoolsDeprecationWarning: Invalid dash-separated options !!

          ********************************************************************************
          Usage of dash-separated 'description-file' will not be supported in future
          versions. Please use the underscore name 'description_file' instead.
          By 2024-Sep-26, you need to update your project and remove deprecated calls
          or your builds will no longer be supported.

          See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
          ********************************************************************************

  !!
    opt = self.warn_dash_deprecation(opt, section)
  running bdist_wheel
  running build
  running build_ext
  building 'spidev' extension
  creating build
  creating build/temp.linux-aarch64-cpython-311
  aarch64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/home/dietpi/luma-env/include -I/usr/include/python3.11 -c spidev_module.c -o build/temp.linux-aarch64-cpython-311/spidev_module.o

error: command 'aarch64-linux-gnu-gcc' failed: No such file or directory [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for spidev Failed to build spidev ERROR: Could not build wheels for spidev, which is required to install pyproject.toml-based projects"

Tried to manually install missing dependencies:

"$ sudo apt-get update $ sudo apt-get install python3 python3-pip python3-pil libjpeg-dev zlib1g-dev libfreetype6-dev liblcms2-dev libopenjp2-7 libtiff5 -y"

Error installing Libtiff5: "Libtiff5 -y" gives: "E: Unable to locate package libtiff5"

Tried: -build with libtiff6 -install gcc-arm-linux-gnueabihf

Maybe this is related to bookworm or Diepi?

I am not the best with these kinds of things and would appreciate any pointers getting Kodi_panel to work on my RPI4 remotely (Linux flavor doesn't matter).

mattblovell commented 3 months ago

I don't currently have any direct experience with the bookroom release, unfortunately. This late 2023 thread might be helpful, though:

Installing spidev https://dietpi.com/forum/t/installing-spidev/17779

A later post in that thread states the following:

ok I see. python3-spidev is pulled from https://archive.raspberrypi.org/ Bullseye repository, while python3 is pulled from http://raspbian.raspberrypi.org/ Bookworm repository. This is causing a conflict between versions now. Unfortunately there is still no Bookworm repository available from https://archive.raspberrypi.org/

If that is still the case, then python3-spidev would have to be either compiled from scratch or found via some alternative repository.

mattblovell commented 3 months ago

There's also this ...

Comment in DietPi Issue 6549 https://github.com/MichaIng/DietPi/issues/6549#issuecomment-1678637562

That's [pulling from a Debian repo] fine for time being. At the moment RPI guys did not provide a Bookworm repository. Therefore, we need to pull some files from Debian Bookworm side.