Skip to content

ModuleNotFoundError: No module named 'langgraph.graph.graph' #252

Description

@jovelromeo

Summary

Fresh ra-aid setup fails at startup with the following error

$ ra-aid
Traceback (most recent call last):
  File "/home/rojovel/redjar/i+d/RA.Aid/venv/bin/ra-aid", line 5, in <module>
    from ra_aid.__main__ import main
  File "/home/rojovel/redjar/i+d/RA.Aid/venv/lib/python3.12/site-packages/ra_aid/__init__.py", line 2, in <module>
    from .agent_utils import run_agent_with_retry
  File "/home/rojovel/redjar/i+d/RA.Aid/venv/lib/python3.12/site-packages/ra_aid/agent_utils.py", line 10, in <module>
    from langgraph.graph.graph import CompiledGraph
ModuleNotFoundError: No module named 'langgraph.graph.graph'

I tried to force install the version of langgraph in the pyproject.toml file but then I get tho following error
"""
from google.longrunning import (
File "/home/rojovel/redjar/i+d/r4r/raaid/path/to/venv/lib/python3.12/site-packages/google/longrunning/operations_proto_pb2.py", line 40, in
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: Couldn't build proto file into descriptor pool: duplicate file name google/longrunning/operations.proto
"""
This makes me think that probably some update in the dependencies from google could create a dependency mismatch.

Environment

Component Version
OS Alpine 3.21 (Docker)
Python 3.12.3
ra-aid 0.30.2

Steps to Reproduce

  1. Fresh virtual-env / container
  2. pip install ra-aid
  3. Run ra-aid

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions