Hi Team,
I have installed docker
dev-box:/HelloWorld$ docker --version
Docker version 18.06.1-ce, build d72f525745
under a fresh Alpine 3.8.1. install
and then I have installed docker-compose ...
... but when I want to use it I got this error 👍
dev-box:/HelloWorld$ docker-compose
Error relocating /usr/lib/libpython3.6m.so.1.0: getrandom: symbol not found
What does it mean ? And how to solve it ?
Best Regards
Bernard
do you have python installed?
I have this :
dev-box:/HelloWorld$ python --version
Python 2.7.15
And when I'm trying to install python3, I got that :
dev-box:/HelloWorld$ sudo apk add python3
OK: 827 MiB in 188 packages
I'm not sure to have the good version
Is there an alpine utility to check if you have a package installing libpython3.6m.so.1.0?
If I use the "whereis" command, this librairie seems to be already installed !!!
dev-box:~$ whereis libpython
libpython: /usr/lib/libpython3.so
dev-box:~$ whereis libpython3.6m.so.1.0
libpython3.6m.so.1: /usr/lib/libpython3.6m.so.1.0
ok maybe you have a stripped down version of that python can you get a full install maybe? i'm not positive that's it tho
I could solve this error by removing python and re-installing python3 on my VM ... I will try to reproduce this on my "real" machine.
Thanks for help
I have the same problem. My Dockerfile has not changed one bit, yet this stopped working on a fresh rebuild.
The full error I get:
(34/34) Installing python3-dev (3.6.6-r2)
Executing busybox-1.29.3-r0.trigger
Executing ca-certificates-20161130-r1.trigger
OK: 112 MiB in 51 packages
Error relocating /usr/lib/libpython3.6m.so.1.0: getrandom: symbol not found
ERROR: Service 'videoprocessing' failed to build: The command '/bin/sh -c apk add --no-cache python3 python3-dev bash mkvtoolnix py-lxml && pip3 install --no-cache-dir --upgrade pip && rm -rf /var/cache/* && rm -rf /root/.cache/*' returned a non-zero code: 127
@nicbou I found myself with the same issue. Did you manage to solve it?
Yes, but only by a whole fresh new installation of Docker (using the manual mode) :
https://github.com/babonet13/HelloWorld/tree/master/App/docker
Le 23 nov. 2018 à 08:15, Niclas Kroon notifications@github.com a écrit :
@nicbou https://github.com/nicbou I found myself with the same issue. Did you manage to solve it?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/docker/compose/issues/6292#issuecomment-441168597, or mute the thread https://github.com/notifications/unsubscribe-auth/ATNNSkKL-YuWLdtLdhWtFuSttsIvJDp4ks5ux6CVgaJpZM4Xyl83.
So what happened here is that the getrandom
symbol has been moved into /lib/libc.musl-x86_64.so.1 which /usr/lib/libpython3.6m.so.1.0 depends on. You are getting this because you have a newer version of libpython3.6 that no longer implements this symbol and expects libc.musl to implement it, but the version of libc.musl does not have it implemented. Solution is to simply upgrade libc.musl to latest version and the symbol is implemented there. HTH
Most helpful comment
So what happened here is that the
getrandom
symbol has been moved into /lib/libc.musl-x86_64.so.1 which /usr/lib/libpython3.6m.so.1.0 depends on. You are getting this because you have a newer version of libpython3.6 that no longer implements this symbol and expects libc.musl to implement it, but the version of libc.musl does not have it implemented. Solution is to simply upgrade libc.musl to latest version and the symbol is implemented there. HTH