unable to load certain packages in Maya python (psycopg2)

unable to load certain packages in Maya python (psycopg2)

count.temp20
Contributor Contributor
303 Views
0 Replies
Message 1 of 1

unable to load certain packages in Maya python (psycopg2)

count.temp20
Contributor
Contributor

Hi all,
I've been trying to connect to an external database and read some data. My database is created in postgres so I tried using psycopg2 or even SQLAlchemy to gete access to it but maya can not load the modules inside python. I tried adding their address manually using sys.path.append but sadly it didn't work. I'm using maya 2022 so I guess this issue should persist in older versions as well. I've tried these approaches in 2023 and they work just fine, I guess due to some differences in python's version. Does anyone know how I can tackle this issue? Or should I be using some other modules al together to use gain access to postgres?

0 Likes
304 Views
0 Replies
Replies (0)