From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeronimo Pellegrini Subject: docker-compose complains about jsonechema version Date: Sat, 3 Aug 2019 12:57:21 -0300 Message-ID: <20190803155720.GA446@socrates.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:35526) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1htwQP-0004iI-BM for help-guix@gnu.org; Sat, 03 Aug 2019 11:58:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1htwQN-0004t1-W0 for help-guix@gnu.org; Sat, 03 Aug 2019 11:58:29 -0400 Received: from mail.aleph0.info ([66.228.54.186]:35534 helo=aleph0.info) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1htwQN-0004Xt-Kz for help-guix@gnu.org; Sat, 03 Aug 2019 11:58:27 -0400 Received: from localhost (localhost [127.0.0.1]) by aleph0.info (Postfix) with ESMTP id 05AD742399 for ; Sat, 3 Aug 2019 12:57:24 -0300 (-03) Received: from aleph0.info ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id QZuBWa4R7CdL for ; Sat, 3 Aug 2019 12:57:23 -0300 (-03) Received: from socrates.aleph0.info (unknown [189.100.10.90]) (Authenticated sender: je) by aleph0.info (Postfix) with ESMTPSA id 8FBEA42395 for ; Sat, 3 Aug 2019 12:57:23 -0300 (-03) Content-Disposition: inline List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: help-guix@gnu.org Hello, I have installed Guix on a notebook, and also Docker, and I think I found a problem. I'm not sure, however, wether it is a problem that fits in the bug-guix list, because it is not a bug in Guix core; it is a packaging problem (wrong dependency, likely). I have included it in this message, but I will post it elsewhere it this is not the proper place. Thank you! J. PS: this is what happened: I installed Docker doing guix install docker docker-cli docker-compose containerd Then I did the following: 0. added myself to group "docker", and started dockerd as root. 1. created a small Debian image with the following script: ``` #!/bin/bash if [ "$EUID" -ne 0 ] then echo "Please run as root" exit fi rm -rf ./chroot-stable cdebootstrap stable ./chroot-stable http://deb.debian.org/debian > /dev/null tar -C chroot-stable -c . | docker import - debian-stable-minimal ``` This created a Docker image 'debian-stable-minimal' 2. from debian-stable-minimal, created another image with an echo server with the folowing Dockerfile: ``` FROM debian-stable-minimal ENV DEBIAN_FFONTEND=noninteractive RUN apt update && apt --yes install ncat && apt clean COPY echo.sh /bin/ ENTRYPOINT ["/bin/echo.sh"] ``` The echo server is this: ``` #!/bin/bash ncat -l 2000 -k -c 'xargs -n1 echo' ``` I used ``` docker build -t echo . ``` to build the image tagged 'echo' 3. tried to use docker-compose to start the echo server, with the following docker-compose.yml file: ``` version: "3.7" services: echo: image: echo networks: - bridge ports: - 1111:2000 ``` then docker-compose complains that jsonschema is not installed. I installed it with ``` guix install python-jsonschema ``` and tried again. But at this point, docker-compose complains that the version of jsonschema installed is not what it expects: - expected version is <3,>=2.5.1 - installed version is 3.0.1 ``` $ docker-compose Traceback (most recent call last): File "/gnu/store/zm3188ipzi262s0m8bxm24br77yh9pd8-python-3.7.0/lib/python3.7/site-packages/pkg_resources/__init__.py", line 574, in _build_master ws.require(__requires__) File "/gnu/store/zm3188ipzi262s0m8bxm24br77yh9pd8-python-3.7.0/lib/python3.7/site-packages/pkg_resources/__init__.py", line 892, in require needed = self.resolve(parse_requirements(requirements)) File "/gnu/store/zm3188ipzi262s0m8bxm24br77yh9pd8-python-3.7.0/lib/python3.7/site-packages/pkg_resources/__init__.py", line 783, in resolve raise VersionConflict(dist, req).with_context(dependent_req) pkg_resources.ContextualVersionConflict: (jsonschema 3.0.1 (/gnu/store/w0qzc3l0w8i2ikgjrfjhgk9wh07pcn9x-python-jsonschema-3.0.1/lib/python3.7/site-packages), Requirement.parse('jsonschema<3,>=2.5.1'), {'docker-compose'}) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/gnu/store/7kblfjjjlkvy92gmqq0i9fksimcarrih-docker-compose-1.5.2/bin/.docker-compose-real", line 6, in from pkg_resources import load_entry_point File "/gnu/store/zm3188ipzi262s0m8bxm24br77yh9pd8-python-3.7.0/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3088, in @_call_aside File "/gnu/store/zm3188ipzi262s0m8bxm24br77yh9pd8-python-3.7.0/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3072, in _call_aside f(*args, **kwargs) File "/gnu/store/zm3188ipzi262s0m8bxm24br77yh9pd8-python-3.7.0/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3101, in _initialize_master_working_set working_set = WorkingSet._build_master() File "/gnu/store/zm3188ipzi262s0m8bxm24br77yh9pd8-python-3.7.0/lib/python3.7/site-packages/pkg_resources/__init__.py", line 576, in _build_master return cls._build_from_requirements(__requires__) File "/gnu/store/zm3188ipzi262s0m8bxm24br77yh9pd8-python-3.7.0/lib/python3.7/site-packages/pkg_resources/__init__.py", line 589, in _build_from_requirements dists = ws.resolve(reqs, Environment()) File "/gnu/store/zm3188ipzi262s0m8bxm24br77yh9pd8-python-3.7.0/lib/python3.7/site-packages/pkg_resources/__init__.py", line 778, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'jsonschema<3,>=2.5.1' distribution was not found and is required by docker-compose ``` There is no older version of jsonschema available in Guix, though.