Andy
04/26/2021, 8:29 PMprefect server start
throws an error for me. I think it’s because docker is on root. However, I can’t run sudo !!
— I get sudo: prefect: command not found
. Is there a way to resolve this issue?Zanie
sudo
is missing a prefect installation. You can output a docker-compose with prefect server config
instead then use sudo docker-compose up
to start the server. Alternatively, you can extend the PYTHONPATH for your admin user to include your user-installed python packages.Zanie
❯ which prefect
/opt/homebrew/Caskroom/miniconda/base/envs/prefect-dev-38/bin/prefect
❯ export PATH="/opt/homebrew/Caskroom/miniconda/base/envs/prefect-dev-38/bin:$PATH"
Zanie
Andy
04/26/2021, 8:43 PMsudo docker-compose -f … up
from the config works!
Adding to path does not work (and might conflict with other envs?)Zanie
/opt/homebrew/Caskroom/miniconda/base/envs/prefect-dev-38/bin/prefect server start
I guess but it does seem like that would have python env conflicts still.