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

pip install fails for non-root user #27

Closed
lhartmann opened this issue May 22, 2024 · 2 comments
Closed

pip install fails for non-root user #27

lhartmann opened this issue May 22, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@lhartmann
Copy link

On debian 12, as non-root user, using venv:

$ python3 -m venv /tmp/hantek
$ source /tmp/hantek/bin/activate
$ pip install git+https://github.com/Ho-Ro/Hantek6022API.git

fails with

error: could not create '/etc/udev/rules.d/60-hantek6022api.rules': Permission denied

Installing should not fail, but warn and instruct the user on how to configure the rules.

Ho-Ro added a commit that referenced this issue May 23, 2024
Signed-off-by: Martin <Ho-Ro@users.noreply.github.com>
@Ho-Ro
Copy link
Owner

Ho-Ro commented May 23, 2024

Please check the latest commit. I'm not using pip to install, I use a deb package for clear install/uninstall that can also contain other binaries, libs etc.
Your workflow was never checked.
When using python setup.py build, now it excludes the system files and issues a hint how to gain user access, but trying your workflow does not show this message.

@Ho-Ro Ho-Ro added the bug Something isn't working label May 24, 2024
@Ho-Ro
Copy link
Owner

Ho-Ro commented May 24, 2024

I'll close for now, as the pip installation for non-root users is now working as expected. Please comment or reopen if you have an idea on how to display the warning.
Anyway, the README clearly mentions how to use udev rules to gain access to the scope.

@Ho-Ro Ho-Ro closed this as completed May 24, 2024
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