pseeth / cookiecutter-nussl

Cookiecutter for evaluating algorithms and training models in nussl
MIT License
5 stars 1 forks source link

Issue running `make install` #6

Open ethman opened 4 years ago

ethman commented 4 years ago

make install fails with the following output:

(slakh_models) emanilow@gpubox1:~/slakh_models/slakh-models$ make install
curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python
Retrieving Poetry metadata

Latest version already installed.
poetry update
Updating dependencies
Resolving dependencies... (9.6s)

No dependencies to install or update

poetry install
Installing dependencies from lock file

No dependencies to install or update

apt-get install redis
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
Makefile:18: recipe for target 'install' failed
make: *** [install] Error 100

I try running again with sudo:

(slakh_models) emanilow@gpubox1:~/slakh_models/slakh-models$ sudo make install
curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python
Retrieving Poetry metadata

Latest version already installed.
poetry update
/bin/bash: poetry: command not found
Makefile:18: recipe for target 'install' failed
make: *** [install] Error 127
ethman commented 4 years ago

Maybe this line needs to be sudo-ed: https://github.com/pseeth/cookiecutter-nussl/blob/2ea6ad1ac66ddef63ecbb3d2f3bafcc208c7f5db/%7B%7Bcookiecutter.repo_name%7D%7D/Makefile#L20