Comment 2 for bug 752699

Linus Seelinger (s-linus) wrote :

self.x_mouse is not the only place where there needs to be a typecast. after adding these typecasts, it works well.

Yet, there is another problem on ubuntu 11.04:

Traceback (most recent call last):
  File "/home/gabriel/Arbeitsfläche/tuiototouchbridge/tuiototouch.py", line 110, in <module>
    tracking=tuio.Tracking()
  File "/usr/local/lib/python2.7/dist-packages/tuio/__init__.py", line 29, in __init__
    self.open_socket()
  File "/usr/local/lib/python2.7/dist-packages/tuio/__init__.py", line 39, in open_socket
    self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEPORT, 1)
AttributeError: 'module' object has no attribute 'SO_REUSEPORT'

By replacing 'SO_REUSEPORT' by 'SO_REUSEADDR', I could make it work.