docker-compose: pkg_resources.DistributionNotFound: The 'python-dotenv>=0.13.0' distribution was not found and is required by docker-compose
Just upgraded an Alpine Edge system to be greeted by this stack trace when trying to run docker-compose
:
Traceback (most recent call last):
File "/usr/bin/docker-compose", line 6, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3262, in <module>
def _initialize_master_working_set():
File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3245, in _call_aside
f(*args, **kwargs)
File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3274, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 584, in _build_master
ws.require(__requires__)
File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 901, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 787, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'python-dotenv>=0.13.0' distribution was not found and is required by docker-compose
Verified locally in a clean install in Docker using the current alpine:edge
container image.
Looks like there's some dependency issue with the 1.26.0-r0 package that got published earlier today.