Find answers from the community

Updated 3 months ago

Key error

@everyone
this is how my code looks
i have used a simple txt file as data input
https://pastebin.com/EiAUU2QY

i'm getting below error

tenacity.RetryError: RetryError[<Future at 0x139f5d7f0 state=finished raised FileNotFoundError>]

please let me know if you guys aware what to do over here

thanks in advance!
L
a
21 comments
I think i answered this on github, but remove line 18 from the pastebin code
hi @Logan M , as you said i have removed line 18 , i think thats was not a solution for this error , can you provide any other solution to solve above issue
Did you get the same error after removing it?
But how? The full error you had on github was about reading from a file? πŸ˜…
yeah sorry i got this error now

tenacity.RetryError: RetryError[<Future at 0x12ccfdfd0 state=finished raised AuthenticationError>]
after removing the line 18
Do you have the full stack trace?

It might be a langchain issue, you can try upgrading langchain, or downgrading to 0.0.154 ish, I've seen some issues with langchain versions recently
yeah i have trace give me a sec
@Logan M let me know if you need any further details.
What langchain version do you have? pip show langchain
@Logan M
Name: langchain
Version: 0.0.188
Summary: Building applications with LLMs through composability
Home-page: https://www.github.com/hwchase17/langchain
Author:
You could try maybe pip install --upgrade langchain, or pip install langchain==0.0.154

Tbh though I don't see anything wrong in your code. Are you running in Google colab by chance? I have also seen that be problematic for some reason lately
i'm using vscode with virtual environment.
Yea idk man, I'm running out of ideas lol

Maybe try generating a new api key, or starting with a fresh venv?
still i'm getting same issue.
tenacity.RetryError: RetryError[<Future at 0x13e7a8a00 state=finished raised FileNotFoundError>]
running on mac m1 may be cause for this issue?
M1 mac should be fine πŸ€” why is the error still looking for a file... so weird !
exactly. path was correct but still its throwing error filenotfound 😞
Add a reply
Sign up and join the conversation on Discord