https://prefect.io logo
Title
b

Boggdan Barrientos

01/18/2022, 7:10 PM
hi all! I'm new to prefect. I want to use it to orchestate Airbyte. I'm running Airbyte by docker-compose and I'm following the guide from Airbyte web. I want to install prefect inside a ECS Ubuntu 20.04.3 t3.large instance. I'm using Python 3.8.10. https://airbyte.com/recipes/elt-pipeline-prefect-airbyte-dbt I'm follow the guide and read the getting started in prefect documentation. I ran the following commands.
pip install prefect
Inside python idle I was able to run successfully:
import prefect
from prefect import task, Flow

@task
def hello_task():
    logger = prefect.context.get("logger")
    <http://logger.info|logger.info>("Hello world!")

with Flow("hello-flow") as flow:
    hello_task()

flow.run()
But in the cli, I try to run and nothing. I try to run in the cli
prefect version
and results.
ubuntu@ip-20-0-0-33:~$ prefect version
prefect: command not found
I dont know what I'm doing wrong. I would appreciate your help. Thanks.
k

Kevin Kho

01/18/2022, 7:30 PM
Can you try typing
where python
to see your python installations?
b

Boggdan Barrientos

01/18/2022, 9:13 PM
I try the following. Only
which python3
give me results.
k

Kevin Kho

01/18/2022, 9:28 PM
How about
which pip
?
b

Boggdan Barrientos

01/18/2022, 10:13 PM
I got this @Kevin Kho
k

Kevin Kho

01/19/2022, 3:44 AM
Really not sure what is going on. Maybe you can check
site-packages
to see if prefect got installed where you expect? Are you using an environment manager?
b

Boggdan Barrientos

01/21/2022, 2:25 PM
Hi @Kevin Kho sorry for the lateness. In site packages appears prefect but stills when I run prefect in cli appears.
prefect: command not found
I'm not using a environment manager, I install it on python3 of ubuntu.
a

Anna Geller

01/21/2022, 2:46 PM
Which Amazon AMI did you pick? Perhaps you can follow this walkthrough and check if this works then?
a

Arran

02/09/2022, 11:47 AM
@Boggdan Barrientos did you find a solution? i have the exact same problem and cant get the prefect server started
k

Kevin Kho

02/09/2022, 2:16 PM
I guess not, but this is really mostly a multiple python installation issue
b

Boggdan Barrientos

02/09/2022, 3:20 PM
@Arran not yet. I will take back and try.