https://prefect.io logo
r

rafaqat ali

03/02/2021, 3:45 PM
Hi team, I have registered flow using the below code
Copy code
with Flow("Test run", run_config=DockerRun(labels=["dev"])) as flow:
            flow.add_task(say_hello())
        flow.register("Test")
@task
def say_hello():
    print("Hello, world!")
When I run the flow from UI, I got the below error Failed to load and execute Flow's environment: AttributeError("'NoneType' object has no attribute 'rstrip'") Can anyone has faced such issue or help me in right direction?
j

Jenny

03/02/2021, 4:25 PM
Hi @rafaqat ali - can you give a bit more information about how you're running the flow. Is it in Server or Cloud? Are you using rstrip at all in your code? Are other flows working ok for you?
r

rafaqat ali

03/02/2021, 4:26 PM
I'm using Server. Flows are running fine by using flow.run() but throwing exception when I run from UI. I'm not using rstrip in my code at all
j

Jenny

03/02/2021, 4:32 PM
Thanks - let me check this one with the wider team
Hi @rafaqat ali - could you share your logs from the agent?
Would also be useful to know a bit more about your agent set up and docker storage.