-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LLMChain build error:RedisCache only accepts values that can be pickled. #1324
Comments
🤖 Hello @lsg328! I'm Dosu, a friendly bot here to assist you while a human maintainer becomes available. I'm designed to help you work out bugs, answer your queries, and guide you through contributing to the project. Don't hesitate to ask any questions you have while we work on this together. Looking forward to helping you get this sorted! The error "RedisCache only accepts values that can be pickled" typically occurs when you're trying to store a value in Redis that can't be serialized (or "pickled") into a format that Redis can store. In the context of the provided code, this could potentially happen if the The To resolve this issue, you should ensure that the If you're not sure whether an object is picklable, you can test it using Python's built-in import pickle
try:
pickle.dumps(your_object)
except (pickle.PicklingError, TypeError):
print("This object is not picklable") Replace Unfortunately, I wasn't able to find the structure of the You can find more information about the I hope this helps! If you have any other questions, feel free to ask. -Dosu SourcesThis response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant. If you want to continue the conversation, start your reply with @dosu-bot. |
Hey @lsg328 Yeah.. this is a problem we encountered after on openai's package after 1.0 because there's a thread lock object that blocks the dump. This is definitely fixable but requires quite a bit of testing. We need to implement how the Vertex object serializes. |
@ogabrielluiz Thank you for your reply, looking forward to your good news |
We are also facing the same issue. We kindly ask for your assistance. |
Hi, Do we have any workaround solution to fix this issue ? Thanks. |
I'm facing the same issue. Any workaround or should I downgrade to 0.5.12? |
A workaround that worked is setting |
Hello, |
Hi @lsg328 , We hope you're doing well. Just a friendly reminder that if we do not hear back from you within the next 3 days, we will close this issue. If you need more time or further assistance, please let us know. Thank you for your understanding! |
Thank you for your contribution! This issue will be closed. If you have any questions or encounter another problem, please open a new issue and we will be ready to assist you. |
Describe the bug
Using ChatOpenAi/OpenAi to create LLMChain, an error occurs when compiling:
RedisCache only accepts values that can be pickled.
TypeError("cannot pickle '_thread.RLock' object")
Version
0.6.4
Screenshots
![image](https://private-user-images.githubusercontent.com/24787621/295920241-94b99374-eb88-4fc2-a674-d080e2c28c86.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjMwNzYxNDcsIm5iZiI6MTcyMzA3NTg0NywicGF0aCI6Ii8yNDc4NzYyMS8yOTU5MjAyNDEtOTRiOTkzNzQtZWI4OC00ZmMyLWE2NzQtZDA4MGUyYzI4Yzg2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODA4VDAwMTA0N1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTEzY2IxZjlkN2NmMDQ5ZGE5MjUzNWVhNDg5MmJiMjUyYjM1YjA0ZGZhMDgyY2JkN2I5MTMwYzJiOTNhOWQ5NDImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Q1QoVhoSTwWm2UsSuCfuNpQ0CW7xIvcu7bVbH23dlS8)
Log
log.txt
The text was updated successfully, but these errors were encountered: