kragniz / kragniz/python-etcd3
Cannot Install python-etcd3 in aarch64
- Dominant language
- Python
- Stars
- 450
- Forks
- 194
- PR merge metrics
- No merged PRs in 30d
Description
I tried to install python-etcd over arm64 machine , but it is failed
Please refer the following information
**[Enviroment]**
node01-2468a:/tmp # uname -a
Linux node01-2468a 4.12.14-197.10-default #1 SMP Thu Jul 11 12:27:16 UTC 2019 (8509cd2) aarch64 aarch64 aarch64 GNU/Linux
node01-2468a:/tmp # cat /etc/*-release
NAME="SLES"
VERSION="15-SP1"
VERSION_ID="15.1"
PRETTY_NAME="SUSE Linux Enterprise Server 15 SP1"
ID="sles"
ID_LIKE="suse"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:suse:sles:15:sp1"
node01-2468a:/tmp # /usr/bin/python3 -V
Python 3.6.8
node01-2468a:/tmp # /usr/bin/pip3 -V
pip 19.2.1 from /usr/lib/python3.6/site-packages/pip (python 3.6)
node01-2468a:/tmp # etcd --version
2019-08-07 03:12:35.178581 W | etcdmain: running etcd on unsupported architecture "arm64" since ETCD_UNSUPPORTED_ARCH is set
etcd Version: 3.3.13
Git SHA: 98d3084
Go Version: go1.10.8
Go OS/Arch: linux/arm64
**[Fail Message]**
node01-2468a:/tmp # pip3 install etcd3
Requirement already satisfied: etcd3 in /usr/lib/python3.6/site-packages/etcd3-0.10.0-py3.6.egg (0.10.0)
Collecting grpcio>=1.2.0 (from etcd3)
Using cached https://files.pythonhosted.org/packages/19/c1/bee35b6efcace3c77cb275c6465ba9e574d01acf9abf785253fdeed526f3/grpcio-1.22.0.tar.gz
Requirement already satisfied: tenacity>=5.0.2 in /usr/lib/python3.6/site-packages/tenacity-5.0.4-py3.6.egg (from etcd3) (5.0.4)
Requirement already satisfied: protobuf>=3.6.1 in /usr/lib/python3.6/site-packages/protobuf-3.9.1-py3.6.egg (from etcd3) (3.9.1)
Requirement already satisfied: six>=1.5.2 in /usr/lib/python3.6/site-packages (from grpcio>=1.2.0->etcd3) (1.11.0)
Requirement already satisfied: setuptools in /usr/lib/python3.6/site-packages (from protobuf>=3.6.1->etcd3) (40.5.0)
Installing collected packages: grpcio
Running setup.py install for grpcio ... 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-9eprigoz/grpcio/setup.py'"'"'; __file__='"'"'/tmp/pip-install-9eprigoz/grpcio/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-1t26pkbv/install-record.txt --single-version-externally-managed --compile
cwd: /tmp/pip-install-9eprigoz/grpcio/
Complete output (62 lines):
Found cython-generated files...
running install
running build
running build_py
running build_project_metadata
creating python_build
creating python_build/lib.linux-aarch64-3.6
creating python_build/lib.linux-aarch64-3.6/grpc
copying src/python/grpcio/grpc/_plugin_wrapping.py -> python_build/lib.linux-aarch64-3.6/grpc
copying src/python/grpcio/grpc/_channel.py -> python_build/lib.linux-aarch64-3.6/grpc
copying src/python/grpcio/grpc/_server.py -> python_build/lib.linux-aarch64-3.6/grpc
copying src/python/grpcio/grpc/_common.py -> python_build/lib.linux-aarch64-3.6/grpc
copying src/python/grpcio/grpc/_interceptor.py -> python_build/lib.linux-aarch64-3.6/grpc
copying src/python/grpcio/grpc/_auth.py -> python_build/lib.linux-aarch64-3.6/grpc
copying src/python/grpcio/grpc/__init__.py -> python_build/lib.linux-aarch64-3.6/grpc
copying src/python/grpcio/grpc/_grpcio_metadata.py -> python_build/lib.linux-aarch64-3.6/grpc
copying src/python/grpcio/grpc/_compression.py -> python_build/lib.linux-aarch64-3.6/grpc
copying src/python/grpcio/grpc/_utilities.py -> python_build/lib.linux-aarch64-3.6/grpc
creating python_build/lib.linux-aarch64-3.6/grpc/_cython
copying src/python/grpcio/grpc/_cython/__init__.py -> python_build/lib.linux-aarch64-3.6/grpc/_cython
creating python_build/lib.linux-aarch64-3.6/grpc/experimental
copying src/python/grpcio/grpc/experimental/gevent.py -> python_build/lib.linux-aarch64-3.6/grpc/experimental
copying src/python/grpcio/grpc/experimental/__init__.py -> python_build/lib.linux-aarch64-3.6/grpc/experimental
copying src/python/grpcio/grpc/experimental/session_cache.py -> python_build/lib.linux-aarch64-3.6/grpc/experimental
creating python_build/lib.linux-aarch64-3.6/grpc/beta
copying src/python/grpcio/grpc/beta/interfaces.py -> python_build/lib.linux-aarch64-3.6/grpc/beta
copying src/python/grpcio/grpc/beta/_server_adaptations.py -> python_build/lib.linux-aarch64-3.6/grpc/beta
copying src/python/grpcio/grpc/beta/implementations.py -> python_build/lib.linux-aarch64-3.6/grpc/beta
copying src/python/grpcio/grpc/beta/_client_adaptations.py -> python_build/lib.linux-aarch64-3.6/grpc/beta
copying src/python/grpcio/grpc/beta/_metadata.py -> python_build/lib.linux-aarch64-3.6/grpc/beta
copying src/python/grpcio/grpc/beta/utilities.py -> python_build/lib.linux-aarch64-3.6/grpc/beta
copying src/python/grpcio/grpc/beta/__init__.py -> python_build/lib.linux-aarch64-3.6/grpc/beta
creating python_build/lib.linux-aarch64-3.6/grpc/framework
copying src/python/grpcio/grpc/framework/__init__.py -> python_build/lib.linux-aarch64-3.6/grpc/framework
creating python_build/lib.linux-aarch64-3.6/grpc/_cython/_cygrpc
copying src/python/grpcio/grpc/_cython/_cygrpc/__init__.py -> python_build/lib.linux-aarch64-3.6/grpc/_cython/_cygrpc
creating python_build/lib.linux-aarch64-3.6/grpc/framework/interfaces
copying src/python/grpcio/grpc/framework/interfaces/__init__.py -> python_build/lib.linux-aarch64-3.6/grpc/framework/interfaces
creating python_build/lib.linux-aarch64-3.6/grpc/framework/common
copying src/python/grpcio/grpc/framework/common/cardinality.py -> python_build/lib.linux-aarch64-3.6/grpc/framework/common
copying src/python/grpcio/grpc/framework/common/style.py -> python_build/lib.linux-aarch64-3.6/grpc/framework/common
copying src/python/grpcio/grpc/framework/common/__init__.py -> python_build/lib.linux-aarch64-3.6/grpc/framework/common
creating python_build/lib.linux-aarch64-3.6/grpc/framework/foundation
copying src/python/grpcio/grpc/framework/foundation/stream.py -> python_build/lib.linux-aarch64-3.6/grpc/framework/foundation
copying src/python/grpcio/grpc/framework/foundation/logging_pool.py -> python_build/lib.linux-aarch64-3.6/grpc/framework/foundation
copying src/python/grpcio/grpc/framework/foundation/callable_util.py -> python_build/lib.linux-aarch64-3.6/grpc/framework/foundation
copying src/python/grpcio/grpc/framework/foundation/abandonment.py -> python_build/lib.linux-aarch64-3.6/grpc/framework/foundation
copying src/python/grpcio/grpc/framework/foundation/stream_util.py -> python_build/lib.linux-aarch64-3.6/grpc/framework/foundation
copying src/python/grpcio/grpc/framework/foundation/__init__.py -> python_build/lib.linux-aarch64-3.6/grpc/framework/foundation
copying src/python/grpcio/grpc/framework/foundation/future.py -> python_build/lib.linux-aarch64-3.6/grpc/framework/foundation
creating python_build/lib.linux-aarch64-3.6/grpc/framework/interfaces/base
copying src/python/grpcio/grpc/framework/interfaces/base/utilities.py -> python_build/lib.linux-aarch64-3.6/grpc/framework/interfaces/base
copying src/python/grpcio/grpc/framework/interfaces/base/__init__.py -> python_build/lib.linux-aarch64-3.6/grpc/framework/interfaces/base
copying src/python/grpcio/grpc/framework/interfaces/base/base.py -> python_build/lib.linux-aarch64-3.6/grpc/framework/interfaces/base
creating python_build/lib.linux-aarch64-3.6/grpc/framework/interfaces/face
copying src/python/grpcio/grpc/framework/interfaces/face/face.py -> python_build/lib.linux-aarch64-3.6/grpc/framework/interfaces/face
copying src/python/grpcio/grpc/framework/interfaces/face/utilities.py -> python_build/lib.linux-aarch64-3.6/grpc/framework/interfaces/face
copying src/python/grpcio/grpc/framework/interfaces/face/__init__.py -> python_build/lib.linux-aarch64-3.6/grpc/framework/interfaces/face
creating python_build/lib.linux-aarch64-3.6/grpc/_cython/_credentials
copying src/python/grpcio/grpc/_cython/_credentials/roots.pem -> python_build/lib.linux-aarch64-3.6/grpc/_cython/_credentials
running build_ext
error: [Errno 2] No such file or directory: 'cc': 'cc'
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-9eprigoz/grpcio/setup.py'"'"'; __file__='"'"'/tmp/pip-install-9eprigoz/grpcio/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-1t26pkbv/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.
Contributor guide
Research direction
Start by reproducing `pip3 install etcd3` on the reported aarch64 SLES environment and inspect the grpcio build step, especially the missing `cc` command. Done means identifying whether python-etcd3 or its grpcio dependency needs a project change, and verifying installation on the affected environment.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- grpc, python
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100