GithubHelp home page GithubHelp logo

Comments (5)

coryan avatar coryan commented on August 15, 2024

Looks like you are using an old version of protoc. I cannot remember if the php stuff was introduced in 3.5 or 3.4, I would go with 3.5.

from cpp-samples.

jerrychang1243 avatar jerrychang1243 commented on August 15, 2024

@coryan
My protoc version is 3.5.1

from cpp-samples.

coryan avatar coryan commented on August 15, 2024

Sorry for the delay, I was busy with my full-time job. You are correct, googleapis does not compile with protobuf v3.5.1 or v3.5.2, which is the default version used by gRPC. googleapis recently introduced proto files that use the php_metadata_namespace, for example here:

https://github.com/googleapis/googleapis/blob/288ebfec039030c7dd9de05b73879634b72e0dc4/google/ads/googleads/v0/enums/day_of_week.proto#L29

while support for that option was added to protobuf here:

protocolbuffers/protobuf#4609

That pull request made it to protobuf-3.6.1.

We should change the documentation and code to require protobuf >= 3.6.1.

I am attaching a Dockerfile that can be used to reproduce the problem (with --build-arg=PBVER=3.5.2) and verify that it works with the newer version (with --build-arg=PBVER=3.6.1).

/cc: @SurferJeffAtGoogle

from cpp-samples.

coryan avatar coryan commented on August 15, 2024

For what is worth, the gRPC folks recently upgraded to protobuf-3.6.1:

grpc/grpc@50b684a

I think that should have fixed this problem too.

from cpp-samples.

tmatsuo avatar tmatsuo commented on August 15, 2024

@jerrychang1243 I think we can close this issue, but feel free to reopen.

from cpp-samples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.