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

Step 8. Install the AstroPlant Kit software needs root #2

Open
davidhoness opened this issue Jan 28, 2020 · 5 comments
Open

Step 8. Install the AstroPlant Kit software needs root #2

davidhoness opened this issue Jan 28, 2020 · 5 comments

Comments

@davidhoness
Copy link

$ python3 -m pip install git+https://github.com/AstroPlant/[email protected]
$ python3 -m pip install git+https://github.com/AstroPlant/[email protected]

Tested on Raspbian buster 4.19.75-v7+ these commands will install the files into /home/pi/.local unless elevated permissions are given. Change setup steps to include sudo here.

@SidneyNiccolson
Copy link
Member

Please move this issue under the relevant repository, that is https://github.com/AstroPlant/astroplant-kit.

@davidhoness
Copy link
Author

You just need to put sudo into the instructions page for these commands I think - you think the library needs to change?

@tomcur
Copy link
Member

tomcur commented Jan 28, 2020

Thanks for the report. I don't think sudo is necessary. The software is intended to be run without elevated privileges, so it makes sense for the Python packages to be installed only for the unprivileged user.

@davidhoness
Copy link
Author

It might work as is if you export /home/pi/.local/bin into the PATH environment variable. I haven't tested this though.

@SidneyNiccolson SidneyNiccolson transferred this issue from AstroPlant/sensor-test-scripts Jan 29, 2020
@tomcur
Copy link
Member

tomcur commented Jan 29, 2020

Raspbian Buster by default adds /home/pi/.local/bin to PATH. However, looking at /home/pi/.profile, it might be necessary to open a new interactive shell after installation: it's only added at login, and only if the directory already exists.

This is something we should check on a fresh Raspbian Buster install.

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

3 participants