{"action":"created","issue":{"url":"https://api.github.com/repos/attwad/python-osc/issues/31","repository_url":"https://api.github.com/repos/attwad/python-osc","labels_url":"https://api.github.com/repos/attwad/python-osc/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/attwad/python-osc/issues/31/comments","events_url":"https://api.github.com/repos/attwad/python-osc/issues/31/events","html_url":"https://github.com/attwad/python-osc/issues/31","id":150118184,"number":31,"title":"OSC messages from a python-osc client are not picked up by ChucK server","user":{"login":"Chiel92","id":1030961,"avatar_url":"https://avatars.githubusercontent.com/u/1030961?v=3","gravatar_id":"","url":"https://api.github.com/users/Chiel92","html_url":"https://github.com/Chiel92","followers_url":"https://api.github.com/users/Chiel92/followers","following_url":"https://api.github.com/users/Chiel92/following{/other_user}","gists_url":"https://api.github.com/users/Chiel92/gists{/gist_id}","starred_url":"https://api.github.com/users/Chiel92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chiel92/subscriptions","organizations_url":"https://api.github.com/users/Chiel92/orgs","repos_url":"https://api.github.com/users/Chiel92/repos","events_url":"https://api.github.com/users/Chiel92/events{/privacy}","received_events_url":"https://api.github.com/users/Chiel92/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/attwad/python-osc/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-04-21T16:04:02Z","updated_at":"2016-04-26T00:32:45Z","closed_at":null,"body":"I'm trying to set up communication between [chuck][1] and python-osc. Chuck natively supports the OSC protocol. It appears that the messages we send from the python side do not arrive at the chuck side. All other combinations, i.e. python to python, chuck to chuck and chuck to python are working fine though.\r\nI'm running python 3.4.4 on windows 7.\r\nWhat could be going wrong here?\r\n\r\nHere are the four files with the client/server implementations I'm using for testing.\r\n\r\n\r\n### chuck_client.py:\r\n\r\n    OscSend xmit;\r\n    xmit.setHost(\"localhost\", 5005);\r\n    <<<\"Sending\">>>;\r\n    xmit.startMsg(\"/debug\");\r\n\r\n\r\n### chuck_server.py:\r\n\r\n    OscRecv orec;\r\n    5005 => orec.port;\r\n    orec.listen();\r\n    orec.event(\"/debug\") @=> OscEvent e;\r\n    \r\n    <<<\"Waiting\">>>;\r\n    e => now;\r\n    <<<\"Received\">>>;\r\n\r\n\r\n### python_client.py:\r\n\r\n    from pythonosc import osc_message_builder\r\n    from pythonosc import udp_client\r\n    \r\n    client = udp_client.UDPClient('localhost', 5005)\r\n    msg = osc_message_builder.OscMessageBuilder(address=\"/debug\")\r\n    msg = msg.build()\r\n    print('Sending')\r\n    client.send(msg)\r\n\r\n### python_server.py:\r\n\r\n    from pythonosc import dispatcher\r\n    from pythonosc import osc_server\r\n    \r\n    dispatcher = dispatcher.Dispatcher()\r\n    dispatcher.map(\"/debug\", lambda _: print('Received'))\r\n    \r\n    print('Waiting')\r\n    server = osc_server.ThreadingOSCUDPServer(\r\n        ('localhost', 5005), dispatcher)\r\n    print(\"Serving on {}\".format(server.server_address))\r\n    server.serve_forever()\r\n\r\n\r\n  [1]: http://chuck.cs.princeton.edu/\r\n  [2]: http://opensoundcontrol.org/\r\n  [3]: https://github.com/attwad/python-osc"},"comment":{"url":"https://api.github.com/repos/attwad/python-osc/issues/comments/214572192","html_url":"https://github.com/attwad/python-osc/issues/31#issuecomment-214572192","issue_url":"https://api.github.com/repos/attwad/python-osc/issues/31","id":214572192,"user":{"login":"attwad","id":1255432,"avatar_url":"https://avatars.githubusercontent.com/u/1255432?v=3","gravatar_id":"","url":"https://api.github.com/users/attwad","html_url":"https://github.com/attwad","followers_url":"https://api.github.com/users/attwad/followers","following_url":"https://api.github.com/users/attwad/following{/other_user}","gists_url":"https://api.github.com/users/attwad/gists{/gist_id}","starred_url":"https://api.github.com/users/attwad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/attwad/subscriptions","organizations_url":"https://api.github.com/users/attwad/orgs","repos_url":"https://api.github.com/users/attwad/repos","events_url":"https://api.github.com/users/attwad/events{/privacy}","received_events_url":"https://api.github.com/users/attwad/received_events","type":"User","site_admin":false},"created_at":"2016-04-26T00:32:45Z","updated_at":"2016-04-26T00:32:45Z","body":"Okay I felt it was weird that it failed with this line commented out :)\r\nb'/debug\\x00\\x00' is a valid OSC string for an address so I'm really not sure what's going on in chuck when it tries to parse it really... sorry for bouncing off but perhaps the discussion is best continued on their side with that info."}}