2022-06-30 07:16:57 |
stupid user |
description |
Python bindings for Open Lighting Architecture has bug in module /usr/lib/python3/dist-packages/ola/OlaClient.py in method SendDmx of class OlaClient, at line 955:
if sys.version >= '3.2':
request.data = data.tobytes()
else:
request.data = data.tostring()
Calling this method raises an exception:
AttributeError: 'array.array' object has no attribute 'tostring'
In latest module version (at https://github.com/OpenLightingProject/) line 955 looks like this:
if sys.version_info >= (3, 2):
and works correctly. |
Python bindings for Open Lighting Architecture has bug in module /usr/lib/python3/dist-packages/ola/OlaClient.py in method SendDmx of class OlaClient, at line 955:
if sys.version >= '3.2':
request.data = data.tobytes()
else:
request.data = data.tostring()
Calling this method raises an exception:
AttributeError: 'array.array' object has no attribute 'tostring'
because checking Python version by comparing strings returns the wrong result.
In latest module version (at https://github.com
/OpenLightingProject/) line 955 looks like this:
if sys.version_info >= (3, 2):
and works correctly. |
|