Python version check bug
Hi
Your python version check in OlaClient.py fails on Python 3.10
line 957 if sys.version >= '3.2': request.data = data.tobytes() else: request.data = data.tostring()
The best solution I can see, others may have a better solution, is
pv = platform.python_version_tuple() if int(pv[0]) >= 3 and int(pv[1]) > 2: request.data = data.tobytes() else: request.data = data.tostring()
Hi @JamCam ,
This has already been fixed: https://github.com/OpenLightingProject/ola/blob/e95de59a04c79ddd6ba745578e4183301f4b98b7/python/ola/OlaClient.py#L955
See #1757 .
You might need to run from source if you're doing stuff with Python 3, although unfortunately even there, there are a few outstanding issues. Some (but not all) are sorted in #1761 .
Did that work for you @JamCam ?
Let us know if you see any other Python 3 related bugs during your usage of it.
I'll close this as it's a duplicate of #1755 and was fixed in #1757 .