Because importlib-metadata
releases v5.0.0 yesterday which it remove deprecated endpoint.
You can set importlib-metadata<5.0
in ur setup.py so it does not install latest version.
Or if you use requirements.txt, you can as well set importlib-metadata
below version 5.0
e.g importlib-metadata==4.13.0
For more info: https://importlib-metadata.readthedocs.io/en/latest/history.html