The code is `from prefect import flow @flow(log_...
# prefect-cloud
b
The code is
Copy code
from prefect import flow


@flow(log_prints=True)
def hello_world(name: str = "world", goodbye: bool = False):
    print(f"Hello {name} from Prefect! :hugging_face:")

    if goodbye:
        print(f"Goodbye {name}!")


if __name__ == "__main__":
    hello_world.serve(
        name="my-first-deployment",
        tags=["onboarding"],
        parameters={"goodbye": True},
        interval=60,
    )
j
hey, what version of prefect are you on?
upvote 3
b
The latest one, I also had problems with pydantic and asyncio but could resolve them :/
Didn‘t even find this error in the internet or in the github issues page
n
@Banias can you share the output of
prefect version
?
b
Ofc
Version: 2.82 API version: 0.8.4 Python version: 3.9.1 Git commit: afbed19d Built: Fri, Feb 17, 2023 10:02 AM OS/Arch: win32/AMD64 Profile: default Server type: cloud
And thanks for your fast replies guys you are like flash
ultra fast parrot 1
n
did you modify this output?
Copy code
Version:             2.82
even so,
flow.serve
was introduced a bit after
2.8.2
in
2.13.x
b
No, I didn‘t :) I installed the most recent version via poetry
Oh but that‘s weird, the most recent one is 2.13.5. tbh, I don‘t know what‘s wrong with my installation
n
hey @Banias - were you able to fix your installation?
b
Yes mate, it is a problem with poetry on Windows. When you install prefect without specifying a version, it will somehow download a version 2.82, which can't be true. But when you specify the version everything is fine. Thanks guys"
n
👍