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

Installation Problem #43

Closed
xrb12250 opened this issue Jan 30, 2022 · 4 comments
Closed

Installation Problem #43

xrb12250 opened this issue Jan 30, 2022 · 4 comments

Comments

@xrb12250
Copy link

Hi Aaron,

the setup script fails to successfully install indi-allsky:
**** Python virtualenv setup ****
mkdir: cannot create directory ‘/home/pi/indi-allsky/virtualenv’: Permission denied

Trying to use sudo or root fails because of your checking routine...

Any ideas?

System is a pi 4 with a clean install raspbian light (buster)

@xrb12250
Copy link
Author

Ok solved the problem with additional sudo's

echo "**** Python virtualenv setup ****" [[ ! -d "${ALLSKY_DIRECTORY}/virtualenv" ]] && sudo mkdir -m 755 "${ALLSKY_DIRECTORY}/virtualenv" if [ ! -d "${ALLSKY_DIRECTORY}/virtualenv/indi-allsky" ]; then sudo virtualenv -p python3 ${ALLSKY_DIRECTORY}/virtualenv/indi-allsky fi

As expected, the whole installation is now somehow screwed up 😄 I'll give it another try

@aaronwmorris
Copy link
Owner

Did you perform the git checkout as root or something? You probably just need to change the ownership of the git checkout.

sudo chown -R pi /home/pi/indi-allsky

@aaronwmorris
Copy link
Owner

I have updated the setup.sh script to fix the ownership of the git checkout if it is incorrect.

@xrb12250 xrb12250 closed this as completed Feb 1, 2022
@xrb12250
Copy link
Author

xrb12250 commented Feb 1, 2022

This works now, but there are some new problems now, I'll open a new issue.

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