Open olmohake opened 2 months ago
It looks like the issue you're encountering is due to incorrect import paths in your script. The correct way to import GraphQLToolSpec
and OpenAIAgent
from the llama_index
package is as follows:
from llama_index.tools.graphql.base import GraphQLToolSpec
from llama_index.agent.openai.base import OpenAIAgent
Please update your import statements accordingly. Additionally, ensure that both llama-index
and llama-index-tools-graphql
are correctly installed in your Python environment. You can verify this by running pip list
in your terminal to see if these packages are listed.
If the problem persists after making these changes, consider the following steps:
pip install --upgrade --force-reinstall llama-index llama-index-tools-graphql
to make sure you have the correct and latest versions.If after following these steps you still face issues, providing more details about your setup, such as the output of pip show llama_index
, your Python version, and your operating system, could help in diagnosing the problem more accurately.
To continue the conversation, mention @dosu.
Do you have a file or folder named llama_index ? maybe rename that
Works fine on google colab (and also locally for me)
https://colab.research.google.com/drive/1NSnaLBgkP4AJrlvYy-g2rjyyd8HriC_z?usp=sharing
Bug Description
python test.py => ModuleNotFoundError: No module named 'llama_index
Version
latest
Steps to Reproduce
see above
Relevant Logs/Tracbacks
No response