What version are you trying with?
Can you try with the latest version once
Can anyone help me with the above issue?
I tried multiple version of llamaindex from0.6.15 to latest versions but getting the same error
Try restarting the runtime, You dont have to install anything again. After restarting just run the import cell
see if this solves your issue
still getting the same error message
Just ran with latest version, Import worked for me
are you using google colab or jupyter notebook?
Try killing the current session and starting a new one!
in colab it is working fine but in jupyter notebook and streamlit throwing error
Colab plus ran it via script too. Both worked
Could you please try once in jupyter notebook?
bro which version of python are you using?
It looks like it'd failing to download either tiktoken or nltk files on first import (I can't say for sure, you've only sent the start and end of the traceback)
If you read the entire call stack in the traceback, I'm sure you'd find which line of code is causing an issue
Do you have a VPN or any network restrictions?
@Logan M No network restrictions as such
@WhiteFang_Jr I have used python version 3.9.0 I got an error as
ImportError: cannot import name '_tiktoken' from partially initialized module 'tiktoken' (most likely due to a circular import) (C:\Users\Jayesh.nikam\AppData\Local\Programs\Python\Python310\lib\site-packages\tiktoken__init__.py)
Then I tried python 3.9.11 still getting the same error
You are creating a env with python right? Coz for your python 3.9
it is accessing for tiktoken from python 3.10
Can you install nltk and tiktoken from your side as @Logan M mentioned
I have installed separately. Unfortunately getting same error again
I have uninstalled python 3.10 and then installed new version as 3.9.11
@WhiteFang_Jr could you please tell me how I should resolve the above issue?
As it mentions, you need to restart the kernel to reflect the installation. Can you try that
Yes tried already but getting same error message
Hmm, little lost here tbh. I tried the same on jupyter notebook and it worked for me!
Colaba is working for you?
Or you getting the same error there as well?
Colab is working fine for me but later I want to use it in streamlit
so I am trying to use it in jupyter notebook
I see,
Not really sure why it is failing for you here.
Can you try running the code via .py
file with a python environment
It could be that the kernel is not refreshing properly. As it still shows python3.10
As you said you removed it from the system
Yes I tried to run above file that is a part of "build-a-chatbot-with-custom-data-sources-powered-by-llamaindex" in streamlit with .py file throwing same error
I'm not sure what the issue is here. It works fine on my end as well.
No idea about the circular import, but the original error is a network thing, not being able to reach tiktoken servers for download
original error was with the version 3.10,.10 and tiktoken error is getting with python version of 3.9.11
@WhiteFang_Jr could you please check which version of openai you are using?