oracle / microservices-datadriven

Sample code of application examples to build microservices with converged Oracle database and multi-cloud / hybrid cloud services
http://oracle.com/database
Universal Permissive License v1.0
62 stars 89 forks source link

Failing foodwinepairing-python Build #399

Closed RichardExley closed 8 months ago

RichardExley commented 2 years ago

The build is failing. This is new this week. I tested in my tenancy and live labs with the same result.

` gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python3.6m -I/usr/local/lib64/python3.6/site-packages/numpy/core/include -c gensim/models/word2vec_inner.c -o build/temp.linux-x86_64-3.6/gensim/models/word2vec_inner.o unable to execute 'gcc': No such file or directory error: command 'gcc' failed with exit status 1

ERROR: Command errored out with exit status 1: /usr/bin/python3.6 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-u2nqawvq/gensim_c5bfe9f77a36423facd43391a943e437/setup.py'"'"'; file='"'"'/tmp/pip-install-u2nqawvq/gensim_c5bfe9f77a36423facd43391a943e437/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-lcr_qb8l/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.6m/gensim Check the logs for full command output. T`

RichardExley commented 2 years ago

build_foodwinepairing-python.log

andytael commented 2 years ago

Adding yum install gcc changes to Dockerfile the error to

gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python3.6m -I/usr/local/lib64/python3.6/site-packages/numpy/core/include -c gensim/models/word2vec_inner.c -o build/temp.linux-x86_64-3.6/gensim/models/word2vec_inner.o
    gensim/models/word2vec_inner.c:25:20: fatal error: Python.h: No such file or directory
     #include "Python.h"
                        ^
    compilation terminated.
    error: command 'gcc' failed with exit status 1