-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot pickle 'classmethod' object #28
Comments
Hey @PaoloLeonard 👋 However, there might be classmethods in the Let me know what you find! |
I believe the issue comes from the upgrade to pydantic v2: https://github.com/PrefectHQ/prefect/blob/main/RELEASE-NOTES.md#enabling-pydantic-v2 where support for |
I'm having the same issue! Have you been able to fix this? @PaoloLeonard |
@PaoloLeonard @digitalghost-dev few weeks ago we pinned Thanks! |
Looks like that worked. Thank you. Does this mean |
@digitalghost-dev I think so, but we'll need to figure out how to fix it first 😅 |
@AlessandroLollo Fair enough haha thanks for your help. |
Hello,
I'm getting this error with the latest prefect version (=2.13) while it works with the previous version.
The error happens when we try to import the prefect-soda-core class during the deployment of the flow:
prefect.exceptions.ScriptError: Script at 'src/my_soda_flow.py' encountered an exception: TypeError("cannot pickle 'classmethod' object")
I'll investigate on my side and let you know what I find.
The text was updated successfully, but these errors were encountered: