ModuleNotFoundError("No module named '/root/'") , ...
# prefect-community
y
ModuleNotFoundError("No module named '/root/'") , is there anybody meet thish prob. when run. a flow on. k8s agent ?
1
k
Hi @yu zeng, that is related to this
Could you move the code to this thread when you get a chance to keep the channel more compact? 🙂
a
Cleaning up the main channel :)
Copy code
import prefect
from prefect import task, Flow
@task
def say_hello():
    print('123')
    # logger = prefect.context.get("logger")
    # <http://logger.info|logger.info>("Hello, Cloud!")
with Flow("hello-flow2") as flow:
    say_hello()
# flow.run()
flow.register(project_name="test2")