Repository: Giskard-AI/giskard-oss
Issue: ModuleNotFoundError: No module named 'griffe. docstrings' running notebooks on deeplearning.ai course's (https://learn.deeplearning.ai/courses/red-teaming-llm-applications)
Root cause: External Dependency Breakage

### Issue Type

Bug

### Source

source

### Giskard Library Version

 "giskard[llm]==2.7.4"

### OS Platform and Distribution

Mac OS 15.5

### Python version

3.12.9

### Installed python packages

```shell
aiohappyeyeballs==2.6.1
aiohttp==3.12.11
aiosignal==1.3.2
annotated-types==0.7.0
anyio==4.9.0
attrs==25.3.0
bert-score==0.3.13
cachetools==5.5.2
certifi==2025.4.26
chardet==5.2.0
charset-normalizer==3.4.2
click==8.2.1
cloudpickle==3.1.1
colorama==0.4.6
contourpy==1.3.2
cycler==0.12.1
databricks-sdk==0.56.0
datasets==3.6.0
dill==0.3.8
distro==1.9.0
docopt==0.6.2
evaluate==0.4.3
faiss-cpu==1.11.0
fastapi==0.115.12
filelock==3.18.0
fonttools==4.58.2
frozenlist==1.6.2
fsspec==2025.3.0
giskard==2.7.4
gitdb==4.0.12
gitpython==3.1.44
google-auth==2.40.3
griffe==1.7.3
h11==0.16.0
hf-xet==1.1.3
httpcore==1.0.9
httpx==0.28.1
huggingface-hub==0.32.4
idna==3.10
importlib-metadata==8.7.0
jinja2==3.1.6
jiter==0.10.0
joblib==1.5.1
kiwisolver==1.4.8
langdetect==1.0.9
markdown==3.8
markupsafe==3.0.2
matplotlib==3.10.3
mixpanel==4.10.1
mlflow-skinny==2.22.1
mpmath==1.3.0
multidict==6.4.4
multiprocess==0.70.16
networkx==3.5
num2words==0.5.14
numpy==1.26.4
openai==1.84.0
opentelemetry-api==1.34.0
opentelemetry-sdk==1.34.0
opentelemetry-semantic-conventions==0.55b0
packaging==24.2
pandas==2.3.0
pillow==11.2.1
propcache==0.3.1
protobuf==6.31.1
pyarrow==20.0.0
pyasn1==0.6.1
pyasn1-modules==0.4.2
pydantic==2.11.5
pydantic-core==2.33.2
pyparsing==3.2.3
python-dateutil==2.9.0.post0
pytz==2025.2
pyyaml==6.0.2
regex==2024.11.6
requests==2.32.3
requests-toolbelt==1.0.0
rsa==4.9.1
safetensors==0.5.3
scikit-learn==1.7.0
scipy==1.11.4
setuptools==80.9.0
six==1.17.0
smmap==5.0.2
sniffio==1.3.1
sqlparse==0.5.3
starlette==0.46.2
sympy==1.14.0
tenacity==9.1.2
threadpoolctl==3.6.0
tokenizers==0.21.1
torch==2.7.1
tqdm==4.67.1
transformers==4.52.4
typing-extensions==4.14.0
typing-inspection==0.4.1
tzdata==2025.2
urllib3==2.4.0
uvicorn==0.34.3
xxhash==3.5.0
yarl==1.20.0
zipp==3.22.0
zstandard==0.23.0
```

### Current Behaviour?

```shell
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
Cell In[2], line 1
----> 1 import giskard

File ~/Desktop/projects/DKAI/ai/Red-Teaming-LLM-Apps/.venv/lib/python3.12/site-packages/giskard/__init__.py:9
      6 from importlib import metadata as importlib_metadata
      8 from . import demo
----> 9 from .client.giskard_client import GiskardClient
     10 from .client.project import Project
     11 from .core.suite import Suite, SuiteInput

File ~/Desktop/projects/DKAI/ai/Red-Teaming-LLM-Apps/.venv/lib/python3.12/site-packages/giskard/client/giskard_client.py:22
     20 from giskard.client.project import Project
     21 from giskard.client.python_utils import warning
---> 22 from giskard.core.core import SMT, DatasetMeta, ModelMeta, TestFunctionMeta
     23 from giskard.utils.analytics_collector import analytics, anonymize
     25 UNKNOWN_ERROR = "No details or messages available."

File ~/Desktop/projects/DKAI/ai/Red-Teaming-LLM-Apps/.venv/lib/python3.12/site-packages/giskard/core/core.py:12
      9 from pathlib import Path
     11 from griffe import Docstring
---> 12 from griffe.docstrings.dataclasses import (
     13     DocstringSection,
     14     DocstringSectionParameters,
     15     DocstringSectionReturns,
     16 )
     17 from griffe.enumerations import DocstringSectionKind
     19 from ..utils.artifacts import serialize_parameter

ModuleNotFoundError: No module named 'griffe.docstrings'
```

### Standalone code OR list down the steps to reproduce the issue

```shell
uv venv
source .venv/bin/activate
uv pip install "giskard[llm]==2.7.4"
python -c "import giskard ; print(giskard.__version__)"
```

### Relevant log output

```shell

```

Hi @khoaguin, our version of the library has pinned `"griffe>=0.36.9, <0.49.0"` so I think there might be something going wrong with the installation from your side. Could you try to re-install?

@davidberenstein1957 
Any Idea if its going to be updated eventually? Openai-Agents require griffe>=1.5.6 

Thanks for following up. I did not realise this was a broader issues. We will make sure to fix this.


@olivier-belhumeur-hs @khoaguin, we are contacting Deeplearning to get this fixed.