Closed
Description
- I believe this is a new bug in the Pinecone Python Client
- I have searched the existing issues, and I could not find an existing issue for this bug
Current Behavior
I have Pinecone upgraded to v3.0.0 and also installed the GRPC client.
When I run the following command:
pinecone.init(api_key="API_KEY", environment="ENV")
I get the following error:
AttributeError: module 'pinecone' has no attribute 'init'
Expected Behavior
Previously the same code was perfectly running in the Google Colab with no issue. But, today suddenly this issue arrived.
Methods Tried:
When further researching, some searches suggested re-installing the pinecone-client, and installing the v3.0.0, but none of the solutions worked.
Environment
- Google Colab:
- Python: 3.10.12
- pinecone: 3.0.0
-openai: 0.27.7
Reacted by G Soares Peres
Metadata
Metadata
Assignees
Labels
No labels
Activity
sunxivincent commentedon Jan 17, 2024
+1 deploy AWS python image
public.ecr.aws/lambda/python:3.11running into same issuegdj0nes commentedon Jan 17, 2024
The v3 version of the client has breaking changes. Here's the migration guide.
jhamon commentedon Jan 19, 2024
Yes, the
.init()method is no longer used in v3.0.0. Instead you should instantiate a client instance like this:This approach encapsulates configuration state in the class instance so that people can work with multiple pinecone projects from the same app, if they wish.
I'm going to try to add some better warning messages to help give better guidance on the necessary migration.
Bump loguru from 0.5.0 to 0.5.3 (pinecone-io#206)
fix(tooling): accept the legal opaque token 'None' in the list-backup…