blarApp / code-base-agent

Code agents for LLMs
https://blar.io
MIT License
46 stars 15 forks source link

TypeError: unhashable type: 'list' #79

Closed josem7 closed 6 months ago

josem7 commented 6 months ago

Describe the bug The code fails when trying to create the graph of the pvlib repo

Trace

Traceback (most recent call last):
  File "//build_graph.py", line 16, in <module>
    build_graph(repo_name)
  File "//build_graph.py", line 12, in build_graph
    graph_constructor.build_graph(repo_name)
  File "/root/miniconda3/lib/python3.9/site-packages/blar_graph/graph_construction/core/graph_builder.py", line 264, in build_graph
    relationships.extend(self._relate_imports(imports))
  File "/root/miniconda3/lib/python3.9/site-packages/blar_graph/graph_construction/core/graph_builder.py", line 148, in _relate_imports
    targetId = self.global_imports.get(import_alias)
TypeError: unhashable type: 'list'

To Reproduce Steps to reproduce the behavior:

  1. clone the pvlib-python repo
  2. build graph on pvlib directory

Expected behavior Get the correct graph

Screenshots

Screenshot from 2024-04-10 14-16-58

Desktop (please complete the following information):