ModuleNotFoundError: No module named 'pkg_resources'

Apologies if this is not the right forum for this. But I am working on porting the Statistical Rethinking (2nd Edition) notebooks to PyMC v5+ (and Pytensor). My PR can be found here:

The pre-commit checks run successfully on my local machine, but on github I get an error on the black, isort, and pyupgrade actions. All saying “ModuleNotFoundError: No module named ‘pkg_resources’”. I am not sure if that suggests there needs to be an update to the pre-commit yml file or if I am doing something incorrect.

Again, apologies if this is not the correct forum for this. Please feel free to redirect my inquiry to the appropriate forum.

This has been resolved. The solution was to rebase my branch and then it worked.