linuxmint / warpinator

Share files across the LAN
GNU General Public License v3.0
1.2k stars 81 forks source link

"pip3 install grpcio grpcio-tools" fails with various errors. #32

Closed blackweta closed 4 years ago

blackweta commented 4 years ago

As in description:

pip3 install grpcio grpcio-tools Collecting grpcio Downloading https://files.pythonhosted.org/packages/f1/23/62d3e82fa4c505f3195315c8a774b2e656b556d174329aa98edb829e48bc/grpcio-1.29.0.tar.gz (19.6MB) 100% |████████████████████████████████| 19.6MB 76kB/s Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 1, in ModuleNotFoundError: No module named 'setuptools'

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-eh2zezab/grpcio/

Problem seems to be "ModuleNotFoundError: No module named 'setuptools'" googling this error seemsi t's a common Python pip3 error. https://stackoverflow.com/questions/14426491/python-3-importerror-no-module-named-setuptools

Solution (in https://stackoverflow.com/questions/14426491/python-3-importerror-no-module-named-setuptools)

For Python 3.x:

sudo apt-get install python3-setuptools

HOWEVER AFTER INSTALLING python3-setuptoolsand re-running:

root@xpslx:~# pip3 install grpcio grpcio-tools Collecting grpcio Using cached https://files.pythonhosted.org/packages/f1/23/62d3e82fa4c505f3195315c8a774b2e656b556d174329aa98edb829e48bc/grpcio-1.29.0.tar.gz Collecting grpcio-tools Using cached https://files.pythonhosted.org/packages/ce/4f/a9563819484a281aa712fe57fe5e2bfc4eb1f881e8127d01a76d7847435c/grpcio-tools-1.29.0.tar.gz Requirement already satisfied: six>=1.5.2 in /usr/lib/python3/dist-packages (from grpcio) Collecting protobuf>=3.5.0.post1 (from grpcio-tools) Using cached https://files.pythonhosted.org/packages/c4/c1/300e675e55644f400b9e855c6a8189f3c9e4f41906a23954d15ebf59600f/protobuf-3.12.1-cp36-cp36m-manylinux1_x86_64.whl Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (from protobuf>=3.5.0.post1->grpcio-tools) Building wheels for collected packages: grpcio, grpcio-tools Running setup.py bdist_wheel for grpcio ... error Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-9o2ys582/grpcio/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d /tmp/tmpy4ms9f1zpip-wheel- --python-tag cp36: Found cython-generated files... usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: -c --help [cmd1 cmd2 ...] or: -c --help-commands or: -c cmd --help

error: invalid command 'bdist_wheel'


Failed building wheel for grpcio Running setup.py clean for grpcio Running setup.py bdist_wheel for grpcio-tools ... error Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-9o2ys582/grpcio-tools/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d /tmp/tmpvx63_aw1pip-wheel- --python-tag cp36: usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: -c --help [cmd1 cmd2 ...] or: -c --help-commands or: -c cmd --help

error: invalid command 'bdist_wheel'


Failed building wheel for grpcio-tools Running setup.py clean for grpcio-tools Failed to build grpcio grpcio-tools Installing collected packages: grpcio, protobuf, grpcio-tools Running setup.py install for grpcio ... error Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-9o2ys582/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-wtj6j5uu-record/install-record.txt --single-version-externally-managed --compile: Found cython-generated files... running install running build running build_py running build_project_metadata creating python_build creating python_build/lib.linux-x86_64-3.6 creating python_build/lib.linux-x86_64-3.6/grpc copying src/python/grpcio/grpc/_channel.py -> python_build/lib.linux-x86_64-3.6/grpc copying src/python/grpcio/grpc/_interceptor.py -> python_build/lib.linux-x86_64-3.6/grpc copying src/python/grpcio/grpc/_grpcio_metadata.py -> python_build/lib.linux-x86_64-3.6/grpc copying src/python/grpcio/grpc/_utilities.py -> python_build/lib.linux-x86_64-3.6/grpc copying src/python/grpcio/grpc/_common.py -> python_build/lib.linux-x86_64-3.6/grpc copying src/python/grpcio/grpc/_compression.py -> python_build/lib.linux-x86_64-3.6/grpc copying src/python/grpcio/grpc/_server.py -> python_build/lib.linux-x86_64-3.6/grpc copying src/python/grpcio/grpc/_simple_stubs.py -> python_build/lib.linux-x86_64-3.6/grpc copying src/python/grpcio/grpc/_auth.py -> python_build/lib.linux-x86_64-3.6/grpc copying src/python/grpcio/grpc/_plugin_wrapping.py -> python_build/lib.linux-x86_64-3.6/grpc copying src/python/grpcio/grpc/init.py -> python_build/lib.linux-x86_64-3.6/grpc creating python_build/lib.linux-x86_64-3.6/grpc/framework copying src/python/grpcio/grpc/framework/init.py -> python_build/lib.linux-x86_64-3.6/grpc/framework creating python_build/lib.linux-x86_64-3.6/grpc/experimental copying src/python/grpcio/grpc/experimental/gevent.py -> python_build/lib.linux-x86_64-3.6/grpc/experimental copying src/python/grpcio/grpc/experimental/session_cache.py -> python_build/lib.linux-x86_64-3.6/grpc/experimental copying src/python/grpcio/grpc/experimental/init.py -> python_build/lib.linux-x86_64-3.6/grpc/experimental creating python_build/lib.linux-x86_64-3.6/grpc/_cython copying src/python/grpcio/grpc/_cython/init.py -> python_build/lib.linux-x86_64-3.6/grpc/_cython creating python_build/lib.linux-x86_64-3.6/grpc/beta copying src/python/grpcio/grpc/beta/interfaces.py -> python_build/lib.linux-x86_64-3.6/grpc/beta copying src/python/grpcio/grpc/beta/_metadata.py -> python_build/lib.linux-x86_64-3.6/grpc/beta copying src/python/grpcio/grpc/beta/utilities.py -> python_build/lib.linux-x86_64-3.6/grpc/beta copying src/python/grpcio/grpc/beta/_client_adaptations.py -> python_build/lib.linux-x86_64-3.6/grpc/beta copying src/python/grpcio/grpc/beta/implementations.py -> python_build/lib.linux-x86_64-3.6/grpc/beta copying src/python/grpcio/grpc/beta/_server_adaptations.py -> python_build/lib.linux-x86_64-3.6/grpc/beta copying src/python/grpcio/grpc/beta/init.py -> python_build/lib.linux-x86_64-3.6/grpc/beta creating python_build/lib.linux-x86_64-3.6/grpc/framework/foundation copying src/python/grpcio/grpc/framework/foundation/future.py -> python_build/lib.linux-x86_64-3.6/grpc/framework/foundation copying src/python/grpcio/grpc/framework/foundation/stream_util.py -> python_build/lib.linux-x86_64-3.6/grpc/framework/foundation copying src/python/grpcio/grpc/framework/foundation/stream.py -> python_build/lib.linux-x86_64-3.6/grpc/framework/foundation copying src/python/grpcio/grpc/framework/foundation/logging_pool.py -> python_build/lib.linux-x86_64-3.6/grpc/framework/foundation copying src/python/grpcio/grpc/framework/foundation/abandonment.py -> python_build/lib.linux-x86_64-3.6/grpc/framework/foundation copying src/python/grpcio/grpc/framework/foundation/callable_util.py -> python_build/lib.linux-x86_64-3.6/grpc/framework/foundation copying src/python/grpcio/grpc/framework/foundation/init.py -> python_build/lib.linux-x86_64-3.6/grpc/framework/foundation creating python_build/lib.linux-x86_64-3.6/grpc/framework/common copying src/python/grpcio/grpc/framework/common/style.py -> python_build/lib.linux-x86_64-3.6/grpc/framework/common copying src/python/grpcio/grpc/framework/common/cardinality.py -> python_build/lib.linux-x86_64-3.6/grpc/framework/common copying src/python/grpcio/grpc/framework/common/init.py -> python_build/lib.linux-x86_64-3.6/grpc/framework/common creating python_build/lib.linux-x86_64-3.6/grpc/framework/interfaces copying src/python/grpcio/grpc/framework/interfaces/init.py -> python_build/lib.linux-x86_64-3.6/grpc/framework/interfaces creating python_build/lib.linux-x86_64-3.6/grpc/framework/interfaces/face copying src/python/grpcio/grpc/framework/interfaces/face/utilities.py -> python_build/lib.linux-x86_64-3.6/grpc/framework/interfaces/face copying src/python/grpcio/grpc/framework/interfaces/face/face.py -> python_build/lib.linux-x86_64-3.6/grpc/framework/interfaces/face copying src/python/grpcio/grpc/framework/interfaces/face/init.py -> python_build/lib.linux-x86_64-3.6/grpc/framework/interfaces/face creating python_build/lib.linux-x86_64-3.6/grpc/framework/interfaces/base copying src/python/grpcio/grpc/framework/interfaces/base/utilities.py -> python_build/lib.linux-x86_64-3.6/grpc/framework/interfaces/base copying src/python/grpcio/grpc/framework/interfaces/base/base.py -> python_build/lib.linux-x86_64-3.6/grpc/framework/interfaces/base copying src/python/grpcio/grpc/framework/interfaces/base/init.py -> python_build/lib.linux-x86_64-3.6/grpc/framework/interfaces/base creating python_build/lib.linux-x86_64-3.6/grpc/experimental/aio copying src/python/grpcio/grpc/experimental/aio/_channel.py -> python_build/lib.linux-x86_64-3.6/grpc/experimental/aio copying src/python/grpcio/grpc/experimental/aio/_typing.py -> python_build/lib.linux-x86_64-3.6/grpc/experimental/aio copying src/python/grpcio/grpc/experimental/aio/_interceptor.py -> python_build/lib.linux-x86_64-3.6/grpc/experimental/aio copying src/python/grpcio/grpc/experimental/aio/_base_server.py -> python_build/lib.linux-x86_64-3.6/grpc/experimental/aio copying src/python/grpcio/grpc/experimental/aio/_metadata.py -> python_build/lib.linux-x86_64-3.6/grpc/experimental/aio copying src/python/grpcio/grpc/experimental/aio/_base_channel.py -> python_build/lib.linux-x86_64-3.6/grpc/experimental/aio copying src/python/grpcio/grpc/experimental/aio/_call.py -> python_build/lib.linux-x86_64-3.6/grpc/experimental/aio copying src/python/grpcio/grpc/experimental/aio/_base_call.py -> python_build/lib.linux-x86_64-3.6/grpc/experimental/aio copying src/python/grpcio/grpc/experimental/aio/_server.py -> python_build/lib.linux-x86_64-3.6/grpc/experimental/aio copying src/python/grpcio/grpc/experimental/aio/_utils.py -> python_build/lib.linux-x86_64-3.6/grpc/experimental/aio copying src/python/grpcio/grpc/experimental/aio/init.py -> python_build/lib.linux-x86_64-3.6/grpc/experimental/aio creating python_build/lib.linux-x86_64-3.6/grpc/_cython/_cygrpc copying src/python/grpcio/grpc/_cython/_cygrpc/init.py -> python_build/lib.linux-x86_64-3.6/grpc/_cython/_cygrpc creating python_build/lib.linux-x86_64-3.6/grpc/_cython/_credentials copying src/python/grpcio/grpc/_cython/_credentials/roots.pem -> python_build/lib.linux-x86_64-3.6/grpc/_cython/_credentials running build_ext Found cython-generated files... building 'grpc._cython.cygrpc' extension creating python_build/temp.linux-x86_64-3.6 creating python_build/temp.linux-x86_64-3.6/src creating python_build/temp.linux-x86_64-3.6/src/python creating python_build/temp.linux-x86_64-3.6/src/python/grpcio creating python_build/temp.linux-x86_64-3.6/src/python/grpcio/grpc creating python_build/temp.linux-x86_64-3.6/src/python/grpcio/grpc/_cython creating python_build/temp.linux-x86_64-3.6/src/core creating python_build/temp.linux-x86_64-3.6/src/core/ext creating python_build/temp.linux-x86_64-3.6/src/core/ext/filters creating python_build/temp.linux-x86_64-3.6/src/core/ext/filters/census creating python_build/temp.linux-x86_64-3.6/src/core/ext/filters/client_channel creating python_build/temp.linux-x86_64-3.6/src/core/ext/filters/client_channel/health creating python_build/temp.linux-x86_64-3.6/src/core/ext/filters/client_channel/lb_policy creating python_build/temp.linux-x86_64-3.6/src/core/ext/filters/client_channel/lb_policy/grpclb creating python_build/temp.linux-x86_64-3.6/src/core/ext/filters/client_channel/lb_policy/pick_first creating python_build/temp.linux-x86_64-3.6/src/core/ext/filters/client_channel/lb_policy/priority creating python_build/temp.linux-x86_64-3.6/src/core/ext/filters/client_channel/lb_policy/round_robin creating python_build/temp.linux-x86_64-3.6/src/core/ext/filters/client_channel/lb_policy/weighted_target creating python_build/temp.linux-x86_64-3.6/src/core/ext/filters/client_channel/lb_policy/xds creating python_build/temp.linux-x86_64-3.6/src/core/ext/filters/client_channel/resolver creating python_build/temp.linux-x86_64-3.6/src/core/ext/filters/client_channel/resolver/dns creating python_build/temp.linux-x86_64-3.6/src/core/ext/filters/client_channel/resolver/dns/c_ares creating python_build/temp.linux-x86_64-3.6/src/core/ext/filters/client_channel/resolver/dns/native creating python_build/temp.linux-x86_64-3.6/src/core/ext/filters/client_channel/resolver/fake creating python_build/temp.linux-x86_64-3.6/src/core/ext/filters/client_channel/resolver/sockaddr creating python_build/temp.linux-x86_64-3.6/src/core/ext/filters/client_channel/resolver/xds creating python_build/temp.linux-x86_64-3.6/src/core/ext/filters/client_channel/xds creating python_build/temp.linux-x86_64-3.6/src/core/ext/filters/client_idle creating python_build/temp.linux-x86_64-3.6/src/core/ext/filters/deadline creating python_build/temp.linux-x86_64-3.6/src/core/ext/filters/http creating python_build/temp.linux-x86_64-3.6/src/core/ext/filters/http/client creating python_build/temp.linux-x86_64-3.6/src/core/ext/filters/http/message_compress creating python_build/temp.linux-x86_64-3.6/src/core/ext/filters/http/server creating python_build/temp.linux-x86_64-3.6/src/core/ext/filters/max_age creating python_build/temp.linux-x86_64-3.6/src/core/ext/filters/message_size creating python_build/temp.linux-x86_64-3.6/src/core/ext/filters/workarounds creating python_build/temp.linux-x86_64-3.6/src/core/ext/transport creating python_build/temp.linux-x86_64-3.6/src/core/ext/transport/chttp2 creating python_build/temp.linux-x86_64-3.6/src/core/ext/transport/chttp2/alpn creating python_build/temp.linux-x86_64-3.6/src/core/ext/transport/chttp2/client creating python_build/temp.linux-x86_64-3.6/src/core/ext/transport/chttp2/client/insecure creating python_build/temp.linux-x86_64-3.6/src/core/ext/transport/chttp2/client/secure creating python_build/temp.linux-x86_64-3.6/src/core/ext/transport/chttp2/server creating python_build/temp.linux-x86_64-3.6/src/core/ext/transport/chttp2/server/insecure creating python_build/temp.linux-x86_64-3.6/src/core/ext/transport/chttp2/server/secure creating python_build/temp.linux-x86_64-3.6/src/core/ext/transport/chttp2/transport creating python_build/temp.linux-x86_64-3.6/src/core/ext/transport/inproc creating python_build/temp.linux-x86_64-3.6/src/core/ext/upb-generated creating python_build/temp.linux-x86_64-3.6/src/core/ext/upb-generated/envoy creating python_build/temp.linux-x86_64-3.6/src/core/ext/upb-generated/envoy/annotations creating python_build/temp.linux-x86_64-3.6/src/core/ext/upb-generated/envoy/api creating python_build/temp.linux-x86_64-3.6/src/core/ext/upb-generated/envoy/api/v2 creating python_build/temp.linux-x86_64-3.6/src/core/ext/upb-generated/envoy/api/v2/auth creating python_build/temp.linux-x86_64-3.6/src/core/ext/upb-generated/envoy/api/v2/cluster creating python_build/temp.linux-x86_64-3.6/src/core/ext/upb-generated/envoy/api/v2/core creating python_build/temp.linux-x86_64-3.6/src/core/ext/upb-generated/envoy/api/v2/endpoint creating python_build/temp.linux-x86_64-3.6/src/core/ext/upb-generated/envoy/api/v2/listener creating python_build/temp.linux-x86_64-3.6/src/core/ext/upb-generated/envoy/api/v2/route creating python_build/temp.linux-x86_64-3.6/src/core/ext/upb-generated/envoy/config creating python_build/temp.linux-x86_64-3.6/src/core/ext/upb-generated/envoy/config/filter creating python_build/temp.linux-x86_64-3.6/src/core/ext/upb-generated/envoy/config/filter/accesslog creating python_build/temp.linux-x86_64-3.6/src/core/ext/upb-generated/envoy/config/filter/accesslog/v2 creating python_build/temp.linux-x86_64-3.6/src/core/ext/upb-generated/envoy/config/filter/network creating python_build/temp.linux-x86_64-3.6/src/core/ext/upb-generated/envoy/config/filter/network/http_connection_manager creating python_build/temp.linux-x86_64-3.6/src/core/ext/upb-generated/envoy/config/filter/network/http_connection_manager/v2 creating python_build/temp.linux-x86_64-3.6/src/core/ext/upb-generated/envoy/config/listener creating python_build/temp.linux-x86_64-3.6/src/core/ext/upb-generated/envoy/config/listener/v2 creating python_build/temp.linux-x86_64-3.6/src/core/ext/upb-generated/envoy/service creating python_build/temp.linux-x86_64-3.6/src/core/ext/upb-generated/envoy/service/discovery creating python_build/temp.linux-x86_64-3.6/src/core/ext/upb-generated/envoy/service/discovery/v2 creating python_build/temp.linux-x86_64-3.6/src/core/ext/upb-generated/envoy/service/load_stats creating python_build/temp.linux-x86_64-3.6/src/core/ext/upb-generated/envoy/service/load_stats/v2 creating python_build/temp.linux-x86_64-3.6/src/core/ext/upb-generated/envoy/type creating python_build/temp.linux-x86_64-3.6/src/core/ext/upb-generated/envoy/type/matcher creating python_build/temp.linux-x86_64-3.6/src/core/ext/upb-generated/envoy/type/metadata creating python_build/temp.linux-x86_64-3.6/src/core/ext/upb-generated/envoy/type/metadata/v2 creating python_build/temp.linux-x86_64-3.6/src/core/ext/upb-generated/envoy/type/tracing creating python_build/temp.linux-x86_64-3.6/src/core/ext/upb-generated/envoy/type/tracing/v2 creating python_build/temp.linux-x86_64-3.6/src/core/ext/upb-generated/gogoproto creating python_build/temp.linux-x86_64-3.6/src/core/ext/upb-generated/google creating python_build/temp.linux-x86_64-3.6/src/core/ext/upb-generated/google/api creating python_build/temp.linux-x86_64-3.6/src/core/ext/upb-generated/google/protobuf creating python_build/temp.linux-x86_64-3.6/src/core/ext/upb-generated/google/rpc creating python_build/temp.linux-x86_64-3.6/src/core/ext/upb-generated/src creating python_build/temp.linux-x86_64-3.6/src/core/ext/upb-generated/src/proto creating python_build/temp.linux-x86_64-3.6/src/core/ext/upb-generated/src/proto/grpc creating python_build/temp.linux-x86_64-3.6/src/core/ext/upb-generated/src/proto/grpc/gcp creating python_build/temp.linux-x86_64-3.6/src/core/ext/upb-generated/src/proto/grpc/health creating python_build/temp.linux-x86_64-3.6/src/core/ext/upb-generated/src/proto/grpc/health/v1 creating python_build/temp.linux-x86_64-3.6/src/core/ext/upb-generated/src/proto/grpc/lb creating python_build/temp.linux-x86_64-3.6/src/core/ext/upb-generated/src/proto/grpc/lb/v1 creating python_build/temp.linux-x86_64-3.6/src/core/ext/upb-generated/udpa creating python_build/temp.linux-x86_64-3.6/src/core/ext/upb-generated/udpa/annotations creating python_build/temp.linux-x86_64-3.6/src/core/ext/upb-generated/udpa/data creating python_build/temp.linux-x86_64-3.6/src/core/ext/upb-generated/udpa/data/orca creating python_build/temp.linux-x86_64-3.6/src/core/ext/upb-generated/udpa/data/orca/v1 creating python_build/temp.linux-x86_64-3.6/src/core/ext/upb-generated/validate creating python_build/temp.linux-x86_64-3.6/src/core/lib creating python_build/temp.linux-x86_64-3.6/src/core/lib/avl creating python_build/temp.linux-x86_64-3.6/src/core/lib/backoff creating python_build/temp.linux-x86_64-3.6/src/core/lib/channel creating python_build/temp.linux-x86_64-3.6/src/core/lib/compression creating python_build/temp.linux-x86_64-3.6/src/core/lib/debug creating python_build/temp.linux-x86_64-3.6/src/core/lib/gpr creating python_build/temp.linux-x86_64-3.6/src/core/lib/gprpp creating python_build/temp.linux-x86_64-3.6/src/core/lib/http creating python_build/temp.linux-x86_64-3.6/src/core/lib/iomgr creating python_build/temp.linux-x86_64-3.6/src/core/lib/iomgr/executor creating python_build/temp.linux-x86_64-3.6/src/core/lib/iomgr/poller creating python_build/temp.linux-x86_64-3.6/src/core/lib/json creating python_build/temp.linux-x86_64-3.6/src/core/lib/profiling creating python_build/temp.linux-x86_64-3.6/src/core/lib/security creating python_build/temp.linux-x86_64-3.6/src/core/lib/security/context creating python_build/temp.linux-x86_64-3.6/src/core/lib/security/credentials creating python_build/temp.linux-x86_64-3.6/src/core/lib/security/credentials/alts creating python_build/temp.linux-x86_64-3.6/src/core/lib/security/credentials/composite creating python_build/temp.linux-x86_64-3.6/src/core/lib/security/credentials/fake creating python_build/temp.linux-x86_64-3.6/src/core/lib/security/credentials/google_default creating python_build/temp.linux-x86_64-3.6/src/core/lib/security/credentials/iam creating python_build/temp.linux-x86_64-3.6/src/core/lib/security/credentials/jwt creating python_build/temp.linux-x86_64-3.6/src/core/lib/security/credentials/local creating python_build/temp.linux-x86_64-3.6/src/core/lib/security/credentials/oauth2 creating python_build/temp.linux-x86_64-3.6/src/core/lib/security/credentials/plugin creating python_build/temp.linux-x86_64-3.6/src/core/lib/security/credentials/ssl creating python_build/temp.linux-x86_64-3.6/src/core/lib/security/credentials/tls creating python_build/temp.linux-x86_64-3.6/src/core/lib/security/security_connector creating python_build/temp.linux-x86_64-3.6/src/core/lib/security/security_connector/alts creating python_build/temp.linux-x86_64-3.6/src/core/lib/security/security_connector/fake creating python_build/temp.linux-x86_64-3.6/src/core/lib/security/security_connector/local creating python_build/temp.linux-x86_64-3.6/src/core/lib/security/security_connector/ssl creating python_build/temp.linux-x86_64-3.6/src/core/lib/security/security_connector/tls creating python_build/temp.linux-x86_64-3.6/src/core/lib/security/transport creating python_build/temp.linux-x86_64-3.6/src/core/lib/security/util creating python_build/temp.linux-x86_64-3.6/src/core/lib/slice creating python_build/temp.linux-x86_64-3.6/src/core/lib/surface creating python_build/temp.linux-x86_64-3.6/src/core/lib/transport creating python_build/temp.linux-x86_64-3.6/src/core/lib/uri creating python_build/temp.linux-x86_64-3.6/src/core/plugin_registry creating python_build/temp.linux-x86_64-3.6/src/core/tsi creating python_build/temp.linux-x86_64-3.6/src/core/tsi/alts creating python_build/temp.linux-x86_64-3.6/src/core/tsi/alts/crypt creating python_build/temp.linux-x86_64-3.6/src/core/tsi/alts/frame_protector creating python_build/temp.linux-x86_64-3.6/src/core/tsi/alts/handshaker creating python_build/temp.linux-x86_64-3.6/src/core/tsi/alts/zero_copy_frame_protector creating python_build/temp.linux-x86_64-3.6/src/core/tsi/ssl creating python_build/temp.linux-x86_64-3.6/src/core/tsi/ssl/session_cache creating python_build/temp.linux-x86_64-3.6/third_party creating python_build/temp.linux-x86_64-3.6/third_party/abseil-cpp creating python_build/temp.linux-x86_64-3.6/third_party/abseil-cpp/absl creating python_build/temp.linux-x86_64-3.6/third_party/abseil-cpp/absl/base creating python_build/temp.linux-x86_64-3.6/third_party/abseil-cpp/absl/base/internal creating python_build/temp.linux-x86_64-3.6/third_party/abseil-cpp/absl/numeric creating python_build/temp.linux-x86_64-3.6/third_party/abseil-cpp/absl/strings creating python_build/temp.linux-x86_64-3.6/third_party/abseil-cpp/absl/strings/internal creating python_build/temp.linux-x86_64-3.6/third_party/abseil-cpp/absl/strings/internal/str_format creating python_build/temp.linux-x86_64-3.6/third_party/abseil-cpp/absl/time creating python_build/temp.linux-x86_64-3.6/third_party/abseil-cpp/absl/time/internal creating python_build/temp.linux-x86_64-3.6/third_party/abseil-cpp/absl/time/internal/cctz creating python_build/temp.linux-x86_64-3.6/third_party/abseil-cpp/absl/time/internal/cctz/src creating python_build/temp.linux-x86_64-3.6/third_party/abseil-cpp/absl/types creating python_build/temp.linux-x86_64-3.6/third_party/address_sorting creating python_build/temp.linux-x86_64-3.6/third_party/boringssl-with-bazel creating python_build/temp.linux-x86_64-3.6/third_party/boringssl-with-bazel/src creating python_build/temp.linux-x86_64-3.6/third_party/boringssl-with-bazel/src/crypto creating python_build/temp.linux-x86_64-3.6/third_party/boringssl-with-bazel/src/crypto/asn1 creating python_build/temp.linux-x86_64-3.6/third_party/boringssl-with-bazel/src/crypto/base64 creating python_build/temp.linux-x86_64-3.6/third_party/boringssl-with-bazel/src/crypto/bio creating python_build/temp.linux-x86_64-3.6/third_party/boringssl-with-bazel/src/crypto/bn_extra creating python_build/temp.linux-x86_64-3.6/third_party/boringssl-with-bazel/src/crypto/buf creating python_build/temp.linux-x86_64-3.6/third_party/boringssl-with-bazel/src/crypto/bytestring creating python_build/temp.linux-x86_64-3.6/third_party/boringssl-with-bazel/src/crypto/chacha creating python_build/temp.linux-x86_64-3.6/third_party/boringssl-with-bazel/src/crypto/cipher_extra creating python_build/temp.linux-x86_64-3.6/third_party/boringssl-with-bazel/src/crypto/cmac creating python_build/temp.linux-x86_64-3.6/third_party/boringssl-with-bazel/src/crypto/conf creating python_build/temp.linux-x86_64-3.6/third_party/boringssl-with-bazel/src/crypto/curve25519 creating python_build/temp.linux-x86_64-3.6/third_party/boringssl-with-bazel/src/crypto/dh creating python_build/temp.linux-x86_64-3.6/third_party/boringssl-with-bazel/src/crypto/digest_extra creating python_build/temp.linux-x86_64-3.6/third_party/boringssl-with-bazel/src/crypto/dsa creating python_build/temp.linux-x86_64-3.6/third_party/boringssl-with-bazel/src/crypto/ec_extra creating python_build/temp.linux-x86_64-3.6/third_party/boringssl-with-bazel/src/crypto/ecdh_extra creating python_build/temp.linux-x86_64-3.6/third_party/boringssl-with-bazel/src/crypto/ecdsa_extra creating python_build/temp.linux-x86_64-3.6/third_party/boringssl-with-bazel/src/crypto/engine creating python_build/temp.linux-x86_64-3.6/third_party/boringssl-with-bazel/src/crypto/err creating python_build/temp.linux-x86_64-3.6/third_party/boringssl-with-bazel/src/crypto/evp creating python_build/temp.linux-x86_64-3.6/third_party/boringssl-with-bazel/src/crypto/fipsmodule creating python_build/temp.linux-x86_64-3.6/third_party/boringssl-with-bazel/src/crypto/hkdf creating python_build/temp.linux-x86_64-3.6/third_party/boringssl-with-bazel/src/crypto/hrss creating python_build/temp.linux-x86_64-3.6/third_party/boringssl-with-bazel/src/crypto/lhash creating python_build/temp.linux-x86_64-3.6/third_party/boringssl-with-bazel/src/crypto/obj creating python_build/temp.linux-x86_64-3.6/third_party/boringssl-with-bazel/src/crypto/pem creating python_build/temp.linux-x86_64-3.6/third_party/boringssl-with-bazel/src/crypto/pkcs7 creating python_build/temp.linux-x86_64-3.6/third_party/boringssl-with-bazel/src/crypto/pkcs8 creating python_build/temp.linux-x86_64-3.6/third_party/boringssl-with-bazel/src/crypto/poly1305 creating python_build/temp.linux-x86_64-3.6/third_party/boringssl-with-bazel/src/crypto/pool creating python_build/temp.linux-x86_64-3.6/third_party/boringssl-with-bazel/src/crypto/rand_extra creating python_build/temp.linux-x86_64-3.6/third_party/boringssl-with-bazel/src/crypto/rc4 creating python_build/temp.linux-x86_64-3.6/third_party/boringssl-with-bazel/src/crypto/rsa_extra creating python_build/temp.linux-x86_64-3.6/third_party/boringssl-with-bazel/src/crypto/siphash creating python_build/temp.linux-x86_64-3.6/third_party/boringssl-with-bazel/src/crypto/stack creating python_build/temp.linux-x86_64-3.6/third_party/boringssl-with-bazel/src/crypto/x509 creating python_build/temp.linux-x86_64-3.6/third_party/boringssl-with-bazel/src/crypto/x509v3 creating python_build/temp.linux-x86_64-3.6/third_party/boringssl-with-bazel/src/ssl creating python_build/temp.linux-x86_64-3.6/third_party/boringssl-with-bazel/src/third_party creating python_build/temp.linux-x86_64-3.6/third_party/boringssl-with-bazel/src/third_party/fiat creating python_build/temp.linux-x86_64-3.6/third_party/cares creating python_build/temp.linux-x86_64-3.6/third_party/cares/cares creating python_build/temp.linux-x86_64-3.6/third_party/upb creating python_build/temp.linux-x86_64-3.6/third_party/upb/upb creating python_build/temp.linux-x86_64-3.6/third_party/zlib x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DOPENSSL_NO_ASM=1 -D_WIN32_WINNT=1536 -DGPR_BACKWARDS_COMPATIBILITY_MODE=1 -DHAVE_CONFIG_H=1 -DGRPC_ENABLE_FORK_SUPPORT=1 -DPyMODINIT_FUNC=extern "C" attribute((visibility ("default"))) PyObject* -DGRPC_POSIX_FORK_ALLOW_PTHREAD_ATFORK=1 -Isrc/python/grpcio -Iinclude -I. -Ithird_party/abseil-cpp -Ithird_party/address_sorting/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/cares/config_linux -Ithird_party/boringssl-with-bazel/src/include -Ithird_party/upb -Isrc/core/ext/upb-generated -Ithird_party/zlib -I/usr/include/python3.6m -c src/python/grpcio/grpc/_cython/cygrpc.cpp -o python_build/temp.linux-x86_64-3.6/src/python/grpcio/grpc/_cython/cygrpc.o -std=c++11 -std=gnu99 -fvisibility=hidden -fno-wrapv -fno-exceptions -pthread cc1plus: warning: command line option ‘-std=gnu99’ is valid for C/ObjC but not for C++ src/python/grpcio/grpc/_cython/cygrpc.cpp:934:10: fatal error: Python.h: No such file or directory

include "Python.h"

          ^~~~~~~~~~
compilation terminated.
creating tmp
creating tmp/tmp2sbie084
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -c /tmp/tmp2sbie084/a.c -o tmp/tmp2sbie084/a.o
/tmp/tmp2sbie084/a.c:2:10: fatal error: Python.h: No such file or directory
 #include <Python.h>
          ^~~~~~~~~~
compilation terminated.

Could not find <Python.h>. This could mean the following:
  * You're on Ubuntu and haven't run `apt-get install python-dev`.
  * You're on RHEL/Fedora and haven't run `yum install python-devel` or
    `dnf install python-devel` (make sure you also have redhat-rpm-config
    installed)
  * You're on Mac OS X and the usual Python framework was somehow corrupted
    (check your environment variables or try re-installing?)
  * You're on Windows and your Python installation was somehow corrupted
    (check your environment variables or try re-installing?)
Traceback (most recent call last):
  File "/usr/lib/python3.6/distutils/unixccompiler.py", line 118, in _compile
    extra_postargs)
  File "/tmp/pip-build-9o2ys582/grpcio/src/python/grpcio/_spawn_patch.py", line 54, in _commandfile_spawn
    _classic_spawn(self, command)
  File "/usr/lib/python3.6/distutils/ccompiler.py", line 909, in spawn
    spawn(cmd, dry_run=self.dry_run)
  File "/usr/lib/python3.6/distutils/spawn.py", line 36, in spawn
    _spawn_posix(cmd, search_path, dry_run=dry_run)
  File "/usr/lib/python3.6/distutils/spawn.py", line 159, in _spawn_posix
    % (cmd, exit_status))
distutils.errors.DistutilsExecError: command 'x86_64-linux-gnu-gcc' failed with exit status 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/tmp/pip-build-9o2ys582/grpcio/src/python/grpcio/commands.py", line 262, in build_extensions
    build_ext.build_ext.build_extensions(self)
  File "/usr/lib/python3.6/distutils/command/build_ext.py", line 448, in build_extensions
    self._build_extensions_serial()
  File "/usr/lib/python3.6/distutils/command/build_ext.py", line 473, in _build_extensions_serial
    self.build_extension(ext)
  File "/usr/lib/python3/dist-packages/setuptools/command/build_ext.py", line 199, in build_extension
    _build_ext.build_extension(self, ext)
  File "/usr/lib/python3.6/distutils/command/build_ext.py", line 533, in build_extension
    depends=ext.depends)
  File "/usr/lib/python3.6/distutils/ccompiler.py", line 574, in compile
    self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
  File "/tmp/pip-build-9o2ys582/grpcio/src/python/grpcio/commands.py", line 246, in new_compile
    pp_opts)
  File "/usr/lib/python3.6/distutils/unixccompiler.py", line 120, in _compile
    raise CompileError(msg)
distutils.errors.CompileError: command 'x86_64-linux-gnu-gcc' failed with exit status 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-build-9o2ys582/grpcio/setup.py", line 400, in <module>
    cmdclass=COMMAND_CLASS,
  File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 129, in setup
    return distutils.core.setup(**attrs)
  File "/usr/lib/python3.6/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/usr/lib/python3.6/distutils/dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/usr/lib/python3/dist-packages/setuptools/command/install.py", line 61, in run
    return orig.install.run(self)
  File "/usr/lib/python3.6/distutils/command/install.py", line 589, in run
    self.run_command('build')
  File "/usr/lib/python3.6/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/usr/lib/python3.6/distutils/command/build.py", line 135, in run
    self.run_command(cmd_name)
  File "/usr/lib/python3.6/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/usr/lib/python3/dist-packages/setuptools/command/build_ext.py", line 78, in run
    _build_ext.run(self)
  File "/usr/lib/python3.6/distutils/command/build_ext.py", line 339, in run
    self.build_extensions()
  File "/tmp/pip-build-9o2ys582/grpcio/src/python/grpcio/commands.py", line 265, in build_extensions
    support.diagnose_build_ext_error(self, error, formatted_exception)
  File "/tmp/pip-build-9o2ys582/grpcio/src/python/grpcio/support.py", line 111, in diagnose_build_ext_error
    diagnostic(build_ext, error)
  File "/tmp/pip-build-9o2ys582/grpcio/src/python/grpcio/support.py", line 70, in diagnose_compile_error
    _expect_compile(build_ext.compiler, c_check, message)
  File "/tmp/pip-build-9o2ys582/grpcio/src/python/grpcio/support.py", line 64, in _expect_compile
    error_message))
commands.CommandError: Diagnostics found a compilation environment issue:

Could not find <Python.h>. This could mean the following:
  * You're on Ubuntu and haven't run `apt-get install python-dev`.
  * You're on RHEL/Fedora and haven't run `yum install python-devel` or
    `dnf install python-devel` (make sure you also have redhat-rpm-config
    installed)
  * You're on Mac OS X and the usual Python framework was somehow corrupted
    (check your environment variables or try re-installing?)
  * You're on Windows and your Python installation was somehow corrupted
    (check your environment variables or try re-installing?)

----------------------------------------

Command "/usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-9o2ys582/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-wtj6j5uu-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-9o2ys582/grpcio/

----------------------------------------

Command "/usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-hajn565x/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-nz2r76hm-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-hajn565x/grpcio/ root@xpslx:~#

blackweta commented 4 years ago

BTW I am ON Ubuntu ( well Mint 19.3 = ubuntu 18/bionic) And I HAVE run apt-get install python-dev

leigh123linux commented 4 years ago

File your issue at launchpad against pip

attila123 commented 3 years ago

@blackweta for python3 you need to install sudo apt-get install python3-dev, see e.g. https://stackoverflow.com/questions/21530577/fatal-error-python-h-no-such-file-or-directory

That should take care at least the Python.h issue.

I am not familiar with this project, just was looking for the bdist_wheel issue.