-
Notifications
You must be signed in to change notification settings - Fork 204
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
Bug Report From RDM Tests #1388
Comments
Thanks @vanvught . Can we have some detail of what sensors the device has, or perhaps easiest an rdm_model_collector dump of the device please? |
Is this 0.10.6 branch, 0.10 branch or master? Actually it's probably not master looking at the source. Looking at the source, I think this would have to be a device with no sensors returned, but the SENSOR_DEFINITION PID supported, is that a correct assessment? The model collector dump will still help though... |
Peter, your assessment is correct; the device has no sensors and E120_SENSOR_DEFINITION PID is in the supported parameters list. Background: I am writing a cross-platform RDM Handler. There is a hardware abstraction layer which implements I grab the source code from GitHub using the following command:
For completeness, herewith the rdm_model_collector.py output:
and the application output on Cygwin:
|
Great thanks @vanvught . I'll try and get that fixed soon for you to test. Could you not detect Cygwin and ifdef out the support of that PID on that platform? I don't believe it's against the specs, but may be a slightly confusing edge case for some controllers? |
…doesn't have any sensors. Closes OpenLightingProject#1388
@peternewman Peter, I've got an exception again.
I have used a different ubuntu system with a new build with: First used a reference RDM Responder with a sensor :
There are now 580 tests instead of the 426 in my previous build. So I am working with new OLA code. |
Hi @vanvught , This fix is currently only in the 0.10 branch ( https://github.com/OpenLightingProject/ola/tree/0.10 ) and hence will be in the 0.10.7 release when it comes out. Or you can wait until #1393 gets merged, then it will be in master too. |
That's now merged, so this is now in master too, so a pull should resolve the issue. |
Works like a charm. Thank you @peternewman
|
pi@openlighting-3:~ $ uname -a
Linux openlighting-3 4.9.59-v7+ #1047 SMP Sun Oct 29 12:19:23 GMT 2017 armv7l GNU/Linux
pi@openlighting-3:~ $ olad --version
OLA olad version: 0.10.6
Error: max() arg is an empty sequence
Traceback (most recent call last):
File "/usr/local/bin/rdm_test_server.py", line 274, in _RunTests
tests, device = runner.RunTests(test_filter, False, self._UpdateStats)
File "/usr/local/lib/python2.7/dist-packages/ola/testing/rdm/TestRunner.py", line 333, in RunTests
test.Run()
File "/usr/local/lib/python2.7/dist-packages/ola/testing/rdm/ResponderTest.py", line 261, in Run
self._wrapper.Run()
File "/usr/local/lib/python2.7/dist-packages/ola/ClientWrapper.py", line 278, in Run
self._ss.Run()
File "/usr/local/lib/python2.7/dist-packages/ola/ClientWrapper.py", line 198, in Run
self._CheckDescriptors(i, self._read_descriptors)
File "/usr/local/lib/python2.7/dist-packages/ola/ClientWrapper.py", line 233, in _CheckDescriptors
runnable()
File "/usr/local/lib/python2.7/dist-packages/ola/OlaClient.py", line 730, in SocketReady
self._channel.SocketReady()
File "/usr/local/lib/python2.7/dist-packages/ola/rpc/StreamRpcChannel.py", line 84, in SocketReady
self._ProcessIncomingData()
File "/usr/local/lib/python2.7/dist-packages/ola/rpc/StreamRpcChannel.py", line 258, in _ProcessIncomingData
self._HandleNewMessage(data)
File "/usr/local/lib/python2.7/dist-packages/ola/rpc/StreamRpcChannel.py", line 272, in _HandleNewMessage
self.MESSAGE_HANDLERS[message.type](self, message)
File "/usr/local/lib/python2.7/dist-packages/ola/rpc/StreamRpcChannel.py", line 316, in _HandleResponse
self._InvokeCallback(response)
File "/usr/local/lib/python2.7/dist-packages/ola/rpc/StreamRpcChannel.py", line 359, in _InvokeCallback
response.callback(response.controller, response.reply)
File "/usr/local/lib/python2.7/dist-packages/ola/OlaClient.py", line 1291, in
lambda x, y: self._RDMCommandComplete(callback, x, y))
File "/usr/local/lib/python2.7/dist-packages/ola/OlaClient.py", line 1469, in _RDMCommandComplete
callback(RDMResponse(controller, response))
File "/usr/local/lib/python2.7/dist-packages/ola/RDMAPI.py", line 238, in
lambda response: self._GenericHandler(callback, uid, response),
File "/usr/local/lib/python2.7/dist-packages/ola/RDMAPI.py", line 266, in _GenericHandler
callback(response, obj, unpack_exception)
File "/usr/local/lib/python2.7/dist-packages/ola/testing/rdm/ResponderTest.py", line 475, in _HandleResponse
self._PerformMatching(response, unpacked_data, unpack_exception)
File "/usr/local/lib/python2.7/dist-packages/ola/testing/rdm/ResponderTest.py", line 618, in _PerformMatching
result.action()
File "/usr/local/lib/python2.7/dist-packages/ola/testing/rdm/TestDefinitions.py", line 2566, in _AddToHoles
self._CheckForSensor()
File "/usr/local/lib/python2.7/dist-packages/ola/testing/rdm/TestDefinitions.py", line 2546, in _CheckForSensor
self._MissingSensorWarning()
File "/usr/local/lib/python2.7/dist-packages/ola/testing/rdm/TestDefinitions.py", line 2522, in _MissingSensorWarning
max_sensor = max(self._sensors.keys())
ValueError: max() arg is an empty sequence
The text was updated successfully, but these errors were encountered: