Closed congwang09 closed 2 years ago
Encountered error when including datamodel on Docker, could be a missing library. Error message:
Installing collected packages: backports-datetime-fromisoformat, grenml Running setup.py install for backports-datetime-fromisoformat ... error ERROR: Command errored out with exit status 1: command: /usr/bin/python3.6 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-wz6c06xt/backports-datetime-fromisoformat_9545260516504fc389b6174e65986dbf/setup.py'"'"'; __file__='"'"'/tmp/pip-install-wz6c06xt/backports-datetime-fromisoformat_9545260516504fc389b6174e65986dbf/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-ajt48b_y/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/cwang/.local/include/python3.6m/backports-datetime-fromisoformat cwd: /tmp/pip-install-wz6c06xt/backports-datetime-fromisoformat_9545260516504fc389b6174e65986dbf/ Complete output (20 lines): 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/backports copying backports/__init__.py -> build/lib.linux-x86_64-3.6/backports creating build/lib.linux-x86_64-3.6/backports/datetime_fromisoformat copying backports/datetime_fromisoformat/__init__.py -> build/lib.linux-x86_64-3.6/backports/datetime_fromisoformat running build_ext building 'backports._datetime_fromisoformat' extension creating build/temp.linux-x86_64-3.6 creating build/temp.linux-x86_64-3.6/backports creating build/temp.linux-x86_64-3.6/backports/datetime_fromisoformat gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python3.6m -c backports/datetime_fromisoformat/module.c -o build/temp.linux-x86_64-3.6/backports/datetime_fromisoformat/module.o backports/datetime_fromisoformat/module.c:1:10: fatal error: Python.h: No such file or directory #include <Python.h> ^~~~~~~~~~ compilation terminated. 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-wz6c06xt/backports-datetime-fromisoformat_9545260516504fc389b6174e65986dbf/setup.py'"'"'; __file__='"'"'/tmp/pip-install-wz6c06xt/backports-datetime-fromisoformat_9545260516504fc389b6174e65986dbf/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-ajt48b_y/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/cwang/.local/include/python3.6m/backports-datetime-fromisoformat Check the logs for full command output.
Issue fixed.
Encountered error when including datamodel on Docker, could be a missing library. Error message: