Hydrospheredata / hydro-serving

MLOps Platform
http://docs.hydrosphere.io
Apache License 2.0
271 stars 42 forks source link

pip install requirements fail because gcc is not found #230

Closed albertnanda closed 5 years ago

albertnanda commented 5 years ago

Some python packages require gcc: how can we solve this?

running bdist_wheel running build running build_ext building 'ujson' extension creating build creating build/temp.linux-x86_64-3.6 creating build/temp.linux-x86_64-3.6/python creating build/temp.linux-x86_64-3.6/lib gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I./python -I./lib -I/usr/local/include/python3.6m -c ./python/ujson.c -o build/temp.li nux-x86_64-3.6/./python/ujson.o -D_GNU_SOURCE unable to execute 'gcc': No such file or directory error: command 'gcc' failed with exit status 1 ---------------------------------------- [2019-01-17 18:32:10.172][INFO][pool-10-thread-1] i.h.s.m.s.m.ModelBuildUpdater.log.16 Model build 43: Failed building wheel for ujson

KineticCookie commented 5 years ago

Hello. Currently this is an issue of current model building image. Seems like python:3.6-slim doesn't have gcc. I proposed some changes in build mechanism, which would solve such kind of issues, and I estimate that it will be delivered soon with API v2.