Got rid of pinecone-client, but langchain and the new pinecone library still isn't working

A few months ago, I made a working prototype of a RAG Agent using LangChain and Pinecone. It’s now been a few months and I’m returning to build it out more, but the Pinecone SDK changed and my prototype is broken.

I’m pretty sure the langchain_community packages was obsolete so I updated langchain and pinecone like the documentation instructs, and I also got rid of pinecone-client.

I am also importing it according to the new documentation, as follows:

from pinecone import Pinecone, ServerlessSpec, CloudProvider, AwsRegion 
from langchain_pinecone import PineconeVectorStore
index = pc.Index(my-index-name)

YET, I’m still currently getting this error message:

Exception: The official Pinecone python package has been renamed from \pinecone-clienttopinecone. Please remove pinecone-clientfrom your project dependencies and addpinecone instead. See the README at https://github.com/pinecone-io/pinecone-python-clientfor more information on using the python SDK

pip list | grep pinecone shows that pinecone-client is gone and that i’m using these versions of pinecone/langchain:

langchain-pinecone        0.2.8
pinecone                  7.0.2
pinecone-plugin-assistant 1.6.1
pinecone-plugin-interface 0.0.7

Am I missing something?

I’ve followed the documentation for updating and I’ve looked through the Pinecone Search feature, I’ve read the github README, I’ve gone through Langchain forums, and I’ve used ChatGPT. There doesn’t seem to be any clear directions.

Why does it raise this exception and say that I’m still using pinecone-client when I’m clearly not. I’ve removed Pinecone-client explicitly and i’ve uninstalled and reinstalled pinecone several times and I’m following the new import names.I’ve cleared cache as well.

Any help would be appreciated, thank you.

Hey @patrick3! Thanks for joining the Pinecone forums.

I had this happen to me last week, so my first instinct is the cache, but you mentioned you cleared it already.

Can you check to make sure that your app is using the packages from the correct location? Maybe it’s not picking up a virtual environment?

You can try this to make sure that it’s hitting the packages you expect:

import sys
print(sys.path)