I have been using docxcompose for one of my projects for ages and it just started erroring this evening. It gave me this error:
ModuleNotFoundError: No module named 'pkg_resources'
at /home/anvil/.env/lib/python3.10/site-packages/docxcompose/properties.py:18
called from /home/anvil/.env/lib/python3.10/site-packages/docxcompose/composer.py:12
called from LPWriter, line 16
called from /home/anvil/downlink/anvil_downlink_worker/__init__.py:96
called from /home/anvil/downlink/anvil_downlink_worker/__init__.py:264
I traced this back to the latest setuptools version that dropped pkg_resources from its dependencies after v80. I fixed this by pinning the latest v80 version of v80.10.2.
Just a heads up for anyone else who runs into this issue with their dependencies. ![]()