Hello! I'm testing out orion and have an issue wi...
# prefect-community
b
Hello! I'm testing out orion and have an issue with the client. When I try to run the sample for python client it gives me an error:
line 282, in get_profile_context raise MissingContextError("No profile context found.")
Any suggestions on how to fix this?
k
Hey Brian, could you show me the example you are referring to?
k
I tried it and it works for me:
Copy code
import asyncio
from prefect.client import get_client

async def some_function():
    async with get_client() as client:
        response = await client.hello()

        print(response.json())

if __name__=="__main__":
  asyncio.run(some_function())
what is your Orion version?
b
that works for me...not sure what I was doing wrong before. Thanks!
I was trying from python REPL and it throws the error i see. running you script it works