Skip to content
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

Python SDK version bump not in 1.19.0 #5685

Closed
jakebailey opened this issue Feb 17, 2018 · 5 comments
Closed

Python SDK version bump not in 1.19.0 #5685

jakebailey opened this issue Feb 17, 2018 · 5 comments

Comments

@jakebailey
Copy link

jakebailey commented Feb 17, 2018

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: 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?

@OlivierMary
Copy link

Hi, same problem for me.. maybe have to go back to 1.18 ?

@jakebailey
Copy link
Author

jakebailey commented Feb 17, 2018

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).

@DMW007
Copy link

DMW007 commented Feb 17, 2018

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/

@OlivierMary
Copy link

Hi, works for me :) thanks @DMW007

@shin-
Copy link

shin- commented Feb 17, 2018

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

@shin- shin- closed this as completed Feb 17, 2018
Ma27 referenced this issue in NixOS/nixpkgs Feb 17, 2018
Ma27 added a commit to Ma27/nixpkgs that referenced this issue Feb 17, 2018
`pythonPackages.docker` isn't compatible with `docker-compose` 1.18 and
causes severe breackage when running `docker-compose up --build`.

See docker/compose#5685 for further reference.

This reverts commit 2a8a058.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants