Reproduce via:
docker run --rm -it python:3.12 bash
# within docker
pip install pheweb
This fails during install of greenlit (via gevent) with a similar error to this bug
Removing the pinned version of gevent~=21.1 and installing a later gevent fixes this (but I haven't yet tested if this causes any issues downstream, nor which versions exactly of gevent work)