Description
installed ola using these commands:
Ubuntu 20.04.1 LTS
Install ola with python 3 support:
$ sudo apt install git libcppunit-dev libcppunit-1.15-0 uuid-dev pkg-config libncurses5-dev libtool autoconf automake g++ libmicrohttpd-dev libmicrohttpd12 protobuf-compiler libprotobuf-lite17 python-protobuf libprotobuf-dev libprotoc-dev zlib1g-dev bison flex make libftdi-dev libftdi1 libusb-1.0-0-dev liblo-dev libavahi-client-dev python-numpy
$ git clone https://github.com/OpenLightingProject/ola
$ cd ola
$ autoreconf -i
$ PYTHON=python3 ./configure --disable-unittests --disable-examples --disable-osc --enable-http --enable-python-libs
$ make
$ sudo make install
$ sudo ldconfig
]
==== seems ok
started olad - OK
I installed Python bindings for OLA, available as a package:
pip install ola
It installed v0.10.7
Ran the "A simple example to send one frame of DMX data" example code from https://www.openlighting.org/ola/developer-documentation/python-api/
Got the following error message:
/usr/bin/python3.9 /home/glenn/projects/ola/main.py
Traceback (most recent call last):
File "/home/glenn/projects/ola/main.py", line 11, in
client.SendDmx(universe, data, DmxSent)
File "/usr/local/lib/python3.9/dist-packages/ola/OlaClient.py", line 882, in SendDmx
request.data = data.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'
Process finished with exit code 1
Running the Sending Multiple Frames example gives this error:
/usr/bin/python3.9 /home/glenn/projects/ola/main.py
Traceback (most recent call last):
File "/home/glenn/projects/ola/main.py", line 28, in
wrapper.Run()
File "/usr/local/lib/python3.9/dist-packages/ola/ClientWrapper.py", line 278, in Run
self._ss.Run()
File "/usr/local/lib/python3.9/dist-packages/ola/ClientWrapper.py", line 197, in Run
self._CheckTimeouts(now)
File "/usr/local/lib/python3.9/dist-packages/ola/ClientWrapper.py", line 222, in _CheckTimeouts
event.Run()
File "/usr/local/lib/python3.9/dist-packages/ola/ClientWrapper.py", line 67, in Run
self._callback()
File "/home/glenn/projects/ola/main.py", line 15, in SendDMXFrame
wrapper.AddEvent(TICK_INTERVAL, SendDMXFrame)
File "/usr/local/lib/python3.9/dist-packages/ola/ClientWrapper.py", line 287, in AddEvent
self._ss.AddEvent(time_in_ms, callback)
File "/usr/local/lib/python3.9/dist-packages/ola/ClientWrapper.py", line 215, in AddEvent
heapq.heappush(self._events, event)
TypeError: '<' not supported between instances of '_Event' and '_Event'
Process finished with exit code 1