{"action":"created","issue":{"url":"https://api.github.com/repos/chrysn/aiocoap/issues/69","repository_url":"https://api.github.com/repos/chrysn/aiocoap","labels_url":"https://api.github.com/repos/chrysn/aiocoap/issues/69/labels{/name}","comments_url":"https://api.github.com/repos/chrysn/aiocoap/issues/69/comments","events_url":"https://api.github.com/repos/chrysn/aiocoap/issues/69/events","html_url":"https://github.com/chrysn/aiocoap/issues/69","id":220819454,"number":69,"title":"macOS unsupported (no option IPV6_RECVPKTINFO)","user":{"login":"mattdodge","id":797259,"avatar_url":"https://avatars7.githubusercontent.com/u/797259?v=4","gravatar_id":"","url":"https://api.github.com/users/mattdodge","html_url":"https://github.com/mattdodge","followers_url":"https://api.github.com/users/mattdodge/followers","following_url":"https://api.github.com/users/mattdodge/following{/other_user}","gists_url":"https://api.github.com/users/mattdodge/gists{/gist_id}","starred_url":"https://api.github.com/users/mattdodge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattdodge/subscriptions","organizations_url":"https://api.github.com/users/mattdodge/orgs","repos_url":"https://api.github.com/users/mattdodge/repos","events_url":"https://api.github.com/users/mattdodge/events{/privacy}","received_events_url":"https://api.github.com/users/mattdodge/received_events","type":"User","site_admin":false},"labels":[{"id":261205694,"url":"https://api.github.com/repos/chrysn/aiocoap/labels/platform%20support","name":"platform support","color":"fad8c7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-04-11T02:10:19Z","updated_at":"2017-07-14T07:07:27Z","closed_at":null,"body":"I doubt this is an issue with this particular library but I am unable to get the server/client up and running because of it so I thought I'd log it here. Basically, when running `./server.py` I see the following stack trace:\r\n```\r\nERROR:asyncio:Task exception was never retrieved\r\nfuture: <Task finished coro=<Context.create_server_context() done, defined at /Users/matt/code/coap/aiocoap/aiocoap/protocol.py:530> exception=AttributeError(\"module 'socket' has no attribute 'IPV6_RECVPKTINFO'\",)>\r\nTraceback (most recent call last):\r\n  File \"/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/asyncio/tasks.py\", line 239, in _step\r\n    result = coro.send(None)\r\n  File \"/Users/matt/code/coap/aiocoap/aiocoap/protocol.py\", line 546, in create_server_context\r\n    self.transport_endpoints.append((yield from TransportEndpointUDP6.create_server_transport_endpoint(new_message_callback=self._dispatch_message, new_error_callback=self._dispatch_error, log=self.log, loop=loop, dump_to=dump_to, bind=bind)))\r\n  File \"/Users/matt/code/coap/aiocoap/aiocoap/transports/udp6.py\", line 126, in create_server_transport_endpoint\r\n    return (yield from cls._create_transport_endpoint(new_message_callback, new_error_callback, log, loop, dump_to, bind))\r\n  File \"/Users/matt/code/coap/aiocoap/aiocoap/transports/udp6.py\", line 100, in _create_transport_endpoint\r\n    sock.setsockopt(socket.IPPROTO_IPV6, socket.IPV6_RECVPKTINFO, 1)\r\nAttributeError: module 'socket' has no attribute 'IPV6_RECVPKTINFO'\r\n```\r\n\r\nSure enough, I'm unable to see that socket option on any of my Python 3 installs (3.4, 3.5, 3.6). On a different Ubuntu machine the option is there. I just updated the Mac today and I'm wondering if possibly they got rid of some setting from the C socket implementation.\r\n\r\nCurrently running macOS 10.12.4. Any ideas of how to get that option back or a workaround?"},"comment":{"url":"https://api.github.com/repos/chrysn/aiocoap/issues/comments/315287853","html_url":"https://github.com/chrysn/aiocoap/issues/69#issuecomment-315287853","issue_url":"https://api.github.com/repos/chrysn/aiocoap/issues/69","id":315287853,"user":{"login":"vaibhav-ScaleDB","id":27723439,"avatar_url":"https://avatars4.githubusercontent.com/u/27723439?v=4","gravatar_id":"","url":"https://api.github.com/users/vaibhav-ScaleDB","html_url":"https://github.com/vaibhav-ScaleDB","followers_url":"https://api.github.com/users/vaibhav-ScaleDB/followers","following_url":"https://api.github.com/users/vaibhav-ScaleDB/following{/other_user}","gists_url":"https://api.github.com/users/vaibhav-ScaleDB/gists{/gist_id}","starred_url":"https://api.github.com/users/vaibhav-ScaleDB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vaibhav-ScaleDB/subscriptions","organizations_url":"https://api.github.com/users/vaibhav-ScaleDB/orgs","repos_url":"https://api.github.com/users/vaibhav-ScaleDB/repos","events_url":"https://api.github.com/users/vaibhav-ScaleDB/events{/privacy}","received_events_url":"https://api.github.com/users/vaibhav-ScaleDB/received_events","type":"User","site_admin":false},"created_at":"2017-07-14T07:07:27Z","updated_at":"2017-07-14T07:07:27Z","body":"Is there any update on this issue? I get the same issue, running on OS X v10.10.5"}}
{"actor":{"display_login":"vaibhav-ScaleDB"}}