elastalert
elastalert copied to clipboard
Encounter py2-yaml error when building
Experiencing py2-yaml missing error when make build. How to install that file? Using Ubuntu 18.04 Can't find py2-yaml in pip and pyyaml is installed
ERROR: unsatisfiable constraints: py2-yaml (missing): required by: world[py2-yaml]
I have the same error, do u resolve it? @lemont79
Same. Does anybody came up with a solution?
The alpine source may not stable I guess.
workaround: I remove py2-yaml from apk add py2-yaml
and add these lines (arm64)
wget http://dl-8.alpinelinux.org/alpine/v3.8/main/aarch64/py2-yaml-3.12-r1.apk && \
apk add --allow-untrusted py2-yaml-3.12-r1.apk && \
just work for me
The alpine source may not stable I guess.
workaround: I remove py2-yaml from
apk add py2-yaml
and add these lines (arm64)wget http://dl-8.alpinelinux.org/alpine/v3.8/main/aarch64/py2-yaml-3.12-r1.apk && \ apk add --allow-untrusted py2-yaml-3.12-r1.apk && \
just work for me
Did you face with next error:
ERROR: unsatisfiable constraints:
so:libc.musl-aarch64.so.1 (missing):
required by: py2-yaml-3.12-r1[so:libc.musl-aarch64.so.1]
? I can't find package which contains libc.musl-aarch64.so.1 lib.
I can't find package which contains libc.musl-aarch64.so.1 lib.
try:
apk add musl
This is alpine version confilct error
fix
FROM alpine:latest as py-ea
->FROM alpine:3.8 as py-ea
This is alpine version confilct error fix
FROM alpine:latest as py-ea
->FROM alpine:3.8 as py-ea
it works : )
I'm newby in Docker, sorry, so I want to ask one more question: what I have to change in Dockerfile/Makefile to build container which works under Python3?
I'm newby in Docker, sorry, so I want to ask one more question: what I have to change in Dockerfile/Makefile to build container which works under Python3?
change the first line in DockerFile as mentioned
FROM alpine:latest as py-ea ->FROM alpine:3.8 as py-ea
I found that the current release tagged as latest
(alpine:3.11.5
) presents this issue. However, alpine:3.10.4
(and evidently the earlier alpine:3.8
) does not. So I believe the issue must have been introduced in one of the 3.11.x
releases.
py2-yaml
package is only available in alpine: 3.10
and before.