Message 1 of 1
unable to load certain packages in Maya python (psycopg2)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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?