Welcome to the Forum!
I use Anvil Uplink regularly, but only up to Python 3.10, to avoid problems like this. As the very latest version of Python, I consider 3.12 to be somewhat “bleeding edge”. Clearly, Anvil Uplink 0.4.2 (the latest version on PyPI) hasn’t been vetted against it.
3.12 has removed wrap_socket
:
The deprecation note suggests how one might code up a replacement. I don’t know how practical it might be to hack up your local copy of the Anvil Uplink package, to incorporate the suggested change.
No doubt Anvil is aware, and working on an update. But as an Anvil user, I have no idea what the schedule might be.