You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PostgreSQL version: PostgreSQL 14.11 (Homebrew) on aarch64-apple-darwin23.2.0, compiled by Apple clang version 15.0.0 (clang-1500.1.0.2.5), 64-bit
Do you use a PostgreSQL SaaS? If so, which? Can you reproduce
the issue with a local PostgreSQL install?: NA
Python version: 3.12.2
Platform: MacOS M1
Do you use pgbouncer?: NO
Did you install asyncpg with pip?: rye/uv also tried with pip - same result
If you built asyncpg locally, which version of Cython did you use?: NA
Can the issue be reproduced under both asyncio and uvloop?: yes
I'm seeing this quite often when using a pool, I've checked the code, but can't imagine where it's coming from:
Exception ignored in: <function Connection.__del__ at 0x113f9dee0>
Traceback (most recent call last):
File "/Users/samuel/code/logfire-demo/.venv/lib/python3.12/site-packages/asyncpg/connection.py", line 124, in __del__
if not self.is_closed() and self._protocol is not None:
^^^^^^^^^^^^^^^^
File "/Users/samuel/code/logfire-demo/.venv/lib/python3.12/site-packages/asyncpg/connection.py", line 1455, in is_closed
return self._aborted or not self._protocol.is_connected()
^^^^^^^^^^^^^
AttributeError: 'Connection' object has no attribute '_aborted'
As far as I can tell I'm not doing anything different from normal usage of create_pool, I'm afraid the code isn't currently open source.
The text was updated successfully, but these errors were encountered:
samuelcolvin
changed the title
'Connection' object has no attribute '_aborted' on Connection.__del__no attribute '_aborted' on Connection.__del__Mar 14, 2024
samuelcolvin
changed the title
no attribute '_aborted' on Connection.__del__
no attribute _aborted on Connection.__del__Mar 14, 2024
0.29.0
PostgreSQL 14.11 (Homebrew) on aarch64-apple-darwin23.2.0, compiled by Apple clang version 15.0.0 (clang-1500.1.0.2.5), 64-bit
the issue with a local PostgreSQL install?: NA
uvloop?: yes
I'm seeing this quite often when using a pool, I've checked the code, but can't imagine where it's coming from:
As far as I can tell I'm not doing anything different from normal usage of
create_pool
, I'm afraid the code isn't currently open source.The text was updated successfully, but these errors were encountered: