-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: load_config() got an unexpected keyword argument 'config_dict' #6339
Comments
+1 |
I'm getting the same error. |
Thanks for the report! FWIW, we used to detect the conflict: #4383 As I wrote in #5639, the cons of checking for this outweigh the pros, so I don't expect we'll address this. If you're running into this error, you need to either uninstall |
Hi all, I have the same issue on Mac but it's not clear to me how to fix it. I am not a python expert and my understanding is that docker-py is obsolete in some way. I installed everything using Docker Mac installer. Can anyone suggest me the exact steps to fix docker-compose on my Mac? salvatores-MBP:docker-compose sasadangelo$ pip list docker | grep docker |
Try this....
This assumes that you have pip associated with python2.7 and pip3 with python 3.x. |
docker-py is deprecated and should not be use. A workaround is to use python 3 to install docker-compose instead of python 2.7. See docker/compose#6339
Just had this same issue and was going round in circles with it. Uninstalling docker, docker-compose & docker-py and then installing docker and docker-compose resolved the issue for us. |
NOT WORK FOR ME!
|
try it
|
Description of the issue
Tried to run docker-compose on a trivial docker-compose.yml, and it crashes with the error message given in the issue title ☝️. Unable to get it working on anything since upgrading from
docker-compose-1.8.0
todocker-compose-1.23.1
.Context information (for bug reports)
Output of
docker-compose version
Output of
docker version
Output of
docker-compose config
(Make sure to add the relevant
-f
and other flags)Steps to reproduce the issue
pip3 install --user -U docker-compose
on Ubuntu 16.04.5 LTS.Observed result
docker-compose crashes with a stack trace.
Expected result
docker-compose should run a postgres database.
Stacktrace / full error message
Additional information
OS version / distribution,
docker-compose
install method, etc.docker-compose
was installed usingpip3 install --user -U docker-compose
on Ubuntu 16.04.5 LTS.Seems related to this issue, which I did not find before writing the above: docker/docker-py#1916
I was able to fix the issue by doing
pip3 uninstall docker-py docker
and then redoing the installation ofdocker-compose
.Figure it is worth posting this issue to this tracker at least so that anyone else searching for it here finds this, even if the issue isn't actually with docker-compose itself. Perhaps this can be fixed by preventing the simultaneous installation of
docker
anddocker-py
or detecting this case?The text was updated successfully, but these errors were encountered: