Skip to content

Python 3 Compatibility #1506

Description

@peternewman

if i try the simple fade example this does not work:
stefan:~/ola/python/examples[master]$ python3 ./ola_simple_fade.py
Traceback (most recent call last):
File "./ola_simple_fade.py", line 69, in
wrapper.AddEvent(SHUTDOWN_INTERVAL, wrapper.Stop)
File "/home/stefan/ola/python/ola/ClientWrapper.py", line 287, in AddEvent
self._ss.AddEvent(time_in_ms, callback)
File "/home/stefan/ola/python/ola/ClientWrapper.py", line 215, in AddEvent
heapq.heappush(self._events, event)
TypeError: unorderable types: _Event() < _Event()

See:
https://groups.google.com/d/msg/open-lighting/7TuvU0T1CAo/0hBbXHw8BgAJ
https://groups.google.com/d/msg/open-lighting/7TuvU0T1CAo/oVIYBMk8BgAJ

Hopefully whoever takes on that will give the whole system a bit of a shakedown on Python 3 and fix any further remaining bugs.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions