06/27/2023, 8:13 PM
Has anyone run into and solved the issue of
prefect deploy path\to\
Throwing a
AttributeError: 'NoneType' object has no attribute 'name'
error? I'm using windows 10 powershell, my python version is 3.11.3, and prefect version is 2.10.14. Updating from prefect 2.10.14 to 2.10.17 the error changes to
ModuleNotFoundError: No module named 'resource'
Here's my super basic flow -
Copy code
import httpx
from prefect import flow, task

def fetch_cat_fact():
    return httpx.get("<>").json()["fact"]

def formatting(fact: str):
    return fact.title()

def write_fact(fact:str):
    with open("fact.txt", "w+") as f:
    return "Success!"

def pipe():
    fact = fetch_cat_fact()
    formatted_fact = formatting(fact)
    msg = write_fact(formatted_fact)
I've seen some others who ran into the issue.
upvote 1