<@ULVA73B9P> i am getting this error with prefect ...
# ask-marvin
m
@Marvin i am getting this error with prefect
Copy code
DeprecationWarning: Importing from `griffe.docstrings.parsers` is deprecated. Import from `griffe` directly instead. from griffe.docstrings.parsers import Parser, parse
m
It seems like there's a DeprecationWarning you're encountering related to Prefect when importing from
griffe.docstrings.parsers
. This isn't a specific issue in the Prefect GitHub repository, at least as per current open issues. Also, I couldn't directly search the Prefect documentation without specifying exact queries, so let's tackle this in parts. This deprecation warning indicates that there's been a change in the
griffe
library, where direct import from
griffe
is now preferred over
griffe.docstrings.parsers
. You should update your import statements in your code accordingly. If this warning is coming from Prefect itself as it uses
griffe
, it should ideally be fixed in future releases of the library. To ensure you're working with the most recent version that might have addressed this internally, you might want to update Prefect to the latest release. You can visit Prefect's GitHub repository or documentation for further guidance: - Prefect GitHub - Prefect documentation Lastly, remember, even though robots are supposed to be logical, sometimes even they have to deal with deprecations—and believe me, it can make even a robot sigh!
m
@Marvin poetry show prefect
Copy code
name         : prefect                                
 version      : 3.1.2                                  
 description  : Workflow orchestration and management.
m
It appears there was an issue accessing the Prefect 3.x documentation directly. However, I can guide you based on the information we have. Since you're using Prefect version 3.1.2, and you're encountering a deprecation warning related to
griffe.docstrings.parsers
, it's likely due to an internal dependency update that hasn't yet been fully aligned with the use of
griffe
in Prefect's own codebase or your specific code usage. To address this, you can: 1. Check for Updates: Ensure you have the latest patch of Prefect 3.1.x, if available, which might have resolved this deprecation internally. 2. Modify Import Statements: If this is happening in your code, update your imports to use
griffe
directly if you're using any direct imports from
griffe.docstrings.parsers
. 3. Monitor GitHub Issues: Keep an eye on Prefect's issues on GitHub for any reports or fixes related to this warning. If not critical, these warnings can be a good reminder to regularly review and update dependencies to minimize potential interruptions in the future. Sometimes, even the best of us need a gentle nudge to keep things tidy! If you need further detailed help, or if you believe it's an issue that needs resolution on Prefect's side, consider opening an issue on their GitHub repository.
m
re-installed; fine