* docker-compose complains about jsonechema version
@ 2019-08-03 15:57 Jeronimo Pellegrini
2019-08-04 21:12 ` Tobias Geerinckx-Rice
0 siblings, 1 reply; 2+ messages in thread
From: Jeronimo Pellegrini @ 2019-08-03 15:57 UTC (permalink / raw)
To: help-guix
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 <module>
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 <module>
@_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.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: docker-compose complains about jsonechema version
2019-08-03 15:57 docker-compose complains about jsonechema version Jeronimo Pellegrini
@ 2019-08-04 21:12 ` Tobias Geerinckx-Rice
0 siblings, 0 replies; 2+ messages in thread
From: Tobias Geerinckx-Rice @ 2019-08-04 21:12 UTC (permalink / raw)
To: help-guix, Jeronimo Pellegrini
[-- Attachment #1: Type: text/plain, Size: 697 bytes --]
Jeronimo,
Jeronimo Pellegrini 写道:
> 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
Hm. I thought I fixed this bug already…
> There is no older version of jsonschema available in Guix,
> though.
Ah, you're using an old version of Guix:
~ λ package -A jsonschema
python-jsonschema 2.6.0 out
gnu/packages/python-xyz.scm:1989:2
…
Please guix pull and install python-jsonschema@2.6 instead.
It seems like it should be propagated, though. I'll look into
that.
Kind regards,
T G-R
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-08-04 21:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-08-03 15:57 docker-compose complains about jsonechema version Jeronimo Pellegrini
2019-08-04 21:12 ` Tobias Geerinckx-Rice
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.