I am getting the following error when installing this software. I am running
pip3.6 install glove_python
In a dockerfile. After building an image from this file and its context (after installing python3.6, pip3.6, and pip installing libgcc) I get the following error:
Step 1 : FROM scratch
--->
Step 2 : MAINTAINER Oracle Linux Product Team <ol-ovm-info_ww@oracle.com>
---> Using cache
---> 7972e50aba9c
Step 3 : ADD oraclelinux-7.6-rootfs.tar.xz /
---> Using cache
---> 0fead478a299
Step 4 : CMD /bin/bash
---> Using cache
---> fbf26b9c9495
Step 5 : ENV PACKAGES " dumb-init musl libc6-compat linux-headers build-base bash git ca-certificates freetype libgfortran libgcc libstdc++ openblas tcl tk libssl1.0 "
---> Using cache
---> 5f827eba6fab
Step 6 : ENV ENV_PACKAGES " bash libgcc libstdc++ openblas "
---> Using cache
---> a544aa698208
Step 7 : ENV PYTHON_PACKAGES " numpy matplotlib scipy scikit-learn pandas nltk gensim lifetimes "
---> Using cache
---> 5a91158b336d
Step 8 : RUN yum install -y yum-utils
---> Using cache
---> d550bcf76592
Step 9 : RUN yum -y groupinstall development
---> Using cache
---> 34ed3eb3fed0
Step 10 : RUN yum-config-manager --enable *EPEL
---> Using cache
---> ea8b13bfe626
Step 11 : RUN rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
---> Using cache
---> 2d3771bd8805
Step 12 : RUN yum -y install https://centos7.iuscommunity.org/ius-release.rpm
---> Using cache
---> 927358d96fb3
Step 13 : RUN yum -y install python36u
---> Using cache
---> d7b602b2c6b9
Step 14 : RUN yum -y install python36u-pip
---> Using cache
---> c97ec152dd63
Step 15 : RUN pip3.6 install --upgrade pip
---> Using cache
---> f83fa339e019
Step 16 : RUN pip3.6 install --no-cache-dir $PYTHON_PACKAGES
---> Using cache
---> 4bcb96d53cac
Step 17 : RUN yum install libgcc
---> Using cache
---> e59943e62202
Step 18 : RUN pip3.6 install glove==1.0.2
---> Running in 8808a6be47d1
Collecting glove==1.0.2
Downloading https://files.pythonhosted.org/packages/8a/c9/17c400d0c29746162bd47fc719bf3212b2b031949d41d712e9bdef11ae03/glove-1.0.2.tar.gz (44kB)
Requirement already satisfied: numpy in /usr/lib64/python3.6/site-packages (from glove==1.0.2) (1.16.4)
Installing collected packages: glove
Running setup.py install for glove: started
Running setup.py install for glove: finished with status 'error'
ERROR: Complete output from command /usr/bin/python3.6 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-8ijni_j2/glove/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-1ubja0hq/install-record.txt --single-version-externally-managed --compile:
ERROR: running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/glove
copying glove/__init__.py -> build/lib.linux-x86_64-3.6/glove
copying glove/glove.py -> build/lib.linux-x86_64-3.6/glove
running egg_info
writing glove.egg-info/PKG-INFO
writing dependency_links to glove.egg-info/dependency_links.txt
writing requirements to glove.egg-info/requires.txt
writing top-level names to glove.egg-info/top_level.txt
reading manifest file 'glove.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'glove.egg-info/SOURCES.txt'
error: Error: setup script specifies an absolute path:
/tmp/pip-install-8ijni_j2/glove/glove/glove_inner.cpp
setup() arguments must *always* be /-separated paths relative to the
setup.py directory, *never* absolute paths.
----------------------------------------
ERROR: Command "/usr/bin/python3.6 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-8ijni_j2/glove/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-1ubja0hq/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-8ijni_j2/glove/
I am getting the following error when installing this software. I am running
pip3.6 install glove_python
In a dockerfile. After building an image from this file and its context (after installing python3.6, pip3.6, and pip installing libgcc) I get the following error: