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

uv pip fails to install necessary packages #916

Open
jepler opened this issue Dec 10, 2024 · 2 comments
Open

uv pip fails to install necessary packages #916

jepler opened this issue Dec 10, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@jepler
Copy link
Member

jepler commented Dec 10, 2024

Board Name

Raspberry Pi 5

Steps

  1. Install uv
  2. uv venv /tmp/blinka-uv
  3. . /tmp/blinka-uv/bin/activate
  4. uv pip install adafruit-blinka
  5. python -c 'import board

Description

Following these steps, the result is ModuleNotFoundError: No module named 'RPi'. Comparing uv pip freeze in this venv to pip freeze in a working venv, one can see the following two files were not installed: rpi-ws281x==5.0.0 RPi.GPIO==0.7.1

Additional information

This is likely to be related to how these declarations are conditional in the setup.py file. I couldn't find where this was a documented limitation of uv, but it seems possible/likely.

. o O ( I'm actually not sure how good old pip knows how to install RPi.GPIO when it installs a wheel of adafruit-blinka... )

@jepler jepler added the bug Something isn't working label Dec 10, 2024
@jepler
Copy link
Member Author

jepler commented Dec 10, 2024

just documenting that blinka & uv are incompatible is probably fine for the moment!

@caternuson
Copy link
Contributor

This is semi-related to #907 and adafruit/Raspberry-Pi-Installer-Scripts#329

I think the only way to get it working (currently) is via that installer script, which does some manual installing/removing to get things setup for Pi5. (see PR 329)

So not surprising things generally aren't working with other tooling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants