Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

grpc does not install under Python 3.8 on Windows 10 via pip #21217

Closed
wolfgang-wiedermann opened this issue Nov 15, 2019 · 9 comments
Closed

Comments

@wolfgang-wiedermann
Copy link

wolfgang-wiedermann commented Nov 15, 2019

I consistently get the following error when trying to install the package grpcio via pip using Python 3.8 on Windows 10 (german language) with an installed Visual Studio 2019.

C:\Users\username>pip install grpcio --no-cache-dir
Collecting grpcio
Downloading https://files.pythonhosted.org/packages/e4/60/40c4d2b61d9e4349bc89445deb8d04cc000b10a63446c42d311e0d21d127/grpcio-1.25.0.tar.gz (15.4MB)
|████████████████████████████████| 15.4MB 6.8MB/s
Requirement already satisfied: six>=1.5.2 in c:\python\python38\lib\site-packages (from grpcio) (1.13.0)
Installing collected packages: grpcio
Running setup.py install for grpcio ... / WARNING: Subprocess output does not appear to be encoded as cp1252 error
ERROR: Command errored out with exit status 1:
command: 'c:\python\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\username\AppData\Local\Temp\pip-install-tmko33o7\grpcio\setup.py'"'"'; file='"'"'C:\Users\username\AppData\Local\Temp\pip-install-tmko33o7\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 'C:\Users\username\AppData\Local\Temp\pip-record-18vroo8h\install-record.txt' --single-version-externally-managed --compile
cwd: C:\Users\username\AppData\Local\Temp\pip-install-tmko33o7\grpcio
Complete output (353 lines):
Found cython-generated files...
running install
running build
running build_py
running build_project_metadata
creating python_build
creating python_build\lib.win32-3.8
creating python_build\lib.win32-3.8\grpc
copying src\python\grpcio\grpc_auth.py -> python_build\lib.win32-3.8\grpc
copying src\python\grpcio\grpc_channel.py -> python_build\lib.win32-3.8\grpc
copying src\python\grpcio\grpc_common.py -> python_build\lib.win32-3.8\grpc
copying src\python\grpcio\grpc_compression.py -> python_build\lib.win32-3.8\grpc
copying src\python\grpcio\grpc_grpcio_metadata.py -> python_build\lib.win32-3.8\grpc
copying src\python\grpcio\grpc_interceptor.py -> python_build\lib.win32-3.8\grpc
copying src\python\grpcio\grpc_plugin_wrapping.py -> python_build\lib.win32-3.8\grpc
copying src\python\grpcio\grpc_server.py -> python_build\lib.win32-3.8\grpc
copying src\python\grpcio\grpc_utilities.py -> python_build\lib.win32-3.8\grpc
copying src\python\grpcio\grpc_init_.py -> python_build\lib.win32-3.8\grpc
creating python_build\lib.win32-3.8\grpc\beta
copying src\python\grpcio\grpc\beta\implementations.py -> python_build\lib.win32-3.8\grpc\beta
copying src\python\grpcio\grpc\beta\interfaces.py -> python_build\lib.win32-3.8\grpc\beta
copying src\python\grpcio\grpc\beta\utilities.py -> python_build\lib.win32-3.8\grpc\beta
copying src\python\grpcio\grpc\beta_client_adaptations.py -> python_build\lib.win32-3.8\grpc\beta
copying src\python\grpcio\grpc\beta_metadata.py -> python_build\lib.win32-3.8\grpc\beta
copying src\python\grpcio\grpc\beta_server_adaptations.py -> python_build\lib.win32-3.8\grpc\beta
copying src\python\grpcio\grpc\beta_init_.py -> python_build\lib.win32-3.8\grpc\beta
creating python_build\lib.win32-3.8\grpc\experimental
copying src\python\grpcio\grpc\experimental\gevent.py -> python_build\lib.win32-3.8\grpc\experimental
copying src\python\grpcio\grpc\experimental\session_cache.py -> python_build\lib.win32-3.8\grpc\experimental
copying src\python\grpcio\grpc\experimental_init_.py -> python_build\lib.win32-3.8\grpc\experimental
creating python_build\lib.win32-3.8\grpc\framework
copying src\python\grpcio\grpc\framework_init_.py -> python_build\lib.win32-3.8\grpc\framework
creating python_build\lib.win32-3.8\grpc_cython
copying src\python\grpcio\grpc_cython_init_.py -> python_build\lib.win32-3.8\grpc_cython
creating python_build\lib.win32-3.8\grpc\experimental\aio
copying src\python\grpcio\grpc\experimental\aio_channel.py -> python_build\lib.win32-3.8\grpc\experimental\aio
copying src\python\grpcio\grpc\experimental\aio_server.py -> python_build\lib.win32-3.8\grpc\experimental\aio
copying src\python\grpcio\grpc\experimental\aio_init_.py -> python_build\lib.win32-3.8\grpc\experimental\aio
creating python_build\lib.win32-3.8\grpc\framework\common
copying src\python\grpcio\grpc\framework\common\cardinality.py -> python_build\lib.win32-3.8\grpc\framework\common
copying src\python\grpcio\grpc\framework\common\style.py -> python_build\lib.win32-3.8\grpc\framework\common
copying src\python\grpcio\grpc\framework\common_init_.py -> python_build\lib.win32-3.8\grpc\framework\common
creating python_build\lib.win32-3.8\grpc\framework\foundation
copying src\python\grpcio\grpc\framework\foundation\abandonment.py -> python_build\lib.win32-3.8\grpc\framework\foundation
copying src\python\grpcio\grpc\framework\foundation\callable_util.py -> python_build\lib.win32-3.8\grpc\framework\foundation
copying src\python\grpcio\grpc\framework\foundation\future.py -> python_build\lib.win32-3.8\grpc\framework\foundation
copying src\python\grpcio\grpc\framework\foundation\logging_pool.py -> python_build\lib.win32-3.8\grpc\framework\foundation
copying src\python\grpcio\grpc\framework\foundation\stream.py -> python_build\lib.win32-3.8\grpc\framework\foundation
copying src\python\grpcio\grpc\framework\foundation\stream_util.py -> python_build\lib.win32-3.8\grpc\framework\foundation
copying src\python\grpcio\grpc\framework\foundation_init_.py -> python_build\lib.win32-3.8\grpc\framework\foundation
creating python_build\lib.win32-3.8\grpc\framework\interfaces
copying src\python\grpcio\grpc\framework\interfaces_init_.py -> python_build\lib.win32-3.8\grpc\framework\interfaces
creating python_build\lib.win32-3.8\grpc\framework\interfaces\base
copying src\python\grpcio\grpc\framework\interfaces\base\base.py -> python_build\lib.win32-3.8\grpc\framework\interfaces\base
copying src\python\grpcio\grpc\framework\interfaces\base\utilities.py -> python_build\lib.win32-3.8\grpc\framework\interfaces\base
copying src\python\grpcio\grpc\framework\interfaces\base_init_.py -> python_build\lib.win32-3.8\grpc\framework\interfaces\base
creating python_build\lib.win32-3.8\grpc\framework\interfaces\face
copying src\python\grpcio\grpc\framework\interfaces\face\face.py -> python_build\lib.win32-3.8\grpc\framework\interfaces\face
copying src\python\grpcio\grpc\framework\interfaces\face\utilities.py -> python_build\lib.win32-3.8\grpc\framework\interfaces\face
copying src\python\grpcio\grpc\framework\interfaces\face_init_.py -> python_build\lib.win32-3.8\grpc\framework\interfaces\face
creating python_build\lib.win32-3.8\grpc_cython_cygrpc
copying src\python\grpcio\grpc_cython_cygrpc_init_.py -> python_build\lib.win32-3.8\grpc_cython_cygrpc
creating python_build\lib.win32-3.8\grpc_cython_credentials
copying src\python\grpcio\grpc_cython_credentials\roots.pem -> python_build\lib.win32-3.8\grpc_cython_credentials
running build_ext
Found cython-generated files...
building 'grpc._cython.cygrpc' extension
creating python_build\temp.win32-3.8
creating python_build\temp.win32-3.8\Release
creating python_build\temp.win32-3.8\Release\src
creating python_build\temp.win32-3.8\Release\src\python
creating python_build\temp.win32-3.8\Release\src\python\grpcio
creating python_build\temp.win32-3.8\Release\src\python\grpcio\grpc
creating python_build\temp.win32-3.8\Release\src\python\grpcio\grpc_cython
creating python_build\temp.win32-3.8\Release\third_party
creating python_build\temp.win32-3.8\Release\third_party\address_sorting
creating python_build\temp.win32-3.8\Release\src\core
creating python_build\temp.win32-3.8\Release\src\core\lib
creating python_build\temp.win32-3.8\Release\src\core\lib\gpr
creating python_build\temp.win32-3.8\Release\src\core\lib\gprpp
creating python_build\temp.win32-3.8\Release\src\core\lib\profiling
creating python_build\temp.win32-3.8\Release\src\core\lib\surface
creating python_build\temp.win32-3.8\Release\src\core\lib\avl
creating python_build\temp.win32-3.8\Release\src\core\lib\backoff
creating python_build\temp.win32-3.8\Release\src\core\lib\channel
creating python_build\temp.win32-3.8\Release\src\core\lib\compression
creating python_build\temp.win32-3.8\Release\src\core\lib\debug
creating python_build\temp.win32-3.8\Release\src\core\lib\http
creating python_build\temp.win32-3.8\Release\src\core\lib\iomgr
creating python_build\temp.win32-3.8\Release\src\core\lib\iomgr\executor
creating python_build\temp.win32-3.8\Release\src\core\lib\json
creating python_build\temp.win32-3.8\Release\src\core\lib\slice
creating python_build\temp.win32-3.8\Release\src\core\lib\transport
creating python_build\temp.win32-3.8\Release\src\core\lib\uri
creating python_build\temp.win32-3.8\Release\src\core\ext
creating python_build\temp.win32-3.8\Release\src\core\ext\transport
creating python_build\temp.win32-3.8\Release\src\core\ext\transport\chttp2
creating python_build\temp.win32-3.8\Release\src\core\ext\transport\chttp2\server
creating python_build\temp.win32-3.8\Release\src\core\ext\transport\chttp2\server\secure
creating python_build\temp.win32-3.8\Release\src\core\ext\transport\chttp2\transport
creating python_build\temp.win32-3.8\Release\src\core\ext\transport\chttp2\alpn
creating python_build\temp.win32-3.8\Release\src\core\ext\filters
creating python_build\temp.win32-3.8\Release\src\core\ext\filters\http
creating python_build\temp.win32-3.8\Release\src\core\ext\filters\http\client
creating python_build\temp.win32-3.8\Release\src\core\ext\filters\http\message_compress
creating python_build\temp.win32-3.8\Release\src\core\ext\filters\http\server
creating python_build\temp.win32-3.8\Release\src\core\lib\security
creating python_build\temp.win32-3.8\Release\src\core\lib\security\context
creating python_build\temp.win32-3.8\Release\src\core\lib\security\credentials
creating python_build\temp.win32-3.8\Release\src\core\lib\security\credentials\alts
creating python_build\temp.win32-3.8\Release\src\core\lib\security\credentials\composite
creating python_build\temp.win32-3.8\Release\src\core\lib\security\credentials\fake
creating python_build\temp.win32-3.8\Release\src\core\lib\security\credentials\google_default
creating python_build\temp.win32-3.8\Release\src\core\lib\security\credentials\iam
creating python_build\temp.win32-3.8\Release\src\core\lib\security\credentials\jwt
creating python_build\temp.win32-3.8\Release\src\core\lib\security\credentials\local
creating python_build\temp.win32-3.8\Release\src\core\lib\security\credentials\oauth2
creating python_build\temp.win32-3.8\Release\src\core\lib\security\credentials\plugin
creating python_build\temp.win32-3.8\Release\src\core\lib\security\credentials\ssl
creating python_build\temp.win32-3.8\Release\src\core\lib\security\credentials\tls
creating python_build\temp.win32-3.8\Release\src\core\lib\security\security_connector
creating python_build\temp.win32-3.8\Release\src\core\lib\security\security_connector\alts
creating python_build\temp.win32-3.8\Release\src\core\lib\security\security_connector\fake
creating python_build\temp.win32-3.8\Release\src\core\lib\security\security_connector\local
creating python_build\temp.win32-3.8\Release\src\core\lib\security\security_connector\ssl
creating python_build\temp.win32-3.8\Release\src\core\lib\security\security_connector\tls
creating python_build\temp.win32-3.8\Release\src\core\lib\security\transport
creating python_build\temp.win32-3.8\Release\src\core\lib\security\util
creating python_build\temp.win32-3.8\Release\src\core\tsi
creating python_build\temp.win32-3.8\Release\src\core\tsi\alts
creating python_build\temp.win32-3.8\Release\src\core\tsi\alts\crypt
creating python_build\temp.win32-3.8\Release\src\core\tsi\alts\frame_protector
creating python_build\temp.win32-3.8\Release\src\core\tsi\alts\handshaker
creating python_build\temp.win32-3.8\Release\src\core\tsi\alts\zero_copy_frame_protector
creating python_build\temp.win32-3.8\Release\src\core\ext\upb-generated
creating python_build\temp.win32-3.8\Release\src\core\ext\upb-generated\src
creating python_build\temp.win32-3.8\Release\src\core\ext\upb-generated\src\proto
creating python_build\temp.win32-3.8\Release\src\core\ext\upb-generated\src\proto\grpc
creating python_build\temp.win32-3.8\Release\src\core\ext\upb-generated\src\proto\grpc\gcp
creating python_build\temp.win32-3.8\Release\third_party\upb
creating python_build\temp.win32-3.8\Release\third_party\upb\upb
creating python_build\temp.win32-3.8\Release\src\core\ext\transport\chttp2\client
creating python_build\temp.win32-3.8\Release\src\core\ext\transport\chttp2\client\insecure
creating python_build\temp.win32-3.8\Release\src\core\ext\filters\client_channel
creating python_build\temp.win32-3.8\Release\src\core\ext\filters\client_channel\health
creating python_build\temp.win32-3.8\Release\src\core\ext\filters\deadline
creating python_build\temp.win32-3.8\Release\src\core\ext\upb-generated\src\proto\grpc\health
creating python_build\temp.win32-3.8\Release\src\core\ext\upb-generated\src\proto\grpc\health\v1
creating python_build\temp.win32-3.8\Release\src\core\ext\upb-generated\udpa
creating python_build\temp.win32-3.8\Release\src\core\ext\upb-generated\udpa\data
creating python_build\temp.win32-3.8\Release\src\core\ext\upb-generated\udpa\data\orca
creating python_build\temp.win32-3.8\Release\src\core\ext\upb-generated\udpa\data\orca\v1
creating python_build\temp.win32-3.8\Release\src\core\ext\upb-generated\gogoproto
creating python_build\temp.win32-3.8\Release\src\core\ext\upb-generated\validate
creating python_build\temp.win32-3.8\Release\src\core\ext\upb-generated\google
creating python_build\temp.win32-3.8\Release\src\core\ext\upb-generated\google\api
creating python_build\temp.win32-3.8\Release\src\core\ext\upb-generated\google\protobuf
creating python_build\temp.win32-3.8\Release\src\core\ext\upb-generated\google\rpc
creating python_build\temp.win32-3.8\Release\src\core\tsi\ssl
creating python_build\temp.win32-3.8\Release\src\core\tsi\ssl\session_cache
creating python_build\temp.win32-3.8\Release\src\core\ext\transport\chttp2\client\secure
creating python_build\temp.win32-3.8\Release\src\core\ext\transport\chttp2\server\insecure
creating python_build\temp.win32-3.8\Release\src\core\ext\transport\inproc
creating python_build\temp.win32-3.8\Release\src\core\ext\filters\client_channel\lb_policy
creating python_build\temp.win32-3.8\Release\src\core\ext\filters\client_channel\lb_policy\grpclb
creating python_build\temp.win32-3.8\Release\src\core\ext\upb-generated\src\proto\grpc\lb
creating python_build\temp.win32-3.8\Release\src\core\ext\upb-generated\src\proto\grpc\lb\v1
creating python_build\temp.win32-3.8\Release\src\core\ext\filters\client_channel\resolver
creating python_build\temp.win32-3.8\Release\src\core\ext\filters\client_channel\resolver\fake
creating python_build\temp.win32-3.8\Release\src\core\ext\filters\client_channel\lb_policy\xds
creating python_build\temp.win32-3.8\Release\src\core\ext\filters\client_channel\xds
creating python_build\temp.win32-3.8\Release\src\core\ext\upb-generated\envoy
creating python_build\temp.win32-3.8\Release\src\core\ext\upb-generated\envoy\api
creating python_build\temp.win32-3.8\Release\src\core\ext\upb-generated\envoy\api\v2
creating python_build\temp.win32-3.8\Release\src\core\ext\upb-generated\envoy\api\v2\auth
creating python_build\temp.win32-3.8\Release\src\core\ext\upb-generated\envoy\api\v2\cluster
creating python_build\temp.win32-3.8\Release\src\core\ext\upb-generated\envoy\api\v2\endpoint
creating python_build\temp.win32-3.8\Release\src\core\ext\upb-generated\envoy\service
creating python_build\temp.win32-3.8\Release\src\core\ext\upb-generated\envoy\service\discovery
creating python_build\temp.win32-3.8\Release\src\core\ext\upb-generated\envoy\service\discovery\v2
creating python_build\temp.win32-3.8\Release\src\core\ext\upb-generated\envoy\service\load_stats
creating python_build\temp.win32-3.8\Release\src\core\ext\upb-generated\envoy\service\load_stats\v2
creating python_build\temp.win32-3.8\Release\src\core\ext\upb-generated\envoy\api\v2\core
creating python_build\temp.win32-3.8\Release\src\core\ext\upb-generated\envoy\type
creating python_build\temp.win32-3.8\Release\src\core\ext\filters\client_channel\lb_policy\pick_first
creating python_build\temp.win32-3.8\Release\src\core\ext\filters\client_channel\lb_policy\round_robin
creating python_build\temp.win32-3.8\Release\src\core\ext\filters\client_channel\resolver\dns
creating python_build\temp.win32-3.8\Release\src\core\ext\filters\client_channel\resolver\dns\c_ares
creating python_build\temp.win32-3.8\Release\src\core\ext\filters\client_channel\resolver\dns\native
creating python_build\temp.win32-3.8\Release\src\core\ext\filters\client_channel\resolver\sockaddr
creating python_build\temp.win32-3.8\Release\src\core\ext\filters\client_channel\resolver\xds
creating python_build\temp.win32-3.8\Release\src\core\ext\filters\census
creating python_build\temp.win32-3.8\Release\src\core\ext\filters\client_idle
creating python_build\temp.win32-3.8\Release\src\core\ext\filters\max_age
creating python_build\temp.win32-3.8\Release\src\core\ext\filters\message_size
creating python_build\temp.win32-3.8\Release\src\core\ext\filters\workarounds
creating python_build\temp.win32-3.8\Release\src\core\plugin_registry
creating python_build\temp.win32-3.8\Release\src\boringssl
creating python_build\temp.win32-3.8\Release\third_party\boringssl
creating python_build\temp.win32-3.8\Release\third_party\boringssl\crypto
creating python_build\temp.win32-3.8\Release\third_party\boringssl\crypto\asn1
creating python_build\temp.win32-3.8\Release\third_party\boringssl\crypto\base64
creating python_build\temp.win32-3.8\Release\third_party\boringssl\crypto\bio
creating python_build\temp.win32-3.8\Release\third_party\boringssl\crypto\bn_extra
creating python_build\temp.win32-3.8\Release\third_party\boringssl\crypto\buf
creating python_build\temp.win32-3.8\Release\third_party\boringssl\crypto\bytestring
creating python_build\temp.win32-3.8\Release\third_party\boringssl\crypto\chacha
creating python_build\temp.win32-3.8\Release\third_party\boringssl\crypto\cipher_extra
creating python_build\temp.win32-3.8\Release\third_party\boringssl\crypto\cmac
creating python_build\temp.win32-3.8\Release\third_party\boringssl\crypto\conf
creating python_build\temp.win32-3.8\Release\third_party\boringssl\crypto\curve25519
creating python_build\temp.win32-3.8\Release\third_party\boringssl\crypto\dh
creating python_build\temp.win32-3.8\Release\third_party\boringssl\crypto\digest_extra
creating python_build\temp.win32-3.8\Release\third_party\boringssl\crypto\dsa
creating python_build\temp.win32-3.8\Release\third_party\boringssl\crypto\ec_extra
creating python_build\temp.win32-3.8\Release\third_party\boringssl\crypto\ecdh_extra
creating python_build\temp.win32-3.8\Release\third_party\boringssl\crypto\ecdsa_extra
creating python_build\temp.win32-3.8\Release\third_party\boringssl\crypto\engine
creating python_build\temp.win32-3.8\Release\third_party\boringssl\crypto\err
creating python_build\temp.win32-3.8\Release\third_party\boringssl\crypto\evp
creating python_build\temp.win32-3.8\Release\third_party\boringssl\crypto\fipsmodule
creating python_build\temp.win32-3.8\Release\third_party\boringssl\crypto\hkdf
creating python_build\temp.win32-3.8\Release\third_party\boringssl\crypto\hrss
creating python_build\temp.win32-3.8\Release\third_party\boringssl\crypto\lhash
creating python_build\temp.win32-3.8\Release\third_party\boringssl\crypto\obj
creating python_build\temp.win32-3.8\Release\third_party\boringssl\crypto\pem
creating python_build\temp.win32-3.8\Release\third_party\boringssl\crypto\pkcs7
creating python_build\temp.win32-3.8\Release\third_party\boringssl\crypto\pkcs8
creating python_build\temp.win32-3.8\Release\third_party\boringssl\crypto\poly1305
creating python_build\temp.win32-3.8\Release\third_party\boringssl\crypto\pool
creating python_build\temp.win32-3.8\Release\third_party\boringssl\crypto\rand_extra
creating python_build\temp.win32-3.8\Release\third_party\boringssl\crypto\rc4
creating python_build\temp.win32-3.8\Release\third_party\boringssl\crypto\rsa_extra
creating python_build\temp.win32-3.8\Release\third_party\boringssl\crypto\siphash
creating python_build\temp.win32-3.8\Release\third_party\boringssl\crypto\stack
creating python_build\temp.win32-3.8\Release\third_party\boringssl\crypto\x509
creating python_build\temp.win32-3.8\Release\third_party\boringssl\crypto\x509v3
creating python_build\temp.win32-3.8\Release\third_party\boringssl\ssl
creating python_build\temp.win32-3.8\Release\third_party\boringssl\third_party
creating python_build\temp.win32-3.8\Release\third_party\boringssl\third_party\fiat
creating python_build\temp.win32-3.8\Release\third_party\zlib
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DOPENSSL_NO_ASM=1 -D_WIN32_WINNT=1536 -DGPR_BACKWARDS_COMPATIBILITY_MODE=1 -DWIN32_LEAN_AND_MEAN=1 -DCARES_STATICLIB=1 -DGRPC_ARES=0 -DNTDDI_VERSION=100663296 -DNOMINMAX=1 -DNTDDI_VERSION=100663296 -Isrc\python\grpcio -Iinclude -I. -Ithird_party\address_sorting\include -Ithird_party\cares -Ithird_party\cares\cares -Ithird_party\boringssl\include -Ithird_party\upb -Isrc\core\ext\upb-generated -Ithird_party\zlib -Ic:\python\python38\include -Ic:\python\python38\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.7.2\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /EHsc /Tpsrc\python\grpcio\grpc/_cython/cygrpc.cpp /Fopython_build\temp.win32-3.8\Release\src\python\grpcio\grpc/_cython/cygrpc.obj -std=c++11 /MT
cl : Befehlszeile warning D9025 : "/MD" wird durch "/MT" \x81berschrieben
cl : Befehlszeile warning D9002 : Unbekannte Option "-std=c++11" wird ignoriert.
cygrpc.cpp
src\python\grpcio\grpc/_cython/cygrpc.cpp(1475): fatal error C1083: Datei (Include) kann nicht ge”ffnet werden: "pthread.h": No such file or directory
creating Users
creating Users\username
creating Users\username\AppData
creating Users\username\AppData\Local
creating Users\username\AppData\Local\Temp
creating Users\username\AppData\Local\Temp\tmpxc626617
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\python\python38\include -Ic:\python\python38\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.7.2\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /TcC:\Users\username\AppData\Local\Temp\tmpxc626617\a.c /FoUsers\username\AppData\Local\Temp\tmpxc626617\a.obj
a.c
Traceback (most recent call last):
File "c:\python\python38\lib\distutils_msvccompiler.py", line 438, in compile
self.spawn(args)
File "c:\python\python38\lib\distutils_msvccompiler.py", line 557, in spawn
return super().spawn(cmd)
File "C:\Users\username\AppData\Local\Temp\pip-install-tmko33o7\grpcio\src\python\grpcio_spawn_patch.py", line 54, in _commandfile_spawn
_classic_spawn(self, command)
File "c:\python\python38\lib\distutils\ccompiler.py", line 910, in spawn
spawn(cmd, dry_run=self.dry_run)
File "c:\python\python38\lib\distutils\spawn.py", line 38, in spawn
_spawn_nt(cmd, search_path, dry_run=dry_run)
File "c:\python\python38\lib\distutils\spawn.py", line 80, in _spawn_nt
raise DistutilsExecError(
distutils.errors.DistutilsExecError: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\HostX86\x86\cl.exe' failed with exit status 2

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\username\AppData\Local\Temp\pip-install-tmko33o7\grpcio\src\python\grpcio\commands.py", line 262, in build_extensions
    build_ext.build_ext.build_extensions(self)
  File "c:\python\python38\lib\distutils\command\build_ext.py", line 449, in build_extensions
    self._build_extensions_serial()
  File "c:\python\python38\lib\distutils\command\build_ext.py", line 474, in _build_extensions_serial
    self.build_extension(ext)
  File "c:\python\python38\lib\site-packages\setuptools\command\build_ext.py", line 205, in build_extension
    _build_ext.build_extension(self, ext)
  File "c:\python\python38\lib\distutils\command\build_ext.py", line 528, in build_extension
    objects = self.compiler.compile(sources,
  File "c:\python\python38\lib\distutils\_msvccompiler.py", line 440, in compile
    raise CompileError(msg)
distutils.errors.CompileError: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\VC\\Tools\\MSVC\\14.22.27905\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Users\username\AppData\Local\Temp\pip-install-tmko33o7\grpcio\setup.py", line 384, in <module>
    setuptools.setup(
  File "c:\python\python38\lib\site-packages\setuptools\__init__.py", line 145, in setup
    return distutils.core.setup(**attrs)
  File "c:\python\python38\lib\distutils\core.py", line 148, in setup
    dist.run_commands()
  File "c:\python\python38\lib\distutils\dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "c:\python\python38\lib\distutils\dist.py", line 985, in run_command
    cmd_obj.run()
  File "c:\python\python38\lib\site-packages\setuptools\command\install.py", line 61, in run
    return orig.install.run(self)
  File "c:\python\python38\lib\distutils\command\install.py", line 545, in run
    self.run_command('build')
  File "c:\python\python38\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "c:\python\python38\lib\distutils\dist.py", line 985, in run_command
    cmd_obj.run()
  File "c:\python\python38\lib\distutils\command\build.py", line 135, in run
    self.run_command(cmd_name)
  File "c:\python\python38\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "c:\python\python38\lib\distutils\dist.py", line 985, in run_command
    cmd_obj.run()
  File "c:\python\python38\lib\site-packages\setuptools\command\build_ext.py", line 84, in run
    _build_ext.run(self)
  File "c:\python\python38\lib\distutils\command\build_ext.py", line 340, in run
    self.build_extensions()
  File "C:\Users\username\AppData\Local\Temp\pip-install-tmko33o7\grpcio\src\python\grpcio\commands.py", line 266, in build_extensions
    raise CommandError(
commands.CommandError: Failed `build_ext` step:
Traceback (most recent call last):
  File "c:\python\python38\lib\distutils\_msvccompiler.py", line 438, in compile
    self.spawn(args)
  File "c:\python\python38\lib\distutils\_msvccompiler.py", line 557, in spawn
    return super().spawn(cmd)
  File "C:\Users\username\AppData\Local\Temp\pip-install-tmko33o7\grpcio\src\python\grpcio\_spawn_patch.py", line 54, in _commandfile_spawn
    _classic_spawn(self, command)
  File "c:\python\python38\lib\distutils\ccompiler.py", line 910, in spawn
    spawn(cmd, dry_run=self.dry_run)
  File "c:\python\python38\lib\distutils\spawn.py", line 38, in spawn
    _spawn_nt(cmd, search_path, dry_run=dry_run)
  File "c:\python\python38\lib\distutils\spawn.py", line 80, in _spawn_nt
    raise DistutilsExecError(
distutils.errors.DistutilsExecError: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\VC\\Tools\\MSVC\\14.22.27905\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\username\AppData\Local\Temp\pip-install-tmko33o7\grpcio\src\python\grpcio\commands.py", line 262, in build_extensions
    build_ext.build_ext.build_extensions(self)
  File "c:\python\python38\lib\distutils\command\build_ext.py", line 449, in build_extensions
    self._build_extensions_serial()
  File "c:\python\python38\lib\distutils\command\build_ext.py", line 474, in _build_extensions_serial
    self.build_extension(ext)
  File "c:\python\python38\lib\site-packages\setuptools\command\build_ext.py", line 205, in build_extension
    _build_ext.build_extension(self, ext)
  File "c:\python\python38\lib\distutils\command\build_ext.py", line 528, in build_extension
    objects = self.compiler.compile(sources,
  File "c:\python\python38\lib\distutils\_msvccompiler.py", line 440, in compile
    raise CompileError(msg)
distutils.errors.CompileError: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\VC\\Tools\\MSVC\\14.22.27905\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2

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

ERROR: Command errored out with exit status 1: 'c:\python\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\username\AppData\Local\Temp\pip-install-tmko33o7\grpcio\setup.py'"'"'; file='"'"'C:\Users\username\AppData\Local\Temp\pip-install-tmko33o7\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 'C:\Users\username\AppData\Local\Temp\pip-record-18vroo8h\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.

@wolfgang-wiedermann
Copy link
Author

by the way: my exact python version is 3.8.0 and my pip version is 19.3.1

@wolfgang-wiedermann
Copy link
Author

On the same machine grpc works fine for python 3.6.4

@lidizheng
Copy link
Contributor

lidizheng commented Nov 15, 2019

There is an issue tracking this request #20615. gRPC Python is planning to release pre-compiled wheels to help Windows users build.

@gnossen
Copy link
Contributor

gnossen commented Dec 5, 2019

1.26.0rc1 just went live with 3.8 binaries for both MacOS and Windows thanks to @lidizheng.

Check out the full release page for more details.

@gnossen gnossen closed this as completed Dec 5, 2019
@hadim
Copy link

hadim commented Dec 6, 2019

I am trying to compile grpcio for the conda forge package and I am running into the same error for the Windows build:

  D:\bld\grpcio_1573021347641\_h_env\Library\mingw-w64\bin\gcc.exe -mdll -O -Wall -DMS_WIN64 -DOPENSSL_NO_ASM=1 -D_WIN32_WINNT=1536 -DGPR_BACKWARDS_COMPATIBILITY_MODE=1 -DWIN32_LEAN_AND_MEAN=1 -DCARES_STATICLIB=1 -DGRPC_ARES=0 -DNTDDI_VERSION=100663296 -DNOMINMAX=1 -DMS_WIN64=1 -Isrc\python\grpcio -Iinclude -I. -Ithird_party\address_sorting\include -Ithird_party\cares -Ithird_party\cares\cares -I/usr\include\openssl -Ithird_party\upb -Isrc\core\ext\upb-generated -I/usr\include -ID:\bld\grpcio_1573021347641\_h_env\Library\include -ID:\bld\grpcio_1573021347641\_h_env\include -ID:\bld\grpcio_1573021347641\_h_env\include -c src\python\grpcio\grpc/_cython/cygrpc.cpp -o python_build\temp.win-amd64-3.6\Release\src\python\grpcio\grpc\_cython\cygrpc.o -std=c++11 /MT
    gcc: error: /MT: No such file or directory

Here is how the package is built: https://github.com/conda-forge/grpcio-feedstock/blob/master/recipe/bld.bat as indicated in your documentation.

Did the build system change for Python?

(also let me know if I should open a new issue for this)

@tswast
Copy link

tswast commented Dec 16, 2019

Re: changed build steps (#21217 (comment))

I've filed an internal issue 146345011 for the gRPC team at Google to investigate this.

@lidizheng
Copy link
Contributor

@hadim Please open a new issue. For most users, the pre-compiled wheels are enough to solve the installation problem. However, compiling with Conda on Windows is something different.

We did add several new lines to build 3.8 wheels, and Core is introducing new dependencies, but not sure how that affected Conda. I wonder if Conda is building with 3.8 on Windows before, and recently broken? Or you are trying to add a new build?

Different CI has different settings, can you check the installation of Visual Studio 14.X (see Windows Compilers for Python)? Due to the complexity of this task, we might need your help to solve this problem.

@wolfgang-wiedermann
Copy link
Author

With the current grpc version the Error still exists.

Using the estimated release candidate 1.26.0.rc1 installation aof grpc works without errors

C:\Python\Python38\python.exe -m pip install grpcio==1.26.0rc1 --no-cache-dir

With that library installed, i was also able to install the etcd3 library which i wanted to use.

@hadim
Copy link

hadim commented Jan 6, 2020

@lidizheng : see #21591

@lock lock bot locked as resolved and limited conversation to collaborators Apr 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants