The community member is experiencing an ImportError when trying to import the SQLTableNodeMapping module from the llama_index library. They have updated and restarted multiple times but are still having difficulty with this specific module. Another community member suggests using from llama_index.objects import SQLTableNodeMapping as a potential solution.
" " " --------------------------------------------------------------------------- ImportError Traceback (most recent call last) Cell In[8], line 2 1 from llama_index import SQLDatabase, ServiceContext, Document, LLMPredictor ----> 2 from llama_index.indices.struct_store.sql_query import SQLTableNodeMapping 3 from llama_index.llms import OpenAI 4 from llama_index import SQLDatabase, SimpleDirectoryReader, Document
ImportError: cannot import name 'SQLTableNodeMapping' from 'llama_index.indices.struct_store.sql_query' (c:\Users\ASUS\OneDrive\Desktop\hello\env\lib\site-packages\llama_index\indices\struct_store\sql_query.py) " " " i've updated and restarted multiple times having difficulty in importing this specific module