Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken pinecone-client dependency in pinecone-haystack #1430

Closed
askainet opened this issue Feb 24, 2025 · 0 comments · Fixed by #1431
Closed

Broken pinecone-client dependency in pinecone-haystack #1430

askainet opened this issue Feb 24, 2025 · 0 comments · Fixed by #1431
Assignees
Labels
bug Something isn't working integration:pinecone P0

Comments

@askainet
Copy link

Describe the bug

Pinecone renamed their official SDK package from pinecone-client to pinecone after releasing v5.0.1 on 2024-08-01, and since then v5.1, v5.2, v5.3, and v5.4 were published only in pinecone (pinecone package history).

On 2025-02-21, Pinecone published a breaking v6.0.0 in the deprecated "pinecone-client" package, which throws an exception on import to warn users about the package rename.

The pinecone-haystack integration requires pinecone-client>=3, which installs the broken v6.0.0 currently.

To Reproduce

Since 2025-02-21, the broken pinecone-client==6.0.0 requirement is installed:

; project_dir="$(mktemp -d)" sh -x <<'EOF'
  cd "${project_dir}"
  uv venv -q
  uv pip -q install "pinecone-haystack"
  uv pip freeze | grep pinecone
  uv run python -c "from haystack_integrations.document_stores.pinecone import PineconeDocumentStore; print(PineconeDocumentStore.__doc__);"
EOF

pinecone-client==6.0.0
pinecone-haystack==3.0.0
pinecone-plugin-interface==0.0.7

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/tmp.U0SZtD9d5m/.venv/lib/python3.12/site-packages/haystack_integrations/document_stores/pinecone/__init__.py", line 4, in <module>
    from .document_store import PineconeDocumentStore
  File "/tmp/tmp.U0SZtD9d5m/.venv/lib/python3.12/site-packages/haystack_integrations/document_stores/pinecone/document_store.py", line 13, in <module>
    from pinecone import Pinecone, PodSpec, ServerlessSpec
  File "/tmp/tmp.U0SZtD9d5m/.venv/lib/python3.12/site-packages/pinecone/__init__.py", line 5, in <module>
    raise Exception(
Exception: The official Pinecone python package has been renamed from `pinecone-client` to `pinecone`. Please remove `pinecone-client` from your project dependencies and add `pinecone` instead. See the README at https://github.com/pinecone-io/pinecone-python-client for more information on using the python SDK.

Pinning pinecone-client<6.0.0 installs the last working release:

; project_dir="$(mktemp -d)" sh <<'EOF'
  cd "${project_dir}"
  uv venv -q
  uv pip -q install "pinecone-haystack" "pinecone-client<6"
  uv pip freeze | grep pinecone
  uv run python -c "from haystack_integrations.document_stores.pinecone import PineconeDocumentStore; print(PineconeDocumentStore.__doc__);"
EOF

pinecone-client==5.0.1
pinecone-haystack==3.0.0
pinecone-plugin-inference==1.1.0
pinecone-plugin-interface==0.0.7

    A Document Store using [Pinecone vector database](https://www.pinecone.io/).

Describe your environment (please complete the following information):

  • OS: all
  • Haystack version: 2.x
  • pinecone-haystack: all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working integration:pinecone P0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants