Replies: 1 comment
-
The error happens on psycopg/psycopg/psycopg/connection.py Line 817 in 93e915a Which is a point in which the libpq deallocats some memory. I am afraid you are in DLL hell. You might have more than one copy of the Conda is not supported either: I don't know what they do with a system. I think you should hear from them. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to migrate some code that worked in a Python 3.7 environment to work properly with an up-to-date Python 3.11 environment.
For some reason that I haven't been able to figure out, whenever a
psycopg2
orpsycopg
connection
is closed in the new environment, it causes Python to crash with a fatal exception code0xc0000374
.For example, this basic code will result in the crash:
Using
psycopg
instead gives slightly more info about the exception:Environment details:
Database: PostgreSQL 12.15
Python OS: Windows Server 2016
Updated Conda environment:
The exception doesn't occur in the old Conda environment:
I'm guessing it's some incompatibility with this combination of things in the setup, but it's not obvious what the actual problem is.
I'm still digging into it, so I'll update this if I learn more.
I was hoping that maybe someone in the community has some ideas on how I can more intelligently investigate it besides setting up a bunch of different environment and version permutations.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions