ola-python package has bug(s)

Bug #1980234 reported by stupid user
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ola (Ubuntu)
New
Undecided
Unassigned

Bug 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'

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.

stupid user (mc6312)
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.