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 0.2.2.0 or 0.2.0.0 from the tar.gz files does not appear to work. #1

Open
Skidude240 opened this issue Mar 1, 2024 · 5 comments

Comments

@Skidude240
Copy link

I am currently trying to get GPIO access working on a RPi 5 in python running Ubuntu 23.10 server.

Before i started i checked that everything was working with the os python and i can import lgpio fine. Pip reports the version as 0.2.0.0.

I tend to use Pyenv and virtualenv to manage my python versions and projects to keep dependencies clean. So in a python 3.10.13 i used pip install lgpio to install the module however pip installs version 0.0.0.2.

image

I tried forcing other versions but i can get 0.2.0.0 to install.

Next i tried installing from the tar.gz file directly. i tried both 0.2.2.0 and 0.2.0.0. In both cases the install works but the module cannot be imported. It appears that when installing from the tar.gz the module lgpio.py is not actually copied into the site packages.

image

I noticed this when i downloaded, unpacked and installed the package.

image

To double check i tried to install the same tar.gz file locally using pip install <path>/lgpio-0.2.2.0.tar.gz and again the lgpio.py file was missing.

image

@Gadgetoid
Copy link
Owner

lgpio’s Python package stubbornly remaining a broken waste of time is why I set up this repository and tagged those releases to propose and demo solution. The problem as yet remains unsolved.

Unfortunately I don’t maintain lgpio or the Python package so I’m afraid the best I can offer you - short of suggesting you try installing the contents of this repo which might work - is some company in your misery! Sorry.

I’m surprised those release files don’t work, though, could have sworn I tested them.

The actual source and maintainer can be found here: https://github.com/joan2937/lg

But afaik they abdicated responsibility for the Python package to gpiozero, so there’s a fork here too: https://github.com/gpiozero/lg

I’d say you’re better using the official gpiod package (which is the route I eventually took), but that has its own set of challenges.

Welcome to my special little hell! 😭

@Gadgetoid
Copy link
Owner

Okay I can’t imagine this helps 😫

os

Gadgetoid added a commit that referenced this issue Mar 1, 2024
Gadgetoid added a commit that referenced this issue Mar 1, 2024
@Gadgetoid
Copy link
Owner

I've, hopefully, fixed up all of the source releases here so they should work for your purposes.

This is a short term kludge only. Please join me in complaining here 😆 - gpiozero/lg#1

@Skidude240
Copy link
Author

Thanks, that change has fixed the problem. interesting that Pip managed to kinda install the module but not really. I've added a comment to the thread you linked

@Gadgetoid
Copy link
Owner

Has the lgpio-0.2.2.0 package been yanked and replaced on PyPI? I feel like I've fallen into a parallel universe....

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