Closed blueRegen closed 3 years ago
Got errors..
file attached. Pyorc Install Errors on Alpine.txt
spent few hours to get this to work on alpine. see attached image.
thanks for the help.
Hi, try this SO answer instead.
Use version 0.4.0, the HTTP Error during the build_orc command was raised, because the 1.6.3 ORC Core lib version is moved to a different path. You can change the orc lib version or the source url with these params: --orc-version
, --source-url
The above SO with version .4 works flawlessly.
thanks for the help noirello.
Hi
Anyone successfully installed on alpine docker? I am getting an error.
/ # python3 --version Python 3.8.7
/# gcc --version gcc (Alpine 10.2.1_pre1) 10.2.1 20201203 Copyright (C) 2020 Free Software Foundation, Inc.
/ # pip install pyorc==0.3.0 Collecting pyorc==0.3.0 Using cached pyorc-0.3.0.tar.gz (41 kB) Requirement already satisfied: pybind11>=2.5 in /usr/lib/python3.8/site-packages (from pyorc==0.3.0) (2.6.1) Using legacy 'setup.py install' for pyorc, since package 'wheel' is not installed. Installing collected packages: pyorc Running setup.py install for pyorc ... error ERROR: Command errored out with exit status 1: command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-5dn_w2gy/pyorc_f3b26ecd51574b30bc2257a2e63b7d5e/setup.py'"'"'; file='"'"'/tmp/pip-install-5dn_w2gy/pyorc_f3b26ecd51574b30bc2257a2e63b7d5e/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-wrlz7rvf/install-record.txt --single-version-externally-managed --compile --install-headers /usr/include/python3.8/pyorc cwd: /tmp/pip-install-5dn_w2gy/pyorc_f3b26ecd51574b30bc2257a2e63b7d5e/ Complete output (42 lines): running install running build running build_py creating build creating build/lib.linux-x86_64-3.8 creating build/lib.linux-x86_64-3.8/pyorc copying src/pyorc/writer.py -> build/lib.linux-x86_64-3.8/pyorc copying src/pyorc/converters.py -> build/lib.linux-x86_64-3.8/pyorc copying src/pyorc/reader.py -> build/lib.linux-x86_64-3.8/pyorc copying src/pyorc/errors.py -> build/lib.linux-x86_64-3.8/pyorc copying src/pyorc/enums.py -> build/lib.linux-x86_64-3.8/pyorc copying src/pyorc/typedescription.py -> build/lib.linux-x86_64-3.8/pyorc copying src/pyorc/init.py -> build/lib.linux-x86_64-3.8/pyorc running egg_info writing pyorc.egg-info/PKG-INFO writing dependency_links to pyorc.egg-info/dependency_links.txt writing requirements to pyorc.egg-info/requires.txt writing top-level names to pyorc.egg-info/top_level.txt reading manifest file 'pyorc.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching '.css' under directory 'docs' warning: no previously-included files matching '' found under directory 'docs/_build' writing manifest file 'pyorc.egg-info/SOURCES.txt' running build_ext creating tmp gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -DTHREAD_STACK_SIZE=0x100000 -fPIC -I/usr/include/python3.8 -c /tmp/tmp9meo18pg.cpp -o tmp/tmp9meo18pg.o -std=c++17 building 'pyorc._pyorc' extension creating build/temp.linux-x86_64-3.8 creating build/temp.linux-x86_64-3.8/src creating build/temp.linux-x86_64-3.8/src/_pyorc gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -DTHREAD_STACK_SIZE=0x100000 -fPIC -I/usr/lib/python3.8/site-packages/pybind11/include -I/usr/lib/python3.8/site-packages/pybind11/include -Ideps/include/ -I/usr/include/python3.8 -c src/_pyorc/_pyorc.cpp -o build/temp.linux-x86_64-3.8/src/_pyorc/_pyorc.o -DVERSION_INFO="0.3.0" -std=c++17 -fvisibility=hidden In file included from /usr/lib/python3.8/site-packages/pybind11/include/pybind11/pytypes.h:12, from /usr/lib/python3.8/site-packages/pybind11/include/pybind11/cast.h:13, from /usr/lib/python3.8/site-packages/pybind11/include/pybind11/attr.h:13, from /usr/lib/python3.8/site-packages/pybind11/include/pybind11/pybind11.h:45, from src/_pyorc/Reader.h:4, from src/_pyorc/_pyorc.cpp:1: /usr/lib/python3.8/site-packages/pybind11/include/pybind11/detail/common.h:122:10: fatal error: Python.h: No such file or directory 122 | #include
| ^
~~~~~ compilation terminated. error: command 'gcc' failed with exit status 1ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-5dn_w2gy/pyorc_f3b26ecd51574b30bc2257a2e63b7d5e/setup.py'"'"'; file='"'"'/tmp/pip-install-5dn_w2gy/pyorc_f3b26ecd51574b30bc2257a2e63b7d5e/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-wrlz7rvf/install-record.txt --single-version-externally-managed --compile --install-headers /usr/include/python3.8/pyorc Check the logs for full command output.