Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSError: [Errno 22] Invalid argument #4

Open
Raphtor opened this issue Aug 13, 2021 · 1 comment
Open

OSError: [Errno 22] Invalid argument #4

Raphtor opened this issue Aug 13, 2021 · 1 comment

Comments

@Raphtor
Copy link

Raphtor commented Aug 13, 2021

I am getting an OSError when running the example. It evidently can see the server, but can't open the socket?

python3 natnet-client-demo.py --server 192.168.0.100
Connecting to 192.168.0.100
Getting server info
Server application: Motive
Server version: Version(major=2, minor=2, build=0, revision=0)
Traceback (most recent call last):
  File "natnet-client-demo.py", line 97, in <module>
    main()
  File "natnet-client-demo.py", line 90, in main
    app = ClientApp.connect('fake' if args.fake else args.server, args.rate, args.quiet)
  File "natnet-client-demo.py", line 35, in connect
    client = natnet.Client.connect(server_name)
  File "/home/swarmtestbed/lvctestbed/ros2_ws/src/python_natnet/src/natnet/comms.py", line 418, in connect
    return cls._simple_connect(server, logger, timeout)
  File "/home/swarmtestbed/lvctestbed/ros2_ws/src/python_natnet/src/natnet/comms.py", line 401, in _simple_connect
    return cls._setup_client(conn, server_info, logger)
  File "/home/swarmtestbed/lvctestbed/ros2_ws/src/python_natnet/src/natnet/comms.py", line 344, in _setup_client
    conn.bind_data_socket(server_info.connection_info.multicast_address,
  File "/home/swarmtestbed/lvctestbed/ros2_ws/src/python_natnet/src/natnet/comms.py", line 60, in bind_data_socket
    self._data_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, mreq)
OSError: [Errno 22] Invalid argument
@mje-nz
Copy link
Owner

mje-nz commented Aug 13, 2021

That sounds like a problem with your network interface: https://stackoverflow.com/questions/19403635/python-setsockopt-invalid-argument-with-ip-add-membership

Do the official SDK samples work on your machine?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants