elastalert icon indicating copy to clipboard operation
elastalert copied to clipboard

Encounter py2-yaml error when building

Open lemont79 opened this issue 5 years ago • 11 comments

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]

lemont79 avatar Jan 02 '20 08:01 lemont79

I have the same error, do u resolve it? @lemont79

Rjerk avatar Jan 07 '20 09:01 Rjerk

Same. Does anybody came up with a solution?

AkiJ5 avatar Jan 08 '20 14:01 AkiJ5

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

Rjerk avatar Jan 09 '20 06:01 Rjerk

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.

AkiJ5 avatar Jan 09 '20 12:01 AkiJ5

I can't find package which contains libc.musl-aarch64.so.1 lib.

try:

apk add musl

Rjerk avatar Jan 09 '20 17:01 Rjerk

This is alpine version confilct error fix FROM alpine:latest as py-ea ->FROM alpine:3.8 as py-ea

Cafemug avatar Jan 10 '20 06:01 Cafemug

This is alpine version confilct error fix FROM alpine:latest as py-ea ->FROM alpine:3.8 as py-ea

it works : )

Rjerk avatar Jan 10 '20 09:01 Rjerk

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?

AkiJ5 avatar Jan 20 '20 13:01 AkiJ5

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

9shahs9 avatar Feb 11 '20 19:02 9shahs9

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.

shirakaba avatar Apr 14 '20 16:04 shirakaba

py2-yaml package is only available in alpine: 3.10 and before.

tao12345666333 avatar Jun 18 '20 04:06 tao12345666333