Skip to content
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

ModuleNotFoundError: No module named 'griffe' when trying to import register_pydantic #135

Closed
dwhdai-ada opened this issue Apr 21, 2023 · 1 comment

Comments

@dwhdai-ada
Copy link

Getting the following error when running from guardrails.utils.pydantic_utils import register_pydantic on 0.1.5

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
Input In [4], in <cell line: 1>()
----> 1 from guardrails.utils.pydantic_utils import register_pydantic

File ~/Library/Caches/pypoetry/virtualenvs/ar-estimator-lHe8_aOL-py3.9/lib/python3.9/site-packages/guardrails/utils/pydantic_utils.py:15, in <module>
     12 import logging
     13 from typing import TYPE_CHECKING, Dict
---> 15 from griffe.dataclasses import Docstring
     16 from griffe.docstrings.parsers import Parser, parse
     18 griffe_docstrings_google_logger = logging.getLogger("griffe.docstrings.google")

ModuleNotFoundError: No module named 'griffe'
@ShreyaR
Copy link
Collaborator

ShreyaR commented Apr 24, 2023

@dwhdai-ada thanks for flagging this -- this is fixed in the latest 0.1.6 release!

@ShreyaR ShreyaR closed this as completed Apr 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants