Arch Linux updated its docker-compose version to 1.19.0, and the Docker Python SDK to 3.0.1.
However, the commits bumping docker-compose to use 3.0.x didn't make it into 1.19.0, even though they happened before the version tag. (See: https://github.com/docker/compose/compare/1.19.0...master)
This leads to errors like the following using the latest stable releases:
Building emby
Traceback (most recent call last):
File "/usr/bin/docker-compose", line 11, in <module>
load_entry_point('docker-compose==1.19.0', 'console_scripts', 'docker-compose')()
File "/usr/lib/python3.6/site-packages/compose/cli/main.py", line 71, in main
command()
File "/usr/lib/python3.6/site-packages/compose/cli/main.py", line 124, in perform_command
handler(command, command_options)
File "/usr/lib/python3.6/site-packages/compose/cli/main.py", line 254, in build
build_args=build_args)
File "/usr/lib/python3.6/site-packages/compose/project.py", line 372, in build
service.build(no_cache, pull, force_rm, memory, build_args)
File "/usr/lib/python3.6/site-packages/compose/service.py", line 989, in build
'memory': parse_bytes(memory) if memory else None
TypeError: build() got an unexpected keyword argument 'stream'
Since #5631 removed the stream argument, which needs to be gone for 3.0.x to work.
Was this intended?
Hi, same problem for me.. maybe have to go back to 1.18 ?
Rolling back to python-docker 2.7.0 works, but 1.18 of docker-compose doesn't (since that version also uses the stream argument).
If you're not so familiar with Arch, try the following command for downgrading to 2.7:
sudo pacman -U /var/cache/pacman/pkg/python-docker-2.7.0-1-any.pkg.tar.xz
For detailled instructions (in German) to this topic, the following article may help: https://u-labs.de/portal/fehlerhafte-pacman-paketupdates-unter-arch-linux-rueckgaengig-machen/
Hi, works for me :) thanks @DMW007
Yes, 1.19 is only intended to work with SDK version < 3, as specified in requirements.txt and setup.py. If that requirement isn't observed in the Arch package manager, it should be reported there.
1.20 will be compatible with SDK 3.x
Most helpful comment
Rolling back to
python-docker2.7.0 works, but 1.18 ofdocker-composedoesn't (since that version also uses the stream argument).