hi all! I'm new to prefect. I want to use it to o...
# prefect-server
b
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.
Copy code
pip install prefect
Inside python idle I was able to run successfully:
Copy code
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.
Copy code
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
Can you try typing
where python
to see your python installations?
b
I try the following. Only
which python3
give me results.
k
How about
which pip
?
b
I got this @Kevin Kho
k
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
Hi @Kevin Kho sorry for the lateness. In site packages appears prefect but stills when I run prefect in cli appears.
Copy code
prefect: command not found
I'm not using a environment manager, I install it on python3 of ubuntu.
a
Which Amazon AMI did you pick? Perhaps you can follow this walkthrough and check if this works then?
a
@Boggdan Barrientos did you find a solution? i have the exact same problem and cant get the prefect server started
k
I guess not, but this is really mostly a multiple python installation issue
b
@Arran not yet. I will take back and try.