https://prefect.io logo
j

jack

12/23/2020, 9:39 PM
Hey all - I recently got into a bit of issues where my newly registered flows would not run (even a simple hello world flow that works on local server/agent) and fail with a different error message for each of the prefect version: 0.13.17 =
Failed to load Flow from C:\Users\JackChoi\.prefect\flows\hello-flow-jack-v2.prefect
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/prefect/environments/storage/local.py", line 105, in get_flow
return extract_flow_from_module(module_str=flow_location)
File "/usr/local/lib/python3.8/site-packages/prefect/utilities/storage.py", line 119, in extract_flow_from_module
module = importlib.import_module(module_name)
File "/usr/local/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'C'
0.14.0 =
{'_schema': 'Invalid data type: None'}
Does anyone know what's happening here and how I could fix it? Cheers!
m

Mariia Kerimova

12/23/2020, 10:17 PM
Hello Jack! Could you please provide a simplified version of the flow you are running?
j

jack

12/23/2020, 10:28 PM
Yes of course!
Copy code
import prefect
from prefect import task, Flow


@task
def hello_task():
    <http://logger.info|logger.info>("Hello World!")
    logger.warning("Something is wrong :(")

with Flow("hello-flow-jack-v2") as flow:
    logger = prefect.context.get("logger")
    hello_world = hello_task()
m

Mariia Kerimova

12/23/2020, 10:44 PM
Hmm, looks right. I'm going to further investigate this issue, meanwhile I would recommend you to upgrade server version.
j

jack

12/23/2020, 11:03 PM
Thanks! I am currently on 0.14.0 prefect version
2 Views