Albert Wong
03/13/2023, 5:40 PMExecStart=/home/ubuntu/apps/dataflows/venv/bin/prefect server start --host 0.0.0.0
Receiving the following error. Anyone ever see this and/or knows how to fix this?
File "/home/ubuntu/.pyenv/versions/3.11.2/lib/python3.11/asyncio/base_subprocess.py", line 36, in __init__
self._start(args=args, shell=shell, stdin=stdin, stdout=stdout,
File "/home/ubuntu/.pyenv/versions/3.11.2/lib/python3.11/asyncio/unix_events.py", line 810, in _start
self._proc = subprocess.Popen(
^^^^^^^^^^^^^^^^^
File "/home/ubuntu/.pyenv/versions/3.11.2/lib/python3.11/subprocess.py", line 1024, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/home/ubuntu/.pyenv/versions/3.11.2/lib/python3.11/subprocess.py", line 1901, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'uvicorn'
Zanie
03/13/2023, 5:43 PMprefect server start
we start uvicorn in a subprocess https://github.com/PrefectHQ/prefect/blob/main/src/prefect/cli/server.py#L147-L160Albert Wong
03/13/2023, 5:44 PM(venv) ubuntu@gbi-tableau-innovation:~/apps/dataflows$ pip install uvicorn
Requirement already satisfied: uvicorn in ./venv/lib/python3.11/site-packages (0.20.0)
Requirement already satisfied: click>=7.0 in ./venv/lib/python3.11/site-packages (from uvicorn) (8.1.3)
Requirement already satisfied: h11>=0.8 in ./venv/lib/python3.11/site-packages (from uvicorn) (0.14.0)
Zanie
03/13/2023, 5:46 PM.venv/bin/activate
Albert Wong
03/13/2023, 5:51 PMEnvironment="PATH=/home/ubuntu/apps/dataflows/venv/bin:$PATH"
Working now, thanks for your help @Zanie!