Index creation errors
Missing spec argument
spec argument in create_index(). Pass one to set the index’s cloud and region:
Python
spec is optional and new indexes default to AWS us-east-1. For current syntax, see Create an index.
Serverless index limit reached
403 when the project already has as many serverless indexes as your plan allows. For the limit on each plan, see Object limits. To fix it, do one of the following:
- Delete indexes you no longer need.
- Store data in namespaces within one index instead of creating separate indexes.
- Upgrade your plan.
Outdated Python SDK errors
These errors come from code written for Python SDK versions earlier than 3.0.0, or from having the deprecatedpinecone-client package installed.
Pinecone has no attribute init
pinecone.init(), which was removed in version 3.0.0. Create a client instance instead. It doesn’t take an environment, only an API key:
Python
pinecone.create_index() and pinecone.list_indexes(). Call them on the client instance instead.
Cannot import name Pinecone
pinecone-client package is installed alongside pinecone. The Python SDK package was renamed from pinecone-client to pinecone, and having both installed causes conflicts. Remove the old package and upgrade:
Shell
Controller hostname not found
controller hostnames. Current SDKs use https://api.pinecone.io. Upgrade the SDK, then update your code as described in Pinecone has no attribute init:
Shell