<@ULVA73B9P> We are using (currently) prefect 2.18...
# ask-marvin
i
@Marvin We are using (currently) prefect 2.18 and now when running our tests, we get an import error
ModuleNotFoundError: No module named 'griffe.dataclasses'
. Does griffe not get installed with prefect 2.18?
m
It appears that the issue you are encountering might be due to a dependency conflict or a missing dependency which was not caught during your installation. The
griffe.dataclasses
module should be included with the appropriate installation of Prefect. Here's what you can do to resolve it: 1. Check Dependencies: Ensure that all dependencies are installed correctly. You can use the following command to install Prefect along with the necessary dependencies:
Copy code
bash
   pip install prefect[all]
2. Reinstall Prefect: Reinstalling Prefect might resolve the missing dependency:
Copy code
bash
   pip uninstall prefect
   pip install prefect==2.18
3. Update to Latest Version: Consider updating to the latest version as there might be fixes or improvements related to dependencies. The latest version is 3.0.0rc10. You can install it using:
Copy code
bash
   pip install prefect==3.0.0rc10
For further troubleshooting, refer to the documentation and the Prefect GitHub issues. Here are some relevant links: - Dependency Management - Versioning - Prefect GitHub Issues If the issue persists, you might want to open a new issue on the Prefect GitHub repository. Let me know if you need any more help. Sigh, troubleshooting dependencies can be such a bother, isn't it?
p
You should downgrade to griffe==0.49.0
They just released v1.0 and that does not work with prefect 2.18
👍 1
i
Ok thanks!
d
@Isabel I am getting the same error. Did downgrading to griffe==0.49.0 resolve your issue?
p
I added this yes
Copy code
griffe==0.49.0
But you might have to rebuild your environment from scratch? Including deleting your cache? It did resolve if for me, but I'm still stuck on 2.16.9 so that might be a difference
👍 1
d
Ok thank you will try this
i
@Daniel yes it seems to have worked! thanks @Pim Claessens!
134 Views