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

Bluepy and Bookworm #507

Open
madmacks59 opened this issue Nov 24, 2023 · 6 comments
Open

Bluepy and Bookworm #507

madmacks59 opened this issue Nov 24, 2023 · 6 comments

Comments

@madmacks59
Copy link

I've been running Bluepy on several Bullseye based RPis for awhile. Recently I had to reformat the SD card on one of those Pis, and I decided to upgrade to Bookworm, as it's the latest Pi OS. All went well, except now I can't install Bluepy on the Pi. When I run the "normal" install process the OS throws an error...

sudo pip install bluepy

results in:
error: externally-managed-environment

This environment is externally managed
To install Python packages system-wide, try apt install python3-xyz, where xyz is the package you are trying to install.

So I try...

sudo apt install python3-bluepy

and the response is...

E: Unable to locate package python3-bluepy

Is there some trick to getting Bluepy installed on Bookworm?

@dheuts90
Copy link

Same question over here... FOund any solutions?

@theyosh
Copy link

theyosh commented Jan 26, 2024

I would go for: https://pypi.org/project/bluepy3/ It should be based on this code. But for python >=3.8 only

@OnlyNandan
Copy link

Im having the same issue. Using it for wof. Did you guys have any luck?

@madmacks59
Copy link
Author

I had to set up and use a VENV using Bookworm. Once I figured out how to do that it worked fine, but it took me awhile to figure it out.

@OnlyNandan
Copy link

OnlyNandan commented Mar 9, 2024

So all I have to do is get bluepy installed with venv using source ./ and just run and check if wof program is running then deactivate and then install the plugin

@technomav
Copy link

Add this at the end of pip install "--break-system-packages"
eg: sudo pip install bluepy --break-system-packages
This will install bluepy as its install earlier, no need to change any libs.

This is due to your distribution adopting PEP 668 – Marking Python base environments as “externally managed”.

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

5 participants