Skip to content

[Bug] Cant initialize Pinecone class because it says it doesn't have an api_key argument #300

Closed as not planned

Description

@juanccontreras8

Is this a new bug in the Pinecone Python client?

  • 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

Pinecone(api_key = ) isn't initializing

Expected Behavior

Class should initialize

Steps To Reproduce

from pinecone import Pinecone

pc = Pinecone(api_key=os.environ.get('PINECONE_API_KEY'))

Relevant log output

TypeError: Pinecone.__init__() got an unexpected keyword argument 'api_key'

Environment

- OS: Windows 11
- Python:3.10.0
- pinecone: 3.0.1

Additional Context

No response

Activity

  1. added
    bug
    on Jan 24, 2024
  2. ranjanbatra3pg commented on Jan 24, 2024

    @ranjanbatra3pg

    Same is happening with me.

  3. UmairAhmadBaltoro commented on Feb 12, 2024

    @UmairAhmadBaltoro
    TypeError: Pinecone.__init__() got an unexpected keyword argument 'api_key'
    [2024-02-12 16:16:51,898] ERROR in polling_thread: Error in polling thread: Pinecone.__init__() got an unexpected keyword argument 'api_key'
    
  4. ranjanbatra3pg commented on Feb 12, 2024

    @ranjanbatra3pg

    I found out what was causing the error on my side.
    Double check imports - make sure there is no duplicate imports.
    I had an import:
    from langchain.vectorstores import Pinecone

  5. UmairAhmadBaltoro commented on Feb 12, 2024

    @UmairAhmadBaltoro

    Thanks. @ranjanbatra3pg I also had the same issue.
    now fixed..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions