adrienemery / lnd-grpc-client

A python grpc client/async client for LND ⚡⚡⚡
MIT License
34 stars 20 forks source link

Failed to build grpcio #21

Closed arshbot closed 4 years ago

arshbot commented 4 years ago

When attempting to install with poetry, the install fails with the following output


$ poetry add lndgrpc
Using version ^0.2.0 for lndgrpc

Updating dependencies
Resolving dependencies...

Package operations: 6 installs, 0 updates, 0 removals

  - Installing grpcio (1.28.1)

[EnvCommandError]
Command ['/home/harshagoli/.cache/pypoetry/virtualenvs/ssss-OIb19DJR-py3.8/bin/pip', 'install', '--no-deps', 'grpcio==1.28.1'] errored with the following return code 1, and output: 
Collecting grpcio==1.28.1
  Using cached https://files.pythonhosted.org/packages/cf/7a/9744998129fce7e29c5f2d8b0f545913b7383e65d8366fc0ae98d11936af/grpcio-1.28.1.tar.gz
Building wheels for collected packages: grpcio
  Running setup.py bdist_wheel for grpcio: started
  Running setup.py bdist_wheel for grpcio: finished with status 'error'
  Complete output from command /home/harshagoli/.cache/pypoetry/virtualenvs/ssss-OIb19DJR-py3.8/bin/python3.8 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-blmpju7c/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/pip-wheel-sf96qkno --python-tag cp38:
  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
Failed to build grpcio
Installing collected packages: grpcio
  Running setup.py install for grpcio: started
    Running setup.py install for grpcio: finished with status 'error'
    Complete output from command /home/harshagoli/.cache/pypoetry/virtualenvs/ssss-OIb19DJR-py3.8/bin/python3.8 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-blmpju7c/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-35xfnf7n/install-record.txt --single-version-externally-managed --compile --install-headers /home/harshagoli/.cache/pypoetry/virtualenvs/ssss-OIb19DJR-py3.8/include/site/python3.8/grpcio:
    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.8
    creating python_build/lib.linux-x86_64-3.8/grpc
    copying src/python/grpcio/grpc/_utilities.py -> python_build/lib.linux-x86_64-3.8/grpc
    copying src/python/grpcio/grpc/_server.py -> python_build/lib.linux-x86_64-3.8/grpc
    copying src/python/grpcio/grpc/_channel.py -> python_build/lib.linux-x86_64-3.8/grpc
    copying src/python/grpcio/grpc/_simple_stubs.py -> python_build/lib.linux-x86_64-3.8/grpc
    copying src/python/grpcio/grpc/__init__.py -> python_build/lib.linux-x86_64-3.8/grpc
    copying src/python/grpcio/grpc/_plugin_wrapping.py -> python_build/lib.linux-x86_64-3.8/grpc
    copying src/python/grpcio/grpc/_common.py -> python_build/lib.linux-x86_64-3.8/grpc
    copying src/python/grpcio/grpc/_grpcio_metadata.py -> python_build/lib.linux-x86_64-3.8/grpc
    copying src/python/grpcio/grpc/_compression.py -> python_build/lib.linux-x86_64-3.8/grpc
    copying src/python/grpcio/grpc/_interceptor.py -> python_build/lib.linux-x86_64-3.8/grpc
    copying src/python/grpcio/grpc/_auth.py -> python_build/lib.linux-x86_64-3.8/grpc
    creating python_build/lib.linux-x86_64-3.8/grpc/experimental
    copying src/python/grpcio/grpc/experimental/gevent.py -> python_build/lib.linux-x86_64-3.8/grpc/experimental
    copying src/python/grpcio/grpc/experimental/__init__.py -> python_build/lib.linux-x86_64-3.8/grpc/experimental
    copying src/python/grpcio/grpc/experimental/session_cache.py -> python_build/lib.linux-x86_64-3.8/grpc/experimental
    creating python_build/lib.linux-x86_64-3.8/grpc/beta
    copying src/python/grpcio/grpc/beta/_client_adaptations.py -> python_build/lib.linux-x86_64-3.8/grpc/beta
    copying src/python/grpcio/grpc/beta/implementations.py -> python_build/lib.linux-x86_64-3.8/grpc/beta
    copying src/python/grpcio/grpc/beta/interfaces.py -> python_build/lib.linux-x86_64-3.8/grpc/beta
    copying src/python/grpcio/grpc/beta/_metadata.py -> python_build/lib.linux-x86_64-3.8/grpc/beta
    copying src/python/grpcio/grpc/beta/_server_adaptations.py -> python_build/lib.linux-x86_64-3.8/grpc/beta
    copying src/python/grpcio/grpc/beta/__init__.py -> python_build/lib.linux-x86_64-3.8/grpc/beta
    copying src/python/grpcio/grpc/beta/utilities.py -> python_build/lib.linux-x86_64-3.8/grpc/beta
    creating python_build/lib.linux-x86_64-3.8/grpc/_cython
    copying src/python/grpcio/grpc/_cython/__init__.py -> python_build/lib.linux-x86_64-3.8/grpc/_cython
    creating python_build/lib.linux-x86_64-3.8/grpc/framework
    copying src/python/grpcio/grpc/framework/__init__.py -> python_build/lib.linux-x86_64-3.8/grpc/framework
    creating python_build/lib.linux-x86_64-3.8/grpc/experimental/aio
    copying src/python/grpcio/grpc/experimental/aio/_server.py -> python_build/lib.linux-x86_64-3.8/grpc/experimental/aio
    copying src/python/grpcio/grpc/experimental/aio/_channel.py -> python_build/lib.linux-x86_64-3.8/grpc/experimental/aio
    copying src/python/grpcio/grpc/experimental/aio/__init__.py -> python_build/lib.linux-x86_64-3.8/grpc/experimental/aio
    copying src/python/grpcio/grpc/experimental/aio/_base_server.py -> python_build/lib.linux-x86_64-3.8/grpc/experimental/aio
    copying src/python/grpcio/grpc/experimental/aio/_utils.py -> python_build/lib.linux-x86_64-3.8/grpc/experimental/aio
    copying src/python/grpcio/grpc/experimental/aio/_call.py -> python_build/lib.linux-x86_64-3.8/grpc/experimental/aio
    copying src/python/grpcio/grpc/experimental/aio/_base_channel.py -> python_build/lib.linux-x86_64-3.8/grpc/experimental/aio
    copying src/python/grpcio/grpc/experimental/aio/_base_call.py -> python_build/lib.linux-x86_64-3.8/grpc/experimental/aio
    copying src/python/grpcio/grpc/experimental/aio/_interceptor.py -> python_build/lib.linux-x86_64-3.8/grpc/experimental/aio
    copying src/python/grpcio/grpc/experimental/aio/_typing.py -> python_build/lib.linux-x86_64-3.8/grpc/experimental/aio
    creating python_build/lib.linux-x86_64-3.8/grpc/_cython/_cygrpc
    copying src/python/grpcio/grpc/_cython/_cygrpc/__init__.py -> python_build/lib.linux-x86_64-3.8/grpc/_cython/_cygrpc
    creating python_build/lib.linux-x86_64-3.8/grpc/framework/foundation
    copying src/python/grpcio/grpc/framework/foundation/abandonment.py -> python_build/lib.linux-x86_64-3.8/grpc/framework/foundation
    copying src/python/grpcio/grpc/framework/foundation/__init__.py -> python_build/lib.linux-x86_64-3.8/grpc/framework/foundation
    copying src/python/grpcio/grpc/framework/foundation/future.py -> python_build/lib.linux-x86_64-3.8/grpc/framework/foundation
    copying src/python/grpcio/grpc/framework/foundation/callable_util.py -> python_build/lib.linux-x86_64-3.8/grpc/framework/foundation
    copying src/python/grpcio/grpc/framework/foundation/stream.py -> python_build/lib.linux-x86_64-3.8/grpc/framework/foundation
    copying src/python/grpcio/grpc/framework/foundation/stream_util.py -> python_build/lib.linux-x86_64-3.8/grpc/framework/foundation
    copying src/python/grpcio/grpc/framework/foundation/logging_pool.py -> python_build/lib.linux-x86_64-3.8/grpc/framework/foundation
    creating python_build/lib.linux-x86_64-3.8/grpc/framework/common
    copying src/python/grpcio/grpc/framework/common/__init__.py -> python_build/lib.linux-x86_64-3.8/grpc/framework/common
    copying src/python/grpcio/grpc/framework/common/cardinality.py -> python_build/lib.linux-x86_64-3.8/grpc/framework/common
    copying src/python/grpcio/grpc/framework/common/style.py -> python_build/lib.linux-x86_64-3.8/grpc/framework/common
    creating python_build/lib.linux-x86_64-3.8/grpc/framework/interfaces
    copying src/python/grpcio/grpc/framework/interfaces/__init__.py -> python_build/lib.linux-x86_64-3.8/grpc/framework/interfaces
    creating python_build/lib.linux-x86_64-3.8/grpc/framework/interfaces/base
    copying src/python/grpcio/grpc/framework/interfaces/base/base.py -> python_build/lib.linux-x86_64-3.8/grpc/framework/interfaces/base
    copying src/python/grpcio/grpc/framework/interfaces/base/__init__.py -> python_build/lib.linux-x86_64-3.8/grpc/framework/interfaces/base
    copying src/python/grpcio/grpc/framework/interfaces/base/utilities.py -> python_build/lib.linux-x86_64-3.8/grpc/framework/interfaces/base
    creating python_build/lib.linux-x86_64-3.8/grpc/framework/interfaces/face
    copying src/python/grpcio/grpc/framework/interfaces/face/__init__.py -> python_build/lib.linux-x86_64-3.8/grpc/framework/interfaces/face
    copying src/python/grpcio/grpc/framework/interfaces/face/face.py -> python_build/lib.linux-x86_64-3.8/grpc/framework/interfaces/face
    copying src/python/grpcio/grpc/framework/interfaces/face/utilities.py -> python_build/lib.linux-x86_64-3.8/grpc/framework/interfaces/face
    creating python_build/lib.linux-x86_64-3.8/grpc/_cython/_credentials
    copying src/python/grpcio/grpc/_cython/_credentials/roots.pem -> python_build/lib.linux-x86_64-3.8/grpc/_cython/_credentials
    running build_ext
    Found cython-generated files...
    building 'grpc._cython.cygrpc' extension
    creating python_build/temp.linux-x86_64-3.8
    creating python_build/temp.linux-x86_64-3.8/src
    creating python_build/temp.linux-x86_64-3.8/src/python
    creating python_build/temp.linux-x86_64-3.8/src/python/grpcio
    creating python_build/temp.linux-x86_64-3.8/src/python/grpcio/grpc
    creating python_build/temp.linux-x86_64-3.8/src/python/grpcio/grpc/_cython
    creating python_build/temp.linux-x86_64-3.8/src/core
    creating python_build/temp.linux-x86_64-3.8/src/core/ext
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/filters
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/filters/census
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/filters/client_channel
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/filters/client_channel/health
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/filters/client_channel/lb_policy
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/filters/client_channel/lb_policy/grpclb
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/filters/client_channel/lb_policy/pick_first
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/filters/client_channel/lb_policy/round_robin
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/filters/client_channel/lb_policy/xds
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/filters/client_channel/resolver
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/filters/client_channel/resolver/dns
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/filters/client_channel/resolver/dns/c_ares
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/filters/client_channel/resolver/dns/native
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/filters/client_channel/resolver/fake
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/filters/client_channel/resolver/sockaddr
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/filters/client_channel/resolver/xds
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/filters/client_channel/xds
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/filters/client_idle
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/filters/deadline
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/filters/http
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/filters/http/client
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/filters/http/message_compress
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/filters/http/server
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/filters/max_age
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/filters/message_size
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/filters/workarounds
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/transport
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/transport/chttp2
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/transport/chttp2/alpn
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/transport/chttp2/client
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/transport/chttp2/client/insecure
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/transport/chttp2/client/secure
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/transport/chttp2/server
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/transport/chttp2/server/insecure
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/transport/chttp2/server/secure
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/transport/chttp2/transport
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/transport/inproc
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/upb-generated
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/upb-generated/envoy
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/upb-generated/envoy/annotations
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/upb-generated/envoy/api
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/upb-generated/envoy/api/v2
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/upb-generated/envoy/api/v2/auth
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/upb-generated/envoy/api/v2/cluster
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/upb-generated/envoy/api/v2/core
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/upb-generated/envoy/api/v2/endpoint
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/upb-generated/envoy/api/v2/listener
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/upb-generated/envoy/api/v2/route
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/upb-generated/envoy/config
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/upb-generated/envoy/config/filter
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/upb-generated/envoy/config/filter/accesslog
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/upb-generated/envoy/config/filter/accesslog/v2
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/upb-generated/envoy/config/filter/network
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/upb-generated/envoy/config/filter/network/http_connection_manager
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/upb-generated/envoy/config/filter/network/http_connection_manager/v2
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/upb-generated/envoy/config/listener
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/upb-generated/envoy/config/listener/v2
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/upb-generated/envoy/service
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/upb-generated/envoy/service/discovery
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/upb-generated/envoy/service/discovery/v2
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/upb-generated/envoy/service/load_stats
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/upb-generated/envoy/service/load_stats/v2
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/upb-generated/envoy/type
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/upb-generated/envoy/type/matcher
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/upb-generated/envoy/type/metadata
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/upb-generated/envoy/type/metadata/v2
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/upb-generated/envoy/type/tracing
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/upb-generated/envoy/type/tracing/v2
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/upb-generated/gogoproto
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/upb-generated/google
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/upb-generated/google/api
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/upb-generated/google/protobuf
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/upb-generated/google/rpc
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/upb-generated/src
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/upb-generated/src/proto
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/upb-generated/src/proto/grpc
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/upb-generated/src/proto/grpc/gcp
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/upb-generated/src/proto/grpc/health
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/upb-generated/src/proto/grpc/health/v1
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/upb-generated/src/proto/grpc/lb
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/upb-generated/src/proto/grpc/lb/v1
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/upb-generated/udpa
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/upb-generated/udpa/annotations
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/upb-generated/udpa/data
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/upb-generated/udpa/data/orca
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/upb-generated/udpa/data/orca/v1
    creating python_build/temp.linux-x86_64-3.8/src/core/ext/upb-generated/validate
    creating python_build/temp.linux-x86_64-3.8/src/core/lib
    creating python_build/temp.linux-x86_64-3.8/src/core/lib/avl
    creating python_build/temp.linux-x86_64-3.8/src/core/lib/backoff
    creating python_build/temp.linux-x86_64-3.8/src/core/lib/channel
    creating python_build/temp.linux-x86_64-3.8/src/core/lib/compression
    creating python_build/temp.linux-x86_64-3.8/src/core/lib/debug
    creating python_build/temp.linux-x86_64-3.8/src/core/lib/gpr
    creating python_build/temp.linux-x86_64-3.8/src/core/lib/gprpp
    creating python_build/temp.linux-x86_64-3.8/src/core/lib/http
    creating python_build/temp.linux-x86_64-3.8/src/core/lib/iomgr
    creating python_build/temp.linux-x86_64-3.8/src/core/lib/iomgr/executor
    creating python_build/temp.linux-x86_64-3.8/src/core/lib/iomgr/poller
    creating python_build/temp.linux-x86_64-3.8/src/core/lib/json
    creating python_build/temp.linux-x86_64-3.8/src/core/lib/profiling
    creating python_build/temp.linux-x86_64-3.8/src/core/lib/security
    creating python_build/temp.linux-x86_64-3.8/src/core/lib/security/context
    creating python_build/temp.linux-x86_64-3.8/src/core/lib/security/credentials
    creating python_build/temp.linux-x86_64-3.8/src/core/lib/security/credentials/alts
    creating python_build/temp.linux-x86_64-3.8/src/core/lib/security/credentials/composite
    creating python_build/temp.linux-x86_64-3.8/src/core/lib/security/credentials/fake
    creating python_build/temp.linux-x86_64-3.8/src/core/lib/security/credentials/google_default
    creating python_build/temp.linux-x86_64-3.8/src/core/lib/security/credentials/iam
    creating python_build/temp.linux-x86_64-3.8/src/core/lib/security/credentials/jwt
    creating python_build/temp.linux-x86_64-3.8/src/core/lib/security/credentials/local
    creating python_build/temp.linux-x86_64-3.8/src/core/lib/security/credentials/oauth2
    creating python_build/temp.linux-x86_64-3.8/src/core/lib/security/credentials/plugin
    creating python_build/temp.linux-x86_64-3.8/src/core/lib/security/credentials/ssl
    creating python_build/temp.linux-x86_64-3.8/src/core/lib/security/credentials/tls
    creating python_build/temp.linux-x86_64-3.8/src/core/lib/security/security_connector
    creating python_build/temp.linux-x86_64-3.8/src/core/lib/security/security_connector/alts
    creating python_build/temp.linux-x86_64-3.8/src/core/lib/security/security_connector/fake
    creating python_build/temp.linux-x86_64-3.8/src/core/lib/security/security_connector/local
    creating python_build/temp.linux-x86_64-3.8/src/core/lib/security/security_connector/ssl
    creating python_build/temp.linux-x86_64-3.8/src/core/lib/security/security_connector/tls
    creating python_build/temp.linux-x86_64-3.8/src/core/lib/security/transport
    creating python_build/temp.linux-x86_64-3.8/src/core/lib/security/util
    creating python_build/temp.linux-x86_64-3.8/src/core/lib/slice
    creating python_build/temp.linux-x86_64-3.8/src/core/lib/surface
    creating python_build/temp.linux-x86_64-3.8/src/core/lib/transport
    creating python_build/temp.linux-x86_64-3.8/src/core/lib/uri
    creating python_build/temp.linux-x86_64-3.8/src/core/plugin_registry
    creating python_build/temp.linux-x86_64-3.8/src/core/tsi
    creating python_build/temp.linux-x86_64-3.8/src/core/tsi/alts
    creating python_build/temp.linux-x86_64-3.8/src/core/tsi/alts/crypt
    creating python_build/temp.linux-x86_64-3.8/src/core/tsi/alts/frame_protector
    creating python_build/temp.linux-x86_64-3.8/src/core/tsi/alts/handshaker
    creating python_build/temp.linux-x86_64-3.8/src/core/tsi/alts/zero_copy_frame_protector
    creating python_build/temp.linux-x86_64-3.8/src/core/tsi/ssl
    creating python_build/temp.linux-x86_64-3.8/src/core/tsi/ssl/session_cache
    creating python_build/temp.linux-x86_64-3.8/third_party
    creating python_build/temp.linux-x86_64-3.8/third_party/abseil-cpp
    creating python_build/temp.linux-x86_64-3.8/third_party/abseil-cpp/absl
    creating python_build/temp.linux-x86_64-3.8/third_party/abseil-cpp/absl/base
    creating python_build/temp.linux-x86_64-3.8/third_party/abseil-cpp/absl/base/internal
    creating python_build/temp.linux-x86_64-3.8/third_party/abseil-cpp/absl/numeric
    creating python_build/temp.linux-x86_64-3.8/third_party/abseil-cpp/absl/strings
    creating python_build/temp.linux-x86_64-3.8/third_party/abseil-cpp/absl/strings/internal
    creating python_build/temp.linux-x86_64-3.8/third_party/abseil-cpp/absl/strings/internal/str_format
    creating python_build/temp.linux-x86_64-3.8/third_party/abseil-cpp/absl/types
    creating python_build/temp.linux-x86_64-3.8/third_party/address_sorting
    creating python_build/temp.linux-x86_64-3.8/third_party/boringssl-with-bazel
    creating python_build/temp.linux-x86_64-3.8/third_party/boringssl-with-bazel/src
    creating python_build/temp.linux-x86_64-3.8/third_party/boringssl-with-bazel/src/crypto
    creating python_build/temp.linux-x86_64-3.8/third_party/boringssl-with-bazel/src/crypto/asn1
    creating python_build/temp.linux-x86_64-3.8/third_party/boringssl-with-bazel/src/crypto/base64
    creating python_build/temp.linux-x86_64-3.8/third_party/boringssl-with-bazel/src/crypto/bio
    creating python_build/temp.linux-x86_64-3.8/third_party/boringssl-with-bazel/src/crypto/bn_extra
    creating python_build/temp.linux-x86_64-3.8/third_party/boringssl-with-bazel/src/crypto/buf
    creating python_build/temp.linux-x86_64-3.8/third_party/boringssl-with-bazel/src/crypto/bytestring
    creating python_build/temp.linux-x86_64-3.8/third_party/boringssl-with-bazel/src/crypto/chacha
    creating python_build/temp.linux-x86_64-3.8/third_party/boringssl-with-bazel/src/crypto/cipher_extra
    creating python_build/temp.linux-x86_64-3.8/third_party/boringssl-with-bazel/src/crypto/cmac
    creating python_build/temp.linux-x86_64-3.8/third_party/boringssl-with-bazel/src/crypto/conf
    creating python_build/temp.linux-x86_64-3.8/third_party/boringssl-with-bazel/src/crypto/curve25519
    creating python_build/temp.linux-x86_64-3.8/third_party/boringssl-with-bazel/src/crypto/dh
    creating python_build/temp.linux-x86_64-3.8/third_party/boringssl-with-bazel/src/crypto/digest_extra
    creating python_build/temp.linux-x86_64-3.8/third_party/boringssl-with-bazel/src/crypto/dsa
    creating python_build/temp.linux-x86_64-3.8/third_party/boringssl-with-bazel/src/crypto/ec_extra
    creating python_build/temp.linux-x86_64-3.8/third_party/boringssl-with-bazel/src/crypto/ecdh_extra
    creating python_build/temp.linux-x86_64-3.8/third_party/boringssl-with-bazel/src/crypto/ecdsa_extra
    creating python_build/temp.linux-x86_64-3.8/third_party/boringssl-with-bazel/src/crypto/engine
    creating python_build/temp.linux-x86_64-3.8/third_party/boringssl-with-bazel/src/crypto/err
    creating python_build/temp.linux-x86_64-3.8/third_party/boringssl-with-bazel/src/crypto/evp
    creating python_build/temp.linux-x86_64-3.8/third_party/boringssl-with-bazel/src/crypto/fipsmodule
    creating python_build/temp.linux-x86_64-3.8/third_party/boringssl-with-bazel/src/crypto/hkdf
    creating python_build/temp.linux-x86_64-3.8/third_party/boringssl-with-bazel/src/crypto/hrss
    creating python_build/temp.linux-x86_64-3.8/third_party/boringssl-with-bazel/src/crypto/lhash
    creating python_build/temp.linux-x86_64-3.8/third_party/boringssl-with-bazel/src/crypto/obj
    creating python_build/temp.linux-x86_64-3.8/third_party/boringssl-with-bazel/src/crypto/pem
    creating python_build/temp.linux-x86_64-3.8/third_party/boringssl-with-bazel/src/crypto/pkcs7
    creating python_build/temp.linux-x86_64-3.8/third_party/boringssl-with-bazel/src/crypto/pkcs8
    creating python_build/temp.linux-x86_64-3.8/third_party/boringssl-with-bazel/src/crypto/poly1305
    creating python_build/temp.linux-x86_64-3.8/third_party/boringssl-with-bazel/src/crypto/pool
    creating python_build/temp.linux-x86_64-3.8/third_party/boringssl-with-bazel/src/crypto/rand_extra
    creating python_build/temp.linux-x86_64-3.8/third_party/boringssl-with-bazel/src/crypto/rc4
    creating python_build/temp.linux-x86_64-3.8/third_party/boringssl-with-bazel/src/crypto/rsa_extra
    creating python_build/temp.linux-x86_64-3.8/third_party/boringssl-with-bazel/src/crypto/siphash
    creating python_build/temp.linux-x86_64-3.8/third_party/boringssl-with-bazel/src/crypto/stack
    creating python_build/temp.linux-x86_64-3.8/third_party/boringssl-with-bazel/src/crypto/x509
    creating python_build/temp.linux-x86_64-3.8/third_party/boringssl-with-bazel/src/crypto/x509v3
    creating python_build/temp.linux-x86_64-3.8/third_party/boringssl-with-bazel/src/ssl
    creating python_build/temp.linux-x86_64-3.8/third_party/boringssl-with-bazel/src/third_party
    creating python_build/temp.linux-x86_64-3.8/third_party/boringssl-with-bazel/src/third_party/fiat
    creating python_build/temp.linux-x86_64-3.8/third_party/cares
    creating python_build/temp.linux-x86_64-3.8/third_party/cares/cares
    creating python_build/temp.linux-x86_64-3.8/third_party/upb
    creating python_build/temp.linux-x86_64-3.8/third_party/upb/upb
    creating python_build/temp.linux-x86_64-3.8/third_party/zlib
    x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -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/home/harshagoli/.cache/pypoetry/virtualenvs/ssss-OIb19DJR-py3.8/include -I/usr/include/python3.8 -c src/python/grpcio/grpc/_cython/cygrpc.cpp -o python_build/temp.linux-x86_64-3.8/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:910:10: fatal error: Python.h: No such file or directory
      910 | #include "Python.h"
          |          ^~~~~~~~~~
    compilation terminated.
    creating tmp
    creating tmp/tmpsifju9d4
    x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/harshagoli/.cache/pypoetry/virtualenvs/ssss-OIb19DJR-py3.8/include -I/usr/include/python3.8 -c /tmp/tmpsifju9d4/a.c -o tmp/tmpsifju9d4/a.o
    /tmp/tmpsifju9d4/a.c:2:10: fatal error: Python.h: No such file or directory
        2 | #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.8/distutils/unixccompiler.py", line 117, in _compile
        self.spawn(compiler_so + cc_args + [src, '-o', obj] +
      File "/tmp/pip-install-blmpju7c/grpcio/src/python/grpcio/_spawn_patch.py", line 54, in _commandfile_spawn
        _classic_spawn(self, command)
      File "/usr/lib/python3.8/distutils/ccompiler.py", line 910, in spawn
        spawn(cmd, dry_run=self.dry_run)
      File "/usr/lib/python3.8/distutils/spawn.py", line 36, in spawn
        _spawn_posix(cmd, search_path, dry_run=dry_run)
      File "/usr/lib/python3.8/distutils/spawn.py", line 157, in _spawn_posix
        raise DistutilsExecError(
    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-install-blmpju7c/grpcio/src/python/grpcio/commands.py", line 262, in build_extensions
        build_ext.build_ext.build_extensions(self)
      File "/usr/lib/python3.8/distutils/command/build_ext.py", line 449, in build_extensions
        self._build_extensions_serial()
      File "/usr/lib/python3.8/distutils/command/build_ext.py", line 474, in _build_extensions_serial
        self.build_extension(ext)
      File "/home/harshagoli/.cache/pypoetry/virtualenvs/ssss-OIb19DJR-py3.8/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 199, in build_extension
        _build_ext.build_extension(self, ext)
      File "/usr/lib/python3.8/distutils/command/build_ext.py", line 528, in build_extension
        objects = self.compiler.compile(sources,
      File "/usr/lib/python3.8/distutils/ccompiler.py", line 574, in compile
        self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
      File "/tmp/pip-install-blmpju7c/grpcio/src/python/grpcio/commands.py", line 245, in new_compile
        return old_compile(obj, src, ext, cc_args, extra_postargs,
      File "/usr/lib/python3.8/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-install-blmpju7c/grpcio/setup.py", line 384, in <module>
        setuptools.setup(
      File "/home/harshagoli/.cache/pypoetry/virtualenvs/ssss-OIb19DJR-py3.8/lib/python3.8/site-packages/setuptools/__init__.py", line 145, in setup
        return distutils.core.setup(**attrs)
      File "/usr/lib/python3.8/distutils/core.py", line 148, in setup
        dist.run_commands()
      File "/usr/lib/python3.8/distutils/dist.py", line 966, in run_commands
        self.run_command(cmd)
      File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/home/harshagoli/.cache/pypoetry/virtualenvs/ssss-OIb19DJR-py3.8/lib/python3.8/site-packages/setuptools/command/install.py", line 61, in run
        return orig.install.run(self)
      File "/usr/lib/python3.8/distutils/command/install.py", line 589, in run
        self.run_command('build')
      File "/usr/lib/python3.8/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/usr/lib/python3.8/distutils/command/build.py", line 135, in run
        self.run_command(cmd_name)
      File "/usr/lib/python3.8/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/home/harshagoli/.cache/pypoetry/virtualenvs/ssss-OIb19DJR-py3.8/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 78, in run
        _build_ext.run(self)
      File "/usr/lib/python3.8/distutils/command/build_ext.py", line 340, in run
        self.build_extensions()
      File "/tmp/pip-install-blmpju7c/grpcio/src/python/grpcio/commands.py", line 265, in build_extensions
        support.diagnose_build_ext_error(self, error, formatted_exception)
      File "/tmp/pip-install-blmpju7c/grpcio/src/python/grpcio/support.py", line 111, in diagnose_build_ext_error
        diagnostic(build_ext, error)
      File "/tmp/pip-install-blmpju7c/grpcio/src/python/grpcio/support.py", line 70, in diagnose_compile_error
        _expect_compile(build_ext.compiler, c_check, message)
      File "/tmp/pip-install-blmpju7c/grpcio/src/python/grpcio/support.py", line 62, in _expect_compile
        raise commands.CommandError(
    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 "/home/harshagoli/.cache/pypoetry/virtualenvs/ssss-OIb19DJR-py3.8/bin/python3.8 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-blmpju7c/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-35xfnf7n/install-record.txt --single-version-externally-managed --compile --install-headers /home/harshagoli/.cache/pypoetry/virtualenvs/ssss-OIb19DJR-py3.8/include/site/python3.8/grpcio" failed with error code 1 in /tmp/pip-install-blmpju7c/grpcio/
arshbot commented 4 years ago

Solveable in my case with the following

sudo apt-get install python3.8-dev