{"action":"opened","issue":{"url":"https://api.github.com/repos/jiffyclub/snakeviz/issues/138","repository_url":"https://api.github.com/repos/jiffyclub/snakeviz","labels_url":"https://api.github.com/repos/jiffyclub/snakeviz/issues/138/labels{/name}","comments_url":"https://api.github.com/repos/jiffyclub/snakeviz/issues/138/comments","events_url":"https://api.github.com/repos/jiffyclub/snakeviz/issues/138/events","html_url":"https://github.com/jiffyclub/snakeviz/issues/138","id":548258033,"node_id":"MDU6SXNzdWU1NDgyNTgwMzM=","number":138,"title":"Python 3.8 Tornado asyncio Event loop Error","user":{"login":"daniel-butler","id":22578954,"node_id":"MDQ6VXNlcjIyNTc4OTU0","avatar_url":"https://avatars2.githubusercontent.com/u/22578954?v=4","gravatar_id":"","url":"https://api.github.com/users/daniel-butler","html_url":"https://github.com/daniel-butler","followers_url":"https://api.github.com/users/daniel-butler/followers","following_url":"https://api.github.com/users/daniel-butler/following{/other_user}","gists_url":"https://api.github.com/users/daniel-butler/gists{/gist_id}","starred_url":"https://api.github.com/users/daniel-butler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daniel-butler/subscriptions","organizations_url":"https://api.github.com/users/daniel-butler/orgs","repos_url":"https://api.github.com/users/daniel-butler/repos","events_url":"https://api.github.com/users/daniel-butler/events{/privacy}","received_events_url":"https://api.github.com/users/daniel-butler/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2020-01-10T19:45:57Z","updated_at":"2020-01-10T19:45:57Z","closed_at":null,"author_association":"NONE","body":"Based on [this issue in tornado](https://github.com/tornadoweb/tornado/issues/2608). Snakeviz needs to set up a selector event loop for tornado to work properly in python 3.8.\r\n\r\n\r\nThis is the error message.\r\n```powershell\r\nTraceback (most recent call last):\r\n  File \"c:\\users\\docadmin\\appdata\\local\\programs\\python\\python38-32\\Lib\\runpy.py\", line 192, in _run_module_as_main\r\n    return _run_code(code, main_globals, None,\r\n  File \"c:\\users\\docadmin\\appdata\\local\\programs\\python\\python38-32\\Lib\\runpy.py\", line 85, in _run_code\r\n    exec(code, run_globals)\r\n  File \"C:\\ProgramData\\CoreCustom\\electronic-payments\\venv3-8-0\\Scripts\\snakeviz.exe\\__main__.py\", line 7, in <module>\r\n  File \"c:\\programdata\\corecustom\\electronic-payments\\venv3-8-0\\lib\\site-packages\\snakeviz\\cli.py\", line 123, in main\r\n    app.listen(p, address=hostname)\r\n  File \"c:\\programdata\\corecustom\\electronic-payments\\venv3-8-0\\lib\\site-packages\\tornado\\web.py\", line 2112, in listen\r\n    server.listen(port, address)\r\n  File \"c:\\programdata\\corecustom\\electronic-payments\\venv3-8-0\\lib\\site-packages\\tornado\\tcpserver.py\", line 152, in li\r\nsten\r\n    self.add_sockets(sockets)\r\n  File \"c:\\programdata\\corecustom\\electronic-payments\\venv3-8-0\\lib\\site-packages\\tornado\\tcpserver.py\", line 165, in ad\r\nd_sockets\r\n    self._handlers[sock.fileno()] = add_accept_handler(\r\n  File \"c:\\programdata\\corecustom\\electronic-payments\\venv3-8-0\\lib\\site-packages\\tornado\\netutil.py\", line 279, in add_\r\naccept_handler\r\n    io_loop.add_handler(sock, accept_handler, IOLoop.READ)\r\n  File \"c:\\programdata\\corecustom\\electronic-payments\\venv3-8-0\\lib\\site-packages\\tornado\\platform\\asyncio.py\", line 99,\r\n in add_handler\r\n    self.asyncio_loop.add_reader(fd, self._handle_events, fd, IOLoop.READ)\r\n  File \"c:\\users\\docadmin\\appdata\\local\\programs\\python\\python38-32\\Lib\\asyncio\\events.py\", line 501, in add_reader\r\n    raise NotImplementedError\r\nNotImplementedError\r\n```"}}
{"actor":{"display_login":"daniel-butler"}}