Skip to content

Fix rpi-lgpio installation on non-ARM systems#2558

Open
astnerdev wants to merge 4 commits intoMiczFlor:future3/developfrom
astnerdev:future3/fix-docker-lgpio
Open

Fix rpi-lgpio installation on non-ARM systems#2558
astnerdev wants to merge 4 commits intoMiczFlor:future3/developfrom
astnerdev:future3/fix-docker-lgpio

Conversation

@astnerdev
Copy link
Copy Markdown

This update restricts the installation of rpi-lgpio to Raspberry Pi architectures only (armv7l or aarch64) using environment markers in requirements.txt.

Previously, the dependency caused installation errors on x86 or other non-ARM hosts, which resulted in failed Docker builds. With this change applied, the following command should no longer fail:

docker compose -f docker/docker-compose.yml -f docker/docker-compose.linux.yml up

- Added platform_machine condition to rpi-lgpio in requirements.txt
- Prevents installation on non-Raspberry Pi systems
@s-martin s-martin added enhancement future3 Relates to future3 development labels Nov 3, 2025
@AlvinSchiller
Copy link
Copy Markdown
Collaborator

Hi, the phoniebox software still supports the Pi1 Model. For this the architecture is "armv6l". This should also be added.

@s-martin
Copy link
Copy Markdown
Collaborator

Is this PR still necessary with #2568?

@coveralls
Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 19716136597

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 38.14%

Totals Coverage Status
Change from base Build 19665970285: 0.0%
Covered Lines: 492
Relevant Lines: 1290

💛 - Coveralls

@astnerdev
Copy link
Copy Markdown
Author

@s-martin From my point of view it is still required, otherwise the Dockerfile Dockerfile.jukebox cannot be built.

When building the Dockerfile, I get the following error:

target jukebox: failed to solve: process "/bin/sh -c pip install --no-binary=lgpio --no-cache-dir -r ${INSTALLATION_PATH}/requirements.txt" did not complete successfully: exit code: 1

To make both use cases possible, I extended the pull request.

Docker is only needed for development (e.g. for web development), not for the Pi.

@s-martin s-martin added this to the v3.7.0 milestone Mar 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement future3 Relates to future3 development installation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants