undefined method `build' for an instance of Google::Protobuf::DescriptorPool (NoMethodError)

22 views
Skip to first unread message

Amey Nevrekar

unread,
Aug 28, 2024, 1:32:36 PMAug 28
to grpc.io
Hi I am new to gRPC and I was trying the Ruby example from quick start. After cloning the repository I am seeing the following error when running the server

/Users/ameynevrekar/Projects/grpc/examples/ruby/lib/helloworld_pb.rb:6:in `<top (required)>': undefined method `build' for an instance of Google::Protobuf::DescriptorPool (NoMethodError)

Google::Protobuf::DescriptorPool.generated_pool.build do
                                               ^^^^^^
from <internal:/Users/ameynevrekar/.rbenv/versions/3.3.0/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:127:in `require'
from <internal:/Users/ameynevrekar/.rbenv/versions/3.3.0/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:127:in `require'
from /Users/ameynevrekar/Projects/grpc/examples/ruby/lib/helloworld_services_pb.rb:20:in `<top (required)>'
from <internal:/Users/ameynevrekar/.rbenv/versions/3.3.0/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:127:in `require'
from <internal:/Users/ameynevrekar/.rbenv/versions/3.3.0/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:127:in `require'
from greeter_server.rb:26:in `<main>'


How can resolve the above issue.
Reply all
Reply to author
Forward
0 new messages