docker-alpine icon indicating copy to clipboard operation
docker-alpine copied to clipboard

alpine3.7 says [getrandom: symbol not found] when pip3 upgrading

Open tianxiawuzhe opened this issue 6 years ago • 0 comments

Installing with Dockerfile (FROM alpine:3.7), Dockerfile works fine two month ago, but now failed without modified Dockerfile.

Dockerfile's commands:

apk add --no-cache --virtual=.build-deps build-base linux-headers python3-dev==3.6.5-r0 zlib-dev openblas-dev apk add --no-cache --virtual=.run-deps dumb-init bash vim tini ca-certificates python3==3.6.5-r0 openblas libstdc++ libaio libnsl

build logs:

(27/36) Installing libbz2 (1.0.6-r6) (28/36) Installing expat (2.2.6-r0) (29/36) Installing libffi (3.2.1-r5) (30/36) Installing gdbm (1.13-r1) (31/36) Installing xz-libs (5.2.4-r0) (32/36) Installing sqlite-libs (3.24.0-r1) (33/36) Installing python3 (3.6.5-r0)

and when execute [python3 -m pip3 install --upgrade --no-cache-dir pip], will says:

Traceback (most recent call last): File "/usr/lib/python3.6/runpy.py", line 183, in _run_module_as_main mod_name, mod_spec, code = _get_module_details(mod_name, _Error) File "/usr/lib/python3.6/runpy.py", line 142, in _get_module_details return _get_module_details(pkg_main_name, error) File "/usr/lib/python3.6/runpy.py", line 109, in _get_module_details import(pkg_name) File "/usr/lib/python3.6/site-packages/pip/init.py", line 43, in from pip.utils import get_installed_distributions, get_prog File "/usr/lib/python3.6/site-packages/pip/utils/init.py", line 27, in from pip._vendor import pkg_resources File "/usr/lib/python3.6/site-packages/pip/_vendor/pkg_resources/init.py", line 35, in import plistlib File "/usr/lib/python3.6/plistlib.py", line 65, in from xml.parsers.expat import ParserCreate File "/usr/lib/python3.6/xml/parsers/expat.py", line 4, in from pyexpat import * ImportError: Error relocating /usr/lib/libexpat.so.1: getrandom: symbol not found

Help me please! Thanks! I had report to alpinelinux's bugs #9642 too!

tianxiawuzhe avatar Nov 14 '18 07:11 tianxiawuzhe