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

No PostgreSQL driver in docker image for 1.0.16 #3517

Closed
hakan-77 opened this issue Aug 22, 2024 · 3 comments · Fixed by #3526
Closed

No PostgreSQL driver in docker image for 1.0.16 #3517

hakan-77 opened this issue Aug 22, 2024 · 3 comments · Fixed by #3526
Assignees
Labels
bug Something isn't working

Comments

@hakan-77
Copy link

Bug Description

No PostgreSQL driver in docker image for 1.0.16 (No module named 'psycopg2')

Reproduction

Install using docker image, connect to postgresql

Expected behavior

psycopg2 is installed

Who can help?

No response

Operating System

Ubuntu 22.04

Langflow Version

1.0.16

Python Version

None

Screenshot

No response

Flow File

No response

@hakan-77 hakan-77 added the bug Something isn't working label Aug 22, 2024
@hakan-77
Copy link
Author

Update: I see that pycopg is installed instead, but forcing to use pycopg instead of pycopg2 doesn't work either since the binary elements are missing.

Can the dependencies list use pycopg[binary] insread of just pycopg? I can confirm this works.

@hakan-77 hakan-77 changed the title No PostgreSQL driver in docker image for 1.0.16 (No module named 'psycopg2') No PostgreSQL driver in docker image for 1.0.16 Aug 22, 2024
Copy link

dosubot bot commented Aug 22, 2024

Yes, the dependencies list can use pycopg[binary] instead of just pycopg in the Docker image for Langflow version 1.0.16 to ensure PostgreSQL driver compatibility. You can modify the pyproject.toml file to include psycopg[binary]:

[tool.poetry.dependencies]
psycopg = { version = "3.1.9", extras = ["binary"] }

This change will ensure that the binary version of the psycopg package is used, which can help with compatibility and performance [1][2].

To continue talking to Dosu, mention @dosu.

@italojohnny
Copy link
Member

This issue is related to issue #3524

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants