I'm running
System: Kernel: 5.4.23-1-MANJARO x86_64 bits: 64 compiler: gcc v: 9.2.1 Desktop: Gnome 3.34.4
Distro: Manjaro Linux
When I install docker-compose build
(or most other commands other than help
) there seems to be a conflict between dependencies. Notably, doing a docker-compose build
triggers a python stack trace:
$ docker-compose images
Traceback (most recent call last):
File "/bin/docker-compose", line 11, in <module>
load_entry_point('docker-compose==1.25.4', 'console_scripts', 'docker-compose')()
File "/usr/lib/python3.8/site-packages/compose/cli/main.py", line 72, in main
command()
File "/usr/lib/python3.8/site-packages/compose/cli/main.py", line 125, in perform_command
project = project_from_options('.', options)
File "/usr/lib/python3.8/site-packages/compose/cli/command.py", line 54, in project_from_options
return get_project(
File "/usr/lib/python3.8/site-packages/compose/cli/command.py", line 147, in get_project
client = get_client(
File "/usr/lib/python3.8/site-packages/compose/cli/command.py", line 118, in get_client
client = docker_client(
File "/usr/lib/python3.8/site-packages/compose/cli/docker_client.py", line 127, in docker_client
client = APIClient(**kwargs)
File "/usr/lib/python3.8/site-packages/docker/api/client.py", line 127, in __init__
self._auth_configs = auth.load_config(
TypeError: load_config() got an unexpected keyword argument 'config_dict'
(1)
The offending call is trunicated above, but it is:
File "/usr/lib/python3.8/site-packages/docker/api/client.py", line 127, in init
self._auth_configs = auth.load_config(
config_dict=self._general_configs, credstore_env=credstore_env,
)
At that point of execution, auth
is a package loaded into the namespace via from .. import auth
which loads: /usr/lib/python3.8/site-packages/docker/auth/auth.py
Which defines the function that is being called in the traceback:
def load_config(config_path=None):
Which in fact does not have the config_dict
that the api/client code is attempting to pass it.
My relevant packages:
$ pamac list | grep docker
docker 1:19.03.6-1 community 190.9 MB
docker-compose 1.25.4-1 community 1.3 MB
python-docker 4.2.0-1 community 1.4 MB
python-docker-pycreds 0.4.0-5 community 19.7 kB
python-dockerpty 0.4.1-6 community 85.8 kB
I eventually got docker-compose working by loading the binary from the authoritative upstream (per https://docs.docker.com/compose/install/) which solved my immediate need (and confirms that my own docker compose file and operating environment isn't at fault). It'd obviously be nice to have this as a functional managed package though.