[issue46256] Objects __del__ called after module have been removed

Dennis Sweeney report at bugs.python.org
Wed Jan 5 14:26:27 EST 2022


Dennis Sweeney <sweeney.dennis650 at gmail.com> added the comment:

I'm getting this:

Traceback (most recent call last):
  File "/mnt/c/Users/sween/Source/Repos/cpython2/cpython/delbug.py", line 65, in <module>
    conn = psycopg.connect('dbname=cuny_curriculum')
  File "/home/sween/.local/lib/python3.10/site-packages/psycopg/connection.py", line 572, in connect
    raise ex.with_traceback(None)
psycopg.OperationalError: connection is bad: No such file or directory
        Is the server running locally and accepting connections on that socket?

Is there a self-contained way to reproduce the issue without a DB up and running? Or to somehow shrink the reproducer down to its cpython-relevant bare essentials?

----------
nosy: +Dennis Sweeney

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46256>
_______________________________________


More information about the Python-bugs-list mailing list