You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears that intercept channel was not implemented correctly and now rqd fails on start.
To Reproduce
Take the latest code and try to install and run rqd.
Expected behavior
It should run without error.
Screenshots
WARNING:root:RQD Starting Up
Traceback (most recent call last):
File "/cue/venv/bin/rqd", line 11, in
load_entry_point('rqd==0.14', 'console_scripts', 'rqd')()
File "/cue/venv/lib/python3.8/site-packages/rqd-0.14-py3.8.egg/rqd/main.py", line 134, in main
rqCore.start()
File "/cue/venv/lib/python3.8/site-packages/rqd-0.14-py3.8.egg/rqd/rqcore.py", line 620, in start
self.network.start_grpc()
File "/cue/venv/lib/python3.8/site-packages/rqd-0.14-py3.8.egg/rqd/rqnetwork.py", line 210, in start_grpc
self.grpcServer.serveForever()
File "/cue/venv/lib/python3.8/site-packages/rqd-0.14-py3.8.egg/rqd/rqnetwork.py", line 182, in serveForever
self.serve()
File "/cue/venv/lib/python3.8/site-packages/rqd-0.14-py3.8.egg/rqd/rqnetwork.py", line 176, in serve
self.connectGrpcWithRetries()
File "/cue/venv/lib/python3.8/site-packages/rqd-0.14-py3.8.egg/rqd/rqnetwork.py", line 158, in connectGrpcWithRetries
self.rqCore.grpcConnected()
File "/cue/venv/lib/python3.8/site-packages/rqd-0.14-py3.8.egg/rqd/rqcore.py", line 624, in grpcConnected
self.network.reportRqdStartup(self.machine.getBootReport())
File "/cue/venv/lib/python3.8/site-packages/rqd-0.14-py3.8.egg/rqd/rqnetwork.py", line 251, in reportRqdStartup
stub = self.__getReportStub()
File "/cue/venv/lib/python3.8/site-packages/rqd-0.14-py3.8.egg/rqd/rqnetwork.py", line 246, in __getReportStub
self.__getChannel()
File "/cue/venv/lib/python3.8/site-packages/rqd-0.14-py3.8.egg/rqd/rqnetwork.py", line 240, in __getChannel
self.channel = grpc.insecure_channel('%s:%s' % (cuebots[0],
File "/cue/venv/lib/python3.8/site-packages/grpc/init.py", line 1974, in insecure_channel
return _channel.Channel(target, () if options is None else options, None,
File "/cue/venv/lib/python3.8/site-packages/grpc/_channel.py", line 1475, in init
python_options, core_options = _separate_channel_options(options)
File "/cue/venv/lib/python3.8/site-packages/grpc/_channel.py", line 1455, in _separate_channel_options
if pair[0] == grpc.experimental.ChannelOptions.SingleThreadedUnaryStream:
TypeError: 'RetryOnRpcErrorClientInterceptor' object is not subscriptable
Version Number e743be1 from 9/12/21 Kazuki Sakamoto
Additional context
I make the following change in rqnetwork.py ~line 240 and it runs fine? Haven't tested for the changes intended purpose:
It appears that intercept channel was not implemented correctly and now rqd fails on start.
To Reproduce
Take the latest code and try to install and run rqd.
Expected behavior
It should run without error.
Screenshots
WARNING:root:RQD Starting Up
Traceback (most recent call last):
File "/cue/venv/bin/rqd", line 11, in
load_entry_point('rqd==0.14', 'console_scripts', 'rqd')()
File "/cue/venv/lib/python3.8/site-packages/rqd-0.14-py3.8.egg/rqd/main.py", line 134, in main
rqCore.start()
File "/cue/venv/lib/python3.8/site-packages/rqd-0.14-py3.8.egg/rqd/rqcore.py", line 620, in start
self.network.start_grpc()
File "/cue/venv/lib/python3.8/site-packages/rqd-0.14-py3.8.egg/rqd/rqnetwork.py", line 210, in start_grpc
self.grpcServer.serveForever()
File "/cue/venv/lib/python3.8/site-packages/rqd-0.14-py3.8.egg/rqd/rqnetwork.py", line 182, in serveForever
self.serve()
File "/cue/venv/lib/python3.8/site-packages/rqd-0.14-py3.8.egg/rqd/rqnetwork.py", line 176, in serve
self.connectGrpcWithRetries()
File "/cue/venv/lib/python3.8/site-packages/rqd-0.14-py3.8.egg/rqd/rqnetwork.py", line 158, in connectGrpcWithRetries
self.rqCore.grpcConnected()
File "/cue/venv/lib/python3.8/site-packages/rqd-0.14-py3.8.egg/rqd/rqcore.py", line 624, in grpcConnected
self.network.reportRqdStartup(self.machine.getBootReport())
File "/cue/venv/lib/python3.8/site-packages/rqd-0.14-py3.8.egg/rqd/rqnetwork.py", line 251, in reportRqdStartup
stub = self.__getReportStub()
File "/cue/venv/lib/python3.8/site-packages/rqd-0.14-py3.8.egg/rqd/rqnetwork.py", line 246, in __getReportStub
self.__getChannel()
File "/cue/venv/lib/python3.8/site-packages/rqd-0.14-py3.8.egg/rqd/rqnetwork.py", line 240, in __getChannel
self.channel = grpc.insecure_channel('%s:%s' % (cuebots[0],
File "/cue/venv/lib/python3.8/site-packages/grpc/init.py", line 1974, in insecure_channel
return _channel.Channel(target, () if options is None else options, None,
File "/cue/venv/lib/python3.8/site-packages/grpc/_channel.py", line 1475, in init
python_options, core_options = _separate_channel_options(options)
File "/cue/venv/lib/python3.8/site-packages/grpc/_channel.py", line 1455, in _separate_channel_options
if pair[0] == grpc.experimental.ChannelOptions.SingleThreadedUnaryStream:
TypeError: 'RetryOnRpcErrorClientInterceptor' object is not subscriptable
Version Number
e743be1 from 9/12/21 Kazuki Sakamoto
Additional context
I make the following change in rqnetwork.py ~line 240 and it runs fine? Haven't tested for the changes intended purpose:
self.channel = grpc.insecure_channel('%s:%s' % (cuebots[0], rqd.rqconstants.CUEBOT_GRPC_PORT)) self.channel = grpc.intercept_channel(self.channel, *interceptors)
The text was updated successfully, but these errors were encountered: