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

google-protobuf 4.x doesn't support this gem #143

Open
xiaohui-zhangxh opened this issue Jul 12, 2024 · 0 comments
Open

google-protobuf 4.x doesn't support this gem #143

xiaohui-zhangxh opened this issue Jul 12, 2024 · 0 comments

Comments

@xiaohui-zhangxh
Copy link

irb(main):003:0> require 'etcdv3'
/usr/local/bundle/gems/etcdv3-0.11.6/lib/etcdv3/etcdrpc/kv_pb.rb:6:in `<top (required)>': undefined method `build' for #<Google::Protobuf::DescriptorPool:0x000072ef554d2f58> (NoMethodError)

Google::Protobuf::DescriptorPool.generated_pool.build do
                                               ^^^^^^
	from /usr/local/bundle/gems/etcdv3-0.11.6/lib/etcdv3/etcdrpc/rpc_pb.rb:6:in `require_relative'
	from /usr/local/bundle/gems/etcdv3-0.11.6/lib/etcdv3/etcdrpc/rpc_pb.rb:6:in `<top (required)>'
	from /usr/local/bundle/gems/etcdv3-0.11.6/lib/etcdv3/etcdrpc/rpc_services_pb.rb:5:in `require_relative'
	from /usr/local/bundle/gems/etcdv3-0.11.6/lib/etcdv3/etcdrpc/rpc_services_pb.rb:5:in `<top (required)>'
	from <internal:/usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
	from <internal:/usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
	from /usr/local/bundle/gems/etcdv3-0.11.6/lib/etcdv3.rb:4:in `<top (required)>'
	from <internal:/usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
	from <internal:/usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
	from (irb):3:in `<main>'
	from /usr/local/lib/ruby/gems/3.2.0/gems/irb-1.6.2/exe/irb:11:in `<top (required)>'
	from /usr/local/bin/irb:25:in `load'
	from /usr/local/bin/irb:25:in `<main>'

to fix this, has to uninstall grpc and google-protobuf , reinstall grpc -v 1.64.0

gem uninstall grpc
gem uninstall google-protobuf
gem install grpc -v 1.64.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant