ferleal / pytuio

Automatically exported from code.google.com/p/pytuio
MIT License
0 stars 0 forks source link

SO_REUSEPORT error in example1.py #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.  python example1.py

What is the expected output? What do you see instead?

Traceback (most recent call last):
  File "example1.py", line 2, in <module>
    tracking = tuio.Tracking()
  File "/usr/lib/python2.5/site-packages/tuio/__init__.py", line 29, in
__init__
    self.open_socket()
  File "/usr/lib/python2.5/site-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'

What version of the product are you using? On what operating system?

Arch Linux, kernel 2.6.24, python2.5

Original issue reported on code.google.com by T.Karbow...@gmail.com on 11 Mar 2008 at 10:48

GoogleCodeExporter commented 9 years ago
solution: comment line 39.

Original comment by T.Karbow...@gmail.com on 12 Mar 2008 at 3:27

GoogleCodeExporter commented 9 years ago
I've reproduced this, using the SVN version, revision 9, also with Arch Linux, 
but I
think this is not distribution-specific.
I've chosen another way to fix this (using REUSEADDR instead, patch attached), 
and
included it in a package I've just posted to the AUR :
http://aur.archlinux.org/packages.php?ID=16644 but this would be better if it 
could
be fixed upstream.

Original comment by catw...@free.fr on 28 Apr 2008 at 12:58

Attachments:

GoogleCodeExporter commented 9 years ago
I've gotten the same error, so it is a cross-platform error.  I am using 
Windows XP,
Python 2.4.4, and pytuio 0.1

Both solutions seem to work, but the second is preferable.

Original comment by rsg...@gmail.com on 1 May 2008 at 8:51