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

Installing into a Python virtual environment? #24

Open
MatthewGerber opened this issue Jan 4, 2024 · 5 comments
Open

Installing into a Python virtual environment? #24

MatthewGerber opened this issue Jan 4, 2024 · 5 comments

Comments

@MatthewGerber
Copy link

@joan2937 Do you have an example (or any previous experience) installing this into a Python virtual environment? I tried various modifications of your makefile, but I haven't been successful. Since virtual environments are a standard way of installing packages, it would seem like a nice enhancement of what you have here.

@joan2937
Copy link
Owner

joan2937 commented Jan 5, 2024

I'm afraid my knowledge of Python is limited and my knowledge of Python virtual environments (venvs) is non-existent.

Have a look through https://forums.raspberrypi.com/viewtopic.php?t=358841

@waveform80
Copy link
Contributor

There should now be wheels available for the lgpio and rgpio projects on PyPI that should work on the armhf architecture. I'm still working on aarch64 builds as PyPI refuses to accept wheels for aarch64 unless they're tagged "manylinux". Unfortunately building those is proving trickier than expected because all the pre-baked containers have linux headers that are too old, so I'm going to need to bake my own build environment for that.

@waveform80
Copy link
Contributor

Well, that took a bit more effort than expected but there should now be statically linked wheels for armv7l and aarch64 on PyPI for CPython versions 3.9 thru 3.12.

@luqdean
Copy link

luqdean commented Apr 9, 2024

Hi Joan,

Can Lgpio function on Ubuntu 22.04, or is it exclusively compatible with 21.04? Thank you!

Kind regards,
Luke

@waveform80
Copy link
Contributor

waveform80 commented Apr 9, 2024

It should function happily on ubuntu 22.04, either installed as a system package (sudo apt install python3-lgpio), or (since #25) pip installed in a venv (pip install lgpio).

Incidentally, if you do find a problem with lg on ubuntu (when installed as a system package), please feel free to file a bug under the lg-gpio package (unfortunately I wasn't allowed to just call it "lg"). If it's a packaging issue, that's my fault, and I can deal with it there without bugging upstream here! :)

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

4 participants