-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Error with Langchain demo notebook #229
Comments
The following steps solve the problem for me: !pip install --upgrade protobuf apache-beam you may need to restart the runtime after each of these executions |
Thanks @tytung2020 . index = pinecone.GRPCIndex(index_name)
index.describe_index_stats() To: import time
index = pinecone.GRPCIndex(index_name)
# wait a moment for the index to be fully initialized
time.sleep(1)
index.describe_index_stats() I'm simply replacing some code snippets in this notebook for what's working here |
This Poetry setup has worked for me using Python 3.9 : pyproject.toml
Then:
|
Is this a new bug?
Current Behavior
When running this notebook: https://colab.research.google.com/github/pinecone-io/examples/blob/master/generation/langchain/handbook/05-langchain-retrieval-augmentation.ipynb
from datasets import load_dataset
causes this error:
AttributeError Traceback (most recent call last)
in <cell line: 1>()
----> 1 from datasets import load_dataset
2
3 data = load_dataset("wikipedia", "20220301.simple", split='train[:10000]')
4 data
8 frames
/usr/local/lib/python3.10/dist-packages/multiprocess/dummy/init.py in
85 #
86
---> 87 class Condition(threading._Condition):
88 # XXX
89 if sys.version_info < (3, 0):
AttributeError: module 'threading' has no attribute '_Condition'
Expected Behavior
It should import load_dataset
Steps To Reproduce
Open this notebook and run all:
https://colab.research.google.com/github/pinecone-io/examples/blob/master/generation/langchain/handbook/05-langchain-retrieval-augmentation.ipynb
Relevant log output
No response
Environment
Additional Context
No response
The text was updated successfully, but these errors were encountered: