Please Help, Generating PHP Client files issue HelloWorld

100 views
Skip to first unread message

Evan McCall

unread,
Jul 13, 2021, 3:08:30 PM7/13/21
to grpc.io
I can't seem to generate client files from a .proto for PHP

I've followed the steps in:
Working thru the HelloWorld example:
I am unable to generate client files using the command:
protoc --proto_path=./ --php_out=php/ --grpc_out=php/ --plugin=protoc-gen-grpc=C:\Protoc\bin\protoc-gen-php-grpc.exe helloworld.proto

I get the files:
  • GreeterInterface
  • HelloReply
  • HelloRequest

I couldn't generate the php module using CMake or Bazel. I downloaded rr-grpc and protoc-gen-php-grpc from pre-build binaries via https://github.com/spiral/php-grpc

C:\Protoc\bin Folder Contains
  • protoc
  • protoc-gen-php-grpc
Tried to compile all grpc modules using: bazel --output_user_root Machine build @com_google_protobuf//:protoc //src/compiler:all
Output from trying to compiile using Bazel:
D:\GitHub\grpc\examples\php>bazel build @com_google_protobuf//:protoc //src/compiler:all --output_user_root Machine
WARNING: Output user root "C:/Users/Evan McCall/_bazel_Evan McCall" contains a space. This will probably break the build. You should set a different --output_user_root.
ERROR: --output_user_root :: Unrecognized option: --output_user_root

D:\GitHub\grpc\examples\php>bazel --output_user_root Machine build @com_google_protobuf//:protoc //src/compiler:all
Extracting Bazel installation...
Starting local Bazel server and connecting to it...
DEBUG: D:/github/grpc/examples/php/machine/okcq7uzq/external/bazel_toolchains/rules/rbe_repo/version_check.bzl:68:14:
Current running Bazel is ahead of bazel-toolchains repo. Please update your pin to bazel-toolchains repo in your WORKSPACE file.
DEBUG: D:/github/grpc/examples/php/machine/okcq7uzq/external/bazel_toolchains/rules/rbe_repo/checked_in.bzl:125:14: rbe_default not using checked in configs; Bazel version 4.1.0 was picked/selected but no checked in config was found in map {"0.20.0": ["8.0.0"], "0.21.0": ["8.0.0"], "0.22.0": ["8.0.0", "9.0.0"], "0.23.0": ["8.0.0", "9.0.0"], "0.23.1": ["8.0.0", "9.0.0"], "0.23.2": ["9.0.0"], "0.24.0": ["9.0.0"], "0.24.1": ["9.0.0"], "0.25.0": ["9.0.0"], "0.25.1": ["9.0.0"], "0.25.2": ["9.0.0"], "0.26.0": ["9.0.0"], "0.26.1": ["9.0.0"], "0.27.0": ["9.0.0"], "0.27.1": ["9.0.0"], "0.28.0": ["9.0.0"], "0.28.1": ["9.0.0"], "0.29.0": ["9.0.0"], "0.29.1": ["9.0.0", "10.0.0"], "1.0.0": ["9.0.0", "10.0.0"]}
DEBUG: D:/github/grpc/examples/php/machine/okcq7uzq/external/bazel_toolchains/rules/rbe_repo/version_check.bzl:68:14:
Current running Bazel is ahead of bazel-toolchains repo. Please update your pin to bazel-toolchains repo in your WORKSPACE file.
DEBUG: D:/github/grpc/examples/php/machine/okcq7uzq/external/bazel_toolchains/rules/rbe_repo/checked_in.bzl:125:14: rbe_msan not using checked in configs; Bazel version 4.1.0 was picked/selected but no checked in config was found in map {"0.20.0": ["8.0.0"], "0.21.0": ["8.0.0"], "0.22.0": ["8.0.0", "9.0.0"], "0.23.0": ["8.0.0", "9.0.0"], "0.23.1": ["8.0.0", "9.0.0"], "0.23.2": ["9.0.0"], "0.24.0": ["9.0.0"], "0.24.1": ["9.0.0"], "0.25.0": ["9.0.0"], "0.25.1": ["9.0.0"], "0.25.2": ["9.0.0"], "0.26.0": ["9.0.0"], "0.26.1": ["9.0.0"], "0.27.0": ["9.0.0"], "0.27.1": ["9.0.0"], "0.28.0": ["9.0.0"], "0.28.1": ["9.0.0"], "0.29.0": ["9.0.0"], "0.29.1": ["9.0.0", "10.0.0"], "1.0.0": ["9.0.0", "10.0.0"]}
INFO: Repository grpc_python_dependencies instantiated at:
  D:/github/grpc/WORKSPACE:86:11: in <toplevel>
Repository rule pip_import defined at:
  D:/github/grpc/examples/php/machine/okcq7uzq/external/io_bazel_rules_python/python/pip.bzl:42:29: in <toplevel>
ERROR: An error occurred during the fetch of repository 'grpc_python_dependencies':
   Traceback (most recent call last):
        File "D:/github/grpc/examples/php/machine/okcq7uzq/external/io_bazel_rules_python/python/pip.bzl", line 40, column 13, in _pip_import_impl
                fail("pip_import failed: %s (%s)" % (result.stdout, result.stderr))
Error in fail: pip_import failed: Collecting coverage==4.5.4 (from -r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 2))
  Saved d:\github\grpc\examples\php\machine\okcq7uzq\external\grpc_python_dependencies\coverage-4.5.4-cp36-cp36m-win_amd64.whl
Collecting cython==0.29.21 (from -r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 3))
  Saved d:\github\grpc\examples\php\machine\okcq7uzq\external\grpc_python_dependencies\cython-0.29.21-cp36-cp36m-win_amd64.whl
Collecting enum34==1.1.10 (from -r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 4))
  Saved d:\github\grpc\examples\php\machine\okcq7uzq\external\grpc_python_dependencies\enum34-1.1.10-py3-none-any.whl
Collecting protobuf<4.0dev,>=3.5.0.post1 (from -r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 5))
  Saved d:\github\grpc\examples\php\machine\okcq7uzq\external\grpc_python_dependencies\protobuf-3.17.3-cp36-cp36m-win_amd64.whl
Collecting six==1.15.0 (from -r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 6))
  Saved d:\github\grpc\examples\php\machine\okcq7uzq\external\grpc_python_dependencies\six-1.15.0-py2.py3-none-any.whl
Collecting wheel==0.36.2 (from -r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 7))
  Saved d:\github\grpc\examples\php\machine\okcq7uzq\external\grpc_python_dependencies\wheel-0.36.2-py2.py3-none-any.whl
Collecting futures==3.1.1 (from -r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 8))
  Saved d:\github\grpc\examples\php\machine\okcq7uzq\external\grpc_python_dependencies\futures-3.1.1-py3-none-any.whl
Collecting google-auth==1.24.0 (from -r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 9))
  Saved d:\github\grpc\examples\php\machine\okcq7uzq\external\grpc_python_dependencies\google_auth-1.24.0-py2.py3-none-any.whl
Collecting oauth2client==4.1.0 (from -r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 10))
  Saved d:\github\grpc\examples\php\machine\okcq7uzq\external\grpc_python_dependencies\oauth2client-4.1.0-py2.py3-none-any.whl
Collecting requests==2.25.1 (from -r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 11))
  Saved d:\github\grpc\examples\php\machine\okcq7uzq\external\grpc_python_dependencies\requests-2.25.1-py2.py3-none-any.whl
Collecting urllib3==1.26.5 (from -r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 12))
  Saved d:\github\grpc\examples\php\machine\okcq7uzq\external\grpc_python_dependencies\urllib3-1.26.5-py2.py3-none-any.whl
Collecting chardet==3.0.4 (from -r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 13))
  Saved d:\github\grpc\examples\php\machine\okcq7uzq\external\grpc_python_dependencies\chardet-3.0.4-py2.py3-none-any.whl
Collecting certifi==2017.4.17 (from -r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 14))
  Saved d:\github\grpc\examples\php\machine\okcq7uzq\external\grpc_python_dependencies\certifi-2017.4.17-py2.py3-none-any.whl
Collecting idna==2.7 (from -r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 15))
  Saved d:\github\grpc\examples\php\machine\okcq7uzq\external\grpc_python_dependencies\idna-2.7-py2.py3-none-any.whl
Collecting googleapis-common-protos==1.5.5 (from -r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 16))
Collecting rsa<5,>=3.1.4; python_version >= "3.6" (from google-auth==1.24.0->-r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 9))
  Saved d:\github\grpc\examples\php\machine\okcq7uzq\external\grpc_python_dependencies\rsa-4.7.2-py3-none-any.whl
Collecting pyasn1-modules>=0.2.1 (from google-auth==1.24.0->-r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 9))
  Saved d:\github\grpc\examples\php\machine\okcq7uzq\external\grpc_python_dependencies\pyasn1_modules-0.2.8-py2.py3-none-any.whl
Collecting cachetools<5.0,>=2.0.0 (from google-auth==1.24.0->-r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 9))
  Saved d:\github\grpc\examples\php\machine\okcq7uzq\external\grpc_python_dependencies\cachetools-4.2.2-py3-none-any.whl
Collecting setuptools>=40.3.0 (from google-auth==1.24.0->-r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 9))
  Saved d:\github\grpc\examples\php\machine\okcq7uzq\external\grpc_python_dependencies\setuptools-57.1.0-py3-none-any.whl
Collecting pyasn1>=0.1.7 (from oauth2client==4.1.0->-r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 10))
  Saved d:\github\grpc\examples\php\machine\okcq7uzq\external\grpc_python_dependencies\pyasn1-0.4.8-py2.py3-none-any.whl
Collecting httplib2>=0.9.1 (from oauth2client==4.1.0->-r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 10))
  Saved d:\github\grpc\examples\php\machine\okcq7uzq\external\grpc_python_dependencies\httplib2-0.19.1-py3-none-any.whl
Collecting pyparsing<3,>=2.4.2 (from httplib2>=0.9.1->oauth2client==4.1.0->-r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 10))
  Saved d:\github\grpc\examples\php\machine\okcq7uzq\external\grpc_python_dependencies\pyparsing-2.4.7-py2.py3-none-any.whl
Skipping coverage, due to already being wheel.
Skipping cython, due to already being wheel.
Skipping enum34, due to already being wheel.
Skipping protobuf, due to already being wheel.
Skipping six, due to already being wheel.
Skipping wheel, due to already being wheel.
Skipping futures, due to already being wheel.
Skipping google-auth, due to already being wheel.
Skipping oauth2client, due to already being wheel.
Skipping requests, due to already being wheel.
Skipping urllib3, due to already being wheel.
Skipping chardet, due to already being wheel.
Skipping certifi, due to already being wheel.
Skipping idna, due to already being wheel.
Skipping rsa, due to already being wheel.
Skipping pyasn1-modules, due to already being wheel.
Skipping cachetools, due to already being wheel.
Skipping setuptools, due to already being wheel.
Skipping pyasn1, due to already being wheel.
Skipping httplib2, due to already being wheel.
Skipping pyparsing, due to already being wheel.
Building wheels for collected packages: googleapis-common-protos
  Running setup.py bdist_wheel for googleapis-common-protos: started
  Running setup.py bdist_wheel for googleapis-common-protos: finished with status 'error'
  Complete output from command D:\Python\Python36\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\EVANMC~1\\AppData\\Local\\Temp\\pip-build-ixpb4mmx\\googleapis-common-protos\\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 C:\Users\EVANMC~1\AppData\Local\Temp\tmpr_x9u4yjpip-wheel-:
  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'

  ----------------------------------------
  Running setup.py clean for googleapis-common-protos
Failed to build googleapis-common-protos
 (  Failed building wheel for googleapis-common-protos
ERROR: Failed to build one or more wheels
)
ERROR: Error fetching repository: Traceback (most recent call last):
        File "D:/github/grpc/examples/php/machine/okcq7uzq/external/io_bazel_rules_python/python/pip.bzl", line 40, column 13, in _pip_import_impl
                fail("pip_import failed: %s (%s)" % (result.stdout, result.stderr))
Error in fail: pip_import failed: Collecting coverage==4.5.4 (from -r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 2))
  Saved d:\github\grpc\examples\php\machine\okcq7uzq\external\grpc_python_dependencies\coverage-4.5.4-cp36-cp36m-win_amd64.whl
Collecting cython==0.29.21 (from -r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 3))
  Saved d:\github\grpc\examples\php\machine\okcq7uzq\external\grpc_python_dependencies\cython-0.29.21-cp36-cp36m-win_amd64.whl
Collecting enum34==1.1.10 (from -r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 4))
  Saved d:\github\grpc\examples\php\machine\okcq7uzq\external\grpc_python_dependencies\enum34-1.1.10-py3-none-any.whl
Collecting protobuf<4.0dev,>=3.5.0.post1 (from -r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 5))
  Saved d:\github\grpc\examples\php\machine\okcq7uzq\external\grpc_python_dependencies\protobuf-3.17.3-cp36-cp36m-win_amd64.whl
Collecting six==1.15.0 (from -r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 6))
  Saved d:\github\grpc\examples\php\machine\okcq7uzq\external\grpc_python_dependencies\six-1.15.0-py2.py3-none-any.whl
Collecting wheel==0.36.2 (from -r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 7))
  Saved d:\github\grpc\examples\php\machine\okcq7uzq\external\grpc_python_dependencies\wheel-0.36.2-py2.py3-none-any.whl
Collecting futures==3.1.1 (from -r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 8))
  Saved d:\github\grpc\examples\php\machine\okcq7uzq\external\grpc_python_dependencies\futures-3.1.1-py3-none-any.whl
Collecting google-auth==1.24.0 (from -r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 9))
  Saved d:\github\grpc\examples\php\machine\okcq7uzq\external\grpc_python_dependencies\google_auth-1.24.0-py2.py3-none-any.whl
Collecting oauth2client==4.1.0 (from -r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 10))
  Saved d:\github\grpc\examples\php\machine\okcq7uzq\external\grpc_python_dependencies\oauth2client-4.1.0-py2.py3-none-any.whl
Collecting requests==2.25.1 (from -r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 11))
  Saved d:\github\grpc\examples\php\machine\okcq7uzq\external\grpc_python_dependencies\requests-2.25.1-py2.py3-none-any.whl
Collecting urllib3==1.26.5 (from -r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 12))
  Saved d:\github\grpc\examples\php\machine\okcq7uzq\external\grpc_python_dependencies\urllib3-1.26.5-py2.py3-none-any.whl
Collecting chardet==3.0.4 (from -r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 13))
  Saved d:\github\grpc\examples\php\machine\okcq7uzq\external\grpc_python_dependencies\chardet-3.0.4-py2.py3-none-any.whl
Collecting certifi==2017.4.17 (from -r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 14))
  Saved d:\github\grpc\examples\php\machine\okcq7uzq\external\grpc_python_dependencies\certifi-2017.4.17-py2.py3-none-any.whl
Collecting idna==2.7 (from -r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 15))
  Saved d:\github\grpc\examples\php\machine\okcq7uzq\external\grpc_python_dependencies\idna-2.7-py2.py3-none-any.whl
Collecting googleapis-common-protos==1.5.5 (from -r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 16))
Collecting rsa<5,>=3.1.4; python_version >= "3.6" (from google-auth==1.24.0->-r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 9))
  Saved d:\github\grpc\examples\php\machine\okcq7uzq\external\grpc_python_dependencies\rsa-4.7.2-py3-none-any.whl
Collecting pyasn1-modules>=0.2.1 (from google-auth==1.24.0->-r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 9))
  Saved d:\github\grpc\examples\php\machine\okcq7uzq\external\grpc_python_dependencies\pyasn1_modules-0.2.8-py2.py3-none-any.whl
Collecting cachetools<5.0,>=2.0.0 (from google-auth==1.24.0->-r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 9))
  Saved d:\github\grpc\examples\php\machine\okcq7uzq\external\grpc_python_dependencies\cachetools-4.2.2-py3-none-any.whl
Collecting setuptools>=40.3.0 (from google-auth==1.24.0->-r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 9))
  Saved d:\github\grpc\examples\php\machine\okcq7uzq\external\grpc_python_dependencies\setuptools-57.1.0-py3-none-any.whl
Collecting pyasn1>=0.1.7 (from oauth2client==4.1.0->-r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 10))
  Saved d:\github\grpc\examples\php\machine\okcq7uzq\external\grpc_python_dependencies\pyasn1-0.4.8-py2.py3-none-any.whl
Collecting httplib2>=0.9.1 (from oauth2client==4.1.0->-r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 10))
  Saved d:\github\grpc\examples\php\machine\okcq7uzq\external\grpc_python_dependencies\httplib2-0.19.1-py3-none-any.whl
Collecting pyparsing<3,>=2.4.2 (from httplib2>=0.9.1->oauth2client==4.1.0->-r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 10))
  Saved d:\github\grpc\examples\php\machine\okcq7uzq\external\grpc_python_dependencies\pyparsing-2.4.7-py2.py3-none-any.whl
Skipping coverage, due to already being wheel.
Skipping cython, due to already being wheel.
Skipping enum34, due to already being wheel.
Skipping protobuf, due to already being wheel.
Skipping six, due to already being wheel.
Skipping wheel, due to already being wheel.
Skipping futures, due to already being wheel.
Skipping google-auth, due to already being wheel.
Skipping oauth2client, due to already being wheel.
Skipping requests, due to already being wheel.
Skipping urllib3, due to already being wheel.
Skipping chardet, due to already being wheel.
Skipping certifi, due to already being wheel.
Skipping idna, due to already being wheel.
Skipping rsa, due to already being wheel.
Skipping pyasn1-modules, due to already being wheel.
Skipping cachetools, due to already being wheel.
Skipping setuptools, due to already being wheel.
Skipping pyasn1, due to already being wheel.
Skipping httplib2, due to already being wheel.
Skipping pyparsing, due to already being wheel.
Building wheels for collected packages: googleapis-common-protos
  Running setup.py bdist_wheel for googleapis-common-protos: started
  Running setup.py bdist_wheel for googleapis-common-protos: finished with status 'error'
  Complete output from command D:\Python\Python36\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\EVANMC~1\\AppData\\Local\\Temp\\pip-build-ixpb4mmx\\googleapis-common-protos\\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 C:\Users\EVANMC~1\AppData\Local\Temp\tmpr_x9u4yjpip-wheel-:
  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'

  ----------------------------------------
  Running setup.py clean for googleapis-common-protos
Failed to build googleapis-common-protos
 (  Failed building wheel for googleapis-common-protos
ERROR: Failed to build one or more wheels
)
ERROR: no such package '@grpc_python_dependencies//': pip_import failed: Collecting coverage==4.5.4 (from -r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 2))
  Saved d:\github\grpc\examples\php\machine\okcq7uzq\external\grpc_python_dependencies\coverage-4.5.4-cp36-cp36m-win_amd64.whl
Collecting cython==0.29.21 (from -r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 3))
  Saved d:\github\grpc\examples\php\machine\okcq7uzq\external\grpc_python_dependencies\cython-0.29.21-cp36-cp36m-win_amd64.whl
Collecting enum34==1.1.10 (from -r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 4))
  Saved d:\github\grpc\examples\php\machine\okcq7uzq\external\grpc_python_dependencies\enum34-1.1.10-py3-none-any.whl
Collecting protobuf<4.0dev,>=3.5.0.post1 (from -r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 5))
  Saved d:\github\grpc\examples\php\machine\okcq7uzq\external\grpc_python_dependencies\protobuf-3.17.3-cp36-cp36m-win_amd64.whl
Collecting six==1.15.0 (from -r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 6))
  Saved d:\github\grpc\examples\php\machine\okcq7uzq\external\grpc_python_dependencies\six-1.15.0-py2.py3-none-any.whl
Collecting wheel==0.36.2 (from -r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 7))
  Saved d:\github\grpc\examples\php\machine\okcq7uzq\external\grpc_python_dependencies\wheel-0.36.2-py2.py3-none-any.whl
Collecting futures==3.1.1 (from -r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 8))
  Saved d:\github\grpc\examples\php\machine\okcq7uzq\external\grpc_python_dependencies\futures-3.1.1-py3-none-any.whl
Collecting google-auth==1.24.0 (from -r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 9))
  Saved d:\github\grpc\examples\php\machine\okcq7uzq\external\grpc_python_dependencies\google_auth-1.24.0-py2.py3-none-any.whl
Collecting oauth2client==4.1.0 (from -r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 10))
  Saved d:\github\grpc\examples\php\machine\okcq7uzq\external\grpc_python_dependencies\oauth2client-4.1.0-py2.py3-none-any.whl
Collecting requests==2.25.1 (from -r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 11))
  Saved d:\github\grpc\examples\php\machine\okcq7uzq\external\grpc_python_dependencies\requests-2.25.1-py2.py3-none-any.whl
Collecting urllib3==1.26.5 (from -r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 12))
  Saved d:\github\grpc\examples\php\machine\okcq7uzq\external\grpc_python_dependencies\urllib3-1.26.5-py2.py3-none-any.whl
Collecting chardet==3.0.4 (from -r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 13))
  Saved d:\github\grpc\examples\php\machine\okcq7uzq\external\grpc_python_dependencies\chardet-3.0.4-py2.py3-none-any.whl
Collecting certifi==2017.4.17 (from -r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 14))
  Saved d:\github\grpc\examples\php\machine\okcq7uzq\external\grpc_python_dependencies\certifi-2017.4.17-py2.py3-none-any.whl
Collecting idna==2.7 (from -r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 15))
  Saved d:\github\grpc\examples\php\machine\okcq7uzq\external\grpc_python_dependencies\idna-2.7-py2.py3-none-any.whl
Collecting googleapis-common-protos==1.5.5 (from -r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 16))
Collecting rsa<5,>=3.1.4; python_version >= "3.6" (from google-auth==1.24.0->-r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 9))
  Saved d:\github\grpc\examples\php\machine\okcq7uzq\external\grpc_python_dependencies\rsa-4.7.2-py3-none-any.whl
Collecting pyasn1-modules>=0.2.1 (from google-auth==1.24.0->-r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 9))
  Saved d:\github\grpc\examples\php\machine\okcq7uzq\external\grpc_python_dependencies\pyasn1_modules-0.2.8-py2.py3-none-any.whl
Collecting cachetools<5.0,>=2.0.0 (from google-auth==1.24.0->-r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 9))
  Saved d:\github\grpc\examples\php\machine\okcq7uzq\external\grpc_python_dependencies\cachetools-4.2.2-py3-none-any.whl
Collecting setuptools>=40.3.0 (from google-auth==1.24.0->-r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 9))
  Saved d:\github\grpc\examples\php\machine\okcq7uzq\external\grpc_python_dependencies\setuptools-57.1.0-py3-none-any.whl
Collecting pyasn1>=0.1.7 (from oauth2client==4.1.0->-r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 10))
  Saved d:\github\grpc\examples\php\machine\okcq7uzq\external\grpc_python_dependencies\pyasn1-0.4.8-py2.py3-none-any.whl
Collecting httplib2>=0.9.1 (from oauth2client==4.1.0->-r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 10))
  Saved d:\github\grpc\examples\php\machine\okcq7uzq\external\grpc_python_dependencies\httplib2-0.19.1-py3-none-any.whl
Collecting pyparsing<3,>=2.4.2 (from httplib2>=0.9.1->oauth2client==4.1.0->-r D:/github/grpc/examples/php/machine/okcq7uzq/external/com_github_grpc_grpc/requirements.bazel.txt (line 10))
  Saved d:\github\grpc\examples\php\machine\okcq7uzq\external\grpc_python_dependencies\pyparsing-2.4.7-py2.py3-none-any.whl
Skipping coverage, due to already being wheel.
Skipping cython, due to already being wheel.
Skipping enum34, due to already being wheel.
Skipping protobuf, due to already being wheel.
Skipping six, due to already being wheel.
Skipping wheel, due to already being wheel.
Skipping futures, due to already being wheel.
Skipping google-auth, due to already being wheel.
Skipping oauth2client, due to already being wheel.
Skipping requests, due to already being wheel.
Skipping urllib3, due to already being wheel.
Skipping chardet, due to already being wheel.
Skipping certifi, due to already being wheel.
Skipping idna, due to already being wheel.
Skipping rsa, due to already being wheel.
Skipping pyasn1-modules, due to already being wheel.
Skipping cachetools, due to already being wheel.
Skipping setuptools, due to already being wheel.
Skipping pyasn1, due to already being wheel.
Skipping httplib2, due to already being wheel.
Skipping pyparsing, due to already being wheel.
Building wheels for collected packages: googleapis-common-protos
  Running setup.py bdist_wheel for googleapis-common-protos: started
  Running setup.py bdist_wheel for googleapis-common-protos: finished with status 'error'
  Complete output from command D:\Python\Python36\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\EVANMC~1\\AppData\\Local\\Temp\\pip-build-ixpb4mmx\\googleapis-common-protos\\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 C:\Users\EVANMC~1\AppData\Local\Temp\tmpr_x9u4yjpip-wheel-:
  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'

  ----------------------------------------
  Running setup.py clean for googleapis-common-protos
Failed to build googleapis-common-protos
 (  Failed building wheel for googleapis-common-protos
ERROR: Failed to build one or more wheels
)
INFO: Elapsed time: 57.407s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)

stanle...@google.com

unread,
Jul 15, 2021, 2:26:39 PM7/15/21
to grpc.io
Have you tried the instructions here? https://github.com/grpc/grpc/tree/master/src/php#grpc_php_plugin-protoc-plugin

If you have, then it seems like there's some specific issues with your environment. The bazel method should work.

Evan McCall

unread,
Jul 16, 2021, 11:14:16 AM7/16/21
to grpc.io
Will try and let you know. Thank you Y^^Y
Reply all
Reply to author
Forward
0 new messages