Hi. I’m trying to implement this <https://docs.pre...
# prefect-community
Hi. I’m trying to implement this https://docs.prefect.io/orchestration/execution/storage_options.html#non-docker-storage-for-containerized-environments using minio storage and the Kubernetes agent. My simple flow runs but I’m getting this error. Does anyone know what can be causing this?
Copy code
August 4th 2020 at 8:56:04pm | prefect.CloudTaskRunner
Unexpected error: NameError("name 'prefect' is not defined")
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/prefect/engine/runner.py", line 48, in inner
    new_state = method(self, state, *args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/prefect/engine/task_runner.py", line 801, in get_task_run_state
    value = timeout_handler(
  File "/usr/local/lib/python3.8/site-packages/prefect/utilities/executors.py", line 188, in timeout_handler
    return fn(*args, **kwargs)
  File "minio.py", line 7, in hello_task
NameError: name 'prefect' is not defined
NVM I figured it out. I should’ve realized that the example in the documentation has an error and is missing
import prefect
👍 1
After learning more I now know that the problem is not an error in the documentation as I stated before. The problem was in my test code that needed the
import prefect
. I’m happy to report I am now running Prefect on my Kubernetes cluster using Minio storage.