Closed arvindkc closed 5 months ago
Hey @arvindkc! I'm a bot designed to help you with bug fixes, questions, and contributions. Feel free to ask for assistance while waiting for a human maintainer.
The error "No module named 'llama_index.utilities'" is likely due to recent changes in the llama_index
package that affect the import paths. Specifically, the utilities
module has been moved under llama_index.core
.
To resolve this issue, update your import statement as follows:
from llama_index.core.utilities.sql_wrapper import SQLDatabase
This change should align with the new module structure in version 0.10.45 [1].
To continue talking to Dosu, mention @dosu.
@arvindkc llamahub repo is deprecated, and not expected to work (check out the readme over there, I think there's also a banner at the top)
If you are trying to use tools from that notebook, you need to install them
pip install llama-index-tools-database
https://llamahub.ai/l/tools/llama-index-tools-database?from=
Bug Description
I was trying to chat with a database following instructions here and received the error No module named 'llama_index.utilities'
Version
0.10.45
Steps to Reproduce
Execute the contents of this workbook to repro this error https://github.com/run-llama/llama-hub/blob/main/llama_hub/tools/notebooks/intro_to_tools.ipynb
Relevant Logs/Tracbacks