asyncore and asynchat were removed from the standard library in Python 3.12 (PEP 594).
Why it happens
`asyncore` and its companion `asynchat` were deprecated in Python 3.6 and removed in Python 3.12. Older network code and some libraries that still import them fail at import time on the python3.12 runtime.
How to fix it
Port the code to `asyncio` — its protocols and transports are the supported replacement for `asyncore`/`asynchat`.
If a third-party dependency imports `asyncore`, upgrade it to an asyncio-based release; many have shipped one.
For an unavoidable legacy import, vendor the pure-Python `asyncore.py` / `asynchat.py` from a Python 3.11 source tree into your package.
Re-test on python3.12 to surface other PEP 594 removals (`smtpd`, `imp`, `distutils`).