You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Is this a new bug in the Pinecone Python client? #286
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.
Yes, the .init() method is no longer used in v3.0.0. Instead you should instantiate a client instance like this:
from pinecone import Pinecone
pc = Pinecone(api_key='YOUR_API_KEY')
# Now do stuff
pc.describe_index('my_index')
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.
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…