I know it's a problem with my code, but can someon...
# ask-community
c
I know it's a problem with my code, but can someone give me some tips on a solution ? (I've Googled, but I'm only getting documentation) Error is : Unexpected error: AttributeError("'FunctionTask' object has no attribute load. Did you call this object within a function that should have beendecorated with @prefect.task?") Yes, no space between been and decorated. I have made a few changes, but I didn't think it was anything major enough to cause this error 😞 I've tried back tracking but still can't find the glitch
n
Hi @Chris McClellan - would you mind posting a minimum sample of your code that's throwing the error?
c
I knew it was a rookie error (I'm a Python rookie, but not a coding rookie 😉 ) . I had code that did this:
CSV = csv_file_create()
but then I thought it was a great idea to do this
json = json_file_create()
and obviously had
import json
at the top of the script 😆 🤣 It's all fixed now 🙂
👍 2
marvin 1
k
Nice!