{"action":"created","issue":{"url":"https://api.github.com/repos/Lukasa/hyper/issues/94","labels_url":"https://api.github.com/repos/Lukasa/hyper/issues/94/labels{/name}","comments_url":"https://api.github.com/repos/Lukasa/hyper/issues/94/comments","events_url":"https://api.github.com/repos/Lukasa/hyper/issues/94/events","html_url":"https://github.com/Lukasa/hyper/issues/94","id":60781334,"number":94,"title":"hyper do not work on my Fedora","user":{"login":"michal-niklas","id":9588654,"avatar_url":"https://avatars.githubusercontent.com/u/9588654?v=3","gravatar_id":"","url":"https://api.github.com/users/michal-niklas","html_url":"https://github.com/michal-niklas","followers_url":"https://api.github.com/users/michal-niklas/followers","following_url":"https://api.github.com/users/michal-niklas/following{/other_user}","gists_url":"https://api.github.com/users/michal-niklas/gists{/gist_id}","starred_url":"https://api.github.com/users/michal-niklas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michal-niklas/subscriptions","organizations_url":"https://api.github.com/users/michal-niklas/orgs","repos_url":"https://api.github.com/users/michal-niklas/repos","events_url":"https://api.github.com/users/michal-niklas/events{/privacy}","received_events_url":"https://api.github.com/users/michal-niklas/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Lukasa/hyper/labels/Bug","name":"Bug","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-03-12T07:31:53Z","updated_at":"2015-03-12T09:13:04Z","closed_at":null,"body":"I have problem with running Python `hyper` library that adds support for `HTTP/2` protocol.\r\n\r\nOn my Fedora machine I installed it with `pip` and `pip3` to use it with Python 2.7.8 and Python 3.4.1. Then I copied test script that connects with twitter:\r\n\r\n\tfrom hyper import HTTP20Connection\r\n\r\n\tconn = HTTP20Connection('twitter.com:443')\r\n\tconn.request('GET', '/')\r\n\tresp = conn.getresponse()\r\n\r\n\tprint(resp.read())\r\n\r\nI run it using Python 2.7.8 and it ends with error:\r\n\r\n\t[mn:/plib] 1 ‡ python hyper_test.py \r\n\tTraceback (most recent call last):\r\n\t  File \"hyper_test.py\", line 4, in <module>\r\n\t\tconn.request('GET', '/')\r\n\t  File \"/usr/lib/python2.7/site-packages/hyper/http20/connection.py\", line 149, in request\r\n\t\tself.endheaders(message_body=body, final=True, stream_id=stream_id)\r\n\t  File \"/usr/lib/python2.7/site-packages/hyper/http20/connection.py\", line 310, in endheaders\r\n\t\tself.connect()\r\n\t  File \"/usr/lib/python2.7/site-packages/hyper/http20/connection.py\", line 215, in connect\r\n\t\tself._recv_cb()\r\n\t  File \"/usr/lib/python2.7/site-packages/hyper/http20/connection.py\", line 580, in _recv_cb\r\n\t\tself._consume_single_frame()\r\n\t  File \"/usr/lib/python2.7/site-packages/hyper/http20/connection.py\", line 496, in _consume_single_frame\r\n\t\tframe, length = Frame.parse_frame_header(header)\r\n\t  File \"/usr/lib/python2.7/site-packages/hyper/http20/frame.py\", line 52, in parse_frame_header\r\n\t\tframe = FRAMES[type](stream_id)\r\n\tKeyError: 80\r\n\r\nIt ends with different error with Python 3.4.1:\r\n\r\n\t[mn:/plib] 1 ‡ python3 hyper_test.py \r\n\tTraceback (most recent call last):\r\n\t  File \"hyper_test.py\", line 4, in <module>\r\n\t\tconn.request('GET', '/')\r\n\t  File \"/usr/lib/python3.4/site-packages/hyper/http20/connection.py\", line 149, in request\r\n\t\tself.endheaders(message_body=body, final=True, stream_id=stream_id)\r\n\t  File \"/usr/lib/python3.4/site-packages/hyper/http20/connection.py\", line 310, in endheaders\r\n\t\tself.connect()\r\n\t  File \"/usr/lib/python3.4/site-packages/hyper/http20/connection.py\", line 204, in connect\r\n\t\tsock = wrap_socket(sock, self.host)\r\n\t  File \"/usr/lib/python3.4/site-packages/hyper/http20/tls.py\", line 44, in wrap_socket\r\n\t\tassert ssl_sock.selected_npn_protocol() in H2_NPN_PROTOCOLS\r\n\tAssertionError\r\n\r\n\r\nWhat can cause such problems on my environment?\r\n\r\nPS I have also asked such question on StackOverflow: http://stackoverflow.com/questions/28990996/python-hyper-library-do-not-work-on-my-environment"},"comment":{"url":"https://api.github.com/repos/Lukasa/hyper/issues/comments/78445310","html_url":"https://github.com/Lukasa/hyper/issues/94#issuecomment-78445310","issue_url":"https://api.github.com/repos/Lukasa/hyper/issues/94","id":78445310,"user":{"login":"t2y","id":96569,"avatar_url":"https://avatars.githubusercontent.com/u/96569?v=3","gravatar_id":"","url":"https://api.github.com/users/t2y","html_url":"https://github.com/t2y","followers_url":"https://api.github.com/users/t2y/followers","following_url":"https://api.github.com/users/t2y/following{/other_user}","gists_url":"https://api.github.com/users/t2y/gists{/gist_id}","starred_url":"https://api.github.com/users/t2y/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t2y/subscriptions","organizations_url":"https://api.github.com/users/t2y/orgs","repos_url":"https://api.github.com/users/t2y/repos","events_url":"https://api.github.com/users/t2y/events{/privacy}","received_events_url":"https://api.github.com/users/t2y/received_events","type":"User","site_admin":false},"created_at":"2015-03-12T09:13:04Z","updated_at":"2015-03-12T09:13:04Z","body":"That's funny, from Japan.\r\n\r\ntwitter.com.\t\t19\tIN\tA\t199.16.158.168\r\ntwitter.com.\t\t19\tIN\tA\t199.16.158.179"}}