Kaihua Hou
Kaihua Hou

Reputation: 368

ModuleNotFoundError: No module named 'llama_index.graph_stores'

I am trying to use the NebulaGraphStore class from llama_index via from llama_index.graph_stores.nebula import NebulaGraphStore as suggested by the llama_index documentation, but the following error occurred:

ModuleNotFoundError                       Traceback (most recent call last)
Cell In[2], line 1
----> 1 from llama_index.graph_stores.nebula import NebulaGraphStore

ModuleNotFoundError: No module named 'llama_index.graph_stores'

I tried updating llama_index (version 0.10.5) with pip install -U llama-index but it doesn't work. How can I resolve this?

Upvotes: 2

Views: 16227

Answers (2)

Görkem
Görkem

Reputation: 19

LlamaIndex doesn't currently support Python 3.12. This is a known issue.

Upvotes: 1

Leo
Leo

Reputation: 94

According to latest doc of llama-index, all graph-store module are not included in llama-index core packages and needs to install it by pip:

%pip install llama-index-llms-openai
%pip install llama-index-embeddings-openai
%pip install llama-index-graph-stores-nebula
%pip install llama-index-llms-azure-openai

https://docs.llamaindex.ai/en/stable/examples/index_structs/knowledge_graph/NebulaGraphKGIndexDemo.html

Upvotes: 2

Related Questions