Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dev-python/sqlalchemy not support psycopg dialect? [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
fpemud
Guru
Guru


Joined: 15 Feb 2012
Posts: 348

PostPosted: Mon Sep 19, 2022 1:03 am    Post subject: dev-python/sqlalchemy not support psycopg dialect? [SOLVED] Reply with quote

psycopg, psycopg2 and psycopg2cffi are 3 different postgresql dialects in sqlalchemy.

I found only these 2 files in my system after installing dev-python/sqlalchemy-1.4.41:
/usr/lib/python3.9/site-packages/sqlalchemy/dialects/postgresql/psycopg2.py
/usr/lib/python3.9/site-packages/sqlalchemy/dialects/postgresql/psycopg2cffi.py

The missing file is:
/usr/lib/python3.9/site-packages/sqlalchemy/dialects/postgresql/psycopg.py

Is there something wrong with my system, or has gentoo's sqlalchemy ebuild removed psycopg.py? Why?


Reference:
https://github.com/sqlalchemy/sqlalchemy/blob/main/lib/sqlalchemy/dialects/postgresql/psycopg.py
https://github.com/sqlalchemy/sqlalchemy/blob/main/lib/sqlalchemy/dialects/postgresql/psycopg2.py
https://github.com/sqlalchemy/sqlalchemy/blob/main/lib/sqlalchemy/dialects/postgresql/psycopg2cffi.py


Last edited by fpemud on Mon Sep 19, 2022 5:44 am; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30822
Location: here

PostPosted: Mon Sep 19, 2022 5:12 am    Post subject: Re: dev-python/sqlalchemy doesn't support psycopg dialect? Reply with quote

fpemud wrote:
Is there something wrong with my system, or has gentoo's sqlalchemy ebuild removed psycopg.py? Why?

Your system and also ebuild are ok, the problem that in the tags the psycopg.py file is not included.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
fpemud
Guru
Guru


Joined: 15 Feb 2012
Posts: 348

PostPosted: Mon Sep 19, 2022 5:44 am    Post subject: Reply with quote

Oh, I see. Thanks.

Yes I should have checked the upstream release tarball.

So I think I have to use dev-python/psycopg:2 and wait for sqlalchemy-1.5 then, sigh.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum