{"action":"closed","issue":{"url":"https://api.github.com/repos/neovim/neovim/issues/1829","labels_url":"https://api.github.com/repos/neovim/neovim/issues/1829/labels{/name}","comments_url":"https://api.github.com/repos/neovim/neovim/issues/1829/comments","events_url":"https://api.github.com/repos/neovim/neovim/issues/1829/events","html_url":"https://github.com/neovim/neovim/issues/1829","id":54570597,"number":1829,"title":"Using with Python3","user":{"login":"leebrooks0","id":2501773,"avatar_url":"https://avatars.githubusercontent.com/u/2501773?v=3","gravatar_id":"","url":"https://api.github.com/users/leebrooks0","html_url":"https://github.com/leebrooks0","followers_url":"https://api.github.com/users/leebrooks0/followers","following_url":"https://api.github.com/users/leebrooks0/following{/other_user}","gists_url":"https://api.github.com/users/leebrooks0/gists{/gist_id}","starred_url":"https://api.github.com/users/leebrooks0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leebrooks0/subscriptions","organizations_url":"https://api.github.com/users/leebrooks0/orgs","repos_url":"https://api.github.com/users/leebrooks0/repos","events_url":"https://api.github.com/users/leebrooks0/events{/privacy}","received_events_url":"https://api.github.com/users/leebrooks0/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/neovim/neovim/labels/compatibility","name":"compatibility","color":"c7def8"},{"url":"https://api.github.com/repos/neovim/neovim/labels/provider","name":"provider","color":"fad8c7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":24,"created_at":"2015-01-16T12:30:07Z","updated_at":"2015-04-27T05:30:03Z","closed_at":"2015-04-27T05:30:03Z","body":"I have a python project that is using python 3.4.2 and I am using pyenv.\r\nI switched to python 2 (the system python on Linux Mint 17) and ran ```pip install neovim```.\r\n\r\nEverything then works except Jedi-Vim requires Python 3 for Python 3 project support. So I used pyenv to switch back to Python 3.4.2 and then I get a whole lot of error messages.\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"<string>\", line 1, in <module>\r\n  File \"/home/lee/.pyenv/versions/3.4.2/lib/python3.4/site-packages/neovim/__init__.py\", line 65, in start_host\r\n    host.start(plugins)\r\n  File \"/home/lee/.pyenv/versions/3.4.2/lib/python3.4/site-packages/neovim/plugin/host.py\", line 45, in start\r\n    lambda: self._load(plugins))\r\n  File \"/home/lee/.pyenv/versions/3.4.2/lib/python3.4/site-packages/neovim/api/common.py\", line 234, in run\r\n    self._session.run(filter_request_cb, filter_notification_cb, setup_cb)\r\n  File \"/home/lee/.pyenv/versions/3.4.2/lib/python3.4/site-packages/neovim/msgpack_rpc/session.py\", line 117, in run\r\n    raise self._setup_exception\r\n  File \"/home/lee/.pyenv/versions/3.4.2/lib/python3.4/site-packages/neovim/msgpack_rpc/session.py\", line 93, in on_se\r\ntup\r\n    setup_cb()\r\n  File \"/home/lee/.pyenv/versions/3.4.2/lib/python3.4/site-packages/neovim/plugin/host.py\", line 45, in <lambda>\r\n    lambda: self._load(plugins))\r\n  File \"/home/lee/.pyenv/versions/3.4.2/lib/python3.4/site-packages/neovim/plugin/host.py\", line 90, in _load\r\n    self._discover_classes(module, handlers, path)\r\n  File \"/home/lee/.pyenv/versions/3.4.2/lib/python3.4/site-packages/neovim/plugin/host.py\", line 114, in _discover_cl\r\nasses\r\n    plugin = cls(self._configure_nvim_for(cls))\r\n  File \"/usr/share/nvim/runtime/autoload/provider/script_host.py\", line 38, in __init__\r\n    encoding=nvim.options['encoding'].decode('ascii')))\r\n  File \"/home/lee/.pyenv/versions/3.4.2/lib/python3.4/site-packages/neovim/api/common.py\", line 39, in __getitem__\r\n    return self._get(key)\r\n  File \"/home/lee/.pyenv/versions/3.4.2/lib/python3.4/site-packages/neovim/api/common.py\", line 255, in <lambda>\r\n    return lambda *args: session.request(method, *args)\r\n  File \"/home/lee/.pyenv/versions/3.4.2/lib/python3.4/site-packages/neovim/api/common.py\", line 221, in request\r\n    'out-request')\r\n  File \"/home/lee/.pyenv/versions/3.4.2/lib/python3.4/site-packages/neovim/api/common.py\", line 248, in walk\r\n    return fn(obj, *args)\r\n  File \"/home/lee/.pyenv/versions/3.4.2/lib/python3.4/site-packages/neovim/api/common.py\", line 155, in <lambda>\r\n    return lambda o, s, m, k: f1(f2(o, s, m, k), s, m, k)\r\n  File \"/home/lee/.pyenv/versions/3.4.2/lib/python3.4/site-packages/neovim/api/common.py\", line 177, in _decode_if_by\r\ntes\r\n    return obj.decode(self.encoding, errors=self.encoding_errors)\r\nTypeError: decode() argument 1 must be str, not bytes\r\nException ignored in: <script_host.RedirectStream object at 0x7ff8e194a780>\r\nAttributeError: 'RedirectStream' object has no attribute 'flush'\r\n```\r\n\r\nIs it possible to use Python 3?"}}