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

pgvector-haystack cannot be installed from psycopg on 3.1.20 #1267

Open
phiweger opened this issue Dec 30, 2024 · 1 comment
Open

pgvector-haystack cannot be installed from psycopg on 3.1.20 #1267

phiweger opened this issue Dec 30, 2024 · 1 comment
Labels
bug Something isn't working P3

Comments

@phiweger
Copy link

pgvector-haystack depends on psycopg[binary] but psycopg-binary can't be installed with M1 CPU starting from 3.1.20. Instead, psycopg[c] works, which is the "local installation", which is also recommended:

This is the preferred way to install Psycopg for a production site.

Is this something you'd consider changing?

@phiweger phiweger added the bug Something isn't working label Dec 30, 2024
@phiweger
Copy link
Author

A workaround for people encountering this is to override the dependency spec of pgvector-haystack using the uv package manager:

[project]
name = "foo"
version = "0.0.1"
description = "bar"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
    "pgvector-haystack==1.2.0",
]

[[tool.uv.dependency-metadata]]
name = "pgvector-haystack"
version = "1.2.0"
requires-dist = ["haystack-ai", "pgvector", "psycopg[c]==3.2.3"]

@julian-risch julian-risch added the P3 label Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P3
Projects
None yet
Development

No branches or pull requests

2 participants