Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spidev broken? #52

Open
RosensRauk opened this issue May 9, 2024 · 2 comments
Open

Spidev broken? #52

RosensRauk opened this issue May 9, 2024 · 2 comments

Comments

@RosensRauk
Copy link

RosensRauk commented May 9, 2024

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
Copy link
Owner

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
Copy link
Owner

There's also this ...

Comment in DietPi Issue 6549
MichaIng/DietPi#6549 (comment)

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants