semantic-kernel icon indicating copy to clipboard operation
semantic-kernel copied to clipboard

Python: PineconeMemoryStore fails to initialize with a pinecone client error

Open robcamer opened this issue 2 years ago • 1 comments

Describe the bug The PineconeMemoryStore connector fails to initialize with a pinecone client error

To Reproduce Steps to reproduce the behavior:

  1. Attempt to register the PineconeMemoryStore by calling kernel.register_memory_store
  2. Results in error: "AttributeError: init is no longer a top-level attribute of the pinecone package."

Expected behavior The PineconeMemoryStore is registered and available.

Screenshots If applicable, add screenshots to help explain your problem.

Platform

  • OS: Ubuntu, Windows
  • VS Code
  • Language: Python
  • Source: Semantic Kernel python package=0.5.0dev0

Additional context The issue is semantic-kernel/python/semantic_kernel/connectors/memory/pinecone/pinecone_memory_store.py, line 60 pinecone.init(api_key=self._pinecone_api_key, environment=self._pinecone_environment)

Replace the call to pinecone.init with:

    pc = Pinecone( 

        api_key=self._pinecone_api_key

    ) 

robcamer avatar Feb 07 '24 15:02 robcamer

This issue is stale because it has been open for 90 days with no activity.

github-actions[bot] avatar May 09 '24 01:05 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar May 23 '24 01:05 github-actions[bot]