{"action":"created","issue":{"url":"https://api.github.com/repos/Valloric/YouCompleteMe/issues/1388","labels_url":"https://api.github.com/repos/Valloric/YouCompleteMe/issues/1388/labels{/name}","comments_url":"https://api.github.com/repos/Valloric/YouCompleteMe/issues/1388/comments","events_url":"https://api.github.com/repos/Valloric/YouCompleteMe/issues/1388/events","html_url":"https://github.com/Valloric/YouCompleteMe/issues/1388","id":58680168,"number":1388,"title":"YCM does not see packages from pyenv virtualenv","user":{"login":"Glueon","id":11168720,"avatar_url":"https://avatars.githubusercontent.com/u/11168720?v=3","gravatar_id":"","url":"https://api.github.com/users/Glueon","html_url":"https://github.com/Glueon","followers_url":"https://api.github.com/users/Glueon/followers","following_url":"https://api.github.com/users/Glueon/following{/other_user}","gists_url":"https://api.github.com/users/Glueon/gists{/gist_id}","starred_url":"https://api.github.com/users/Glueon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Glueon/subscriptions","organizations_url":"https://api.github.com/users/Glueon/orgs","repos_url":"https://api.github.com/users/Glueon/repos","events_url":"https://api.github.com/users/Glueon/events{/privacy}","received_events_url":"https://api.github.com/users/Glueon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-02-24T01:29:07Z","updated_at":"2015-03-03T16:32:42Z","closed_at":null,"body":"I have VIM 7.4 and  the latest YCM with Jedi and bunch of other plugins.   \r\nI use jedi-vim in a limited mode so I could see the named of function arguments as I type in and use such a config:\r\n```\r\n\" jedi-vim {\r\nlet g:jedi#auto_vim_configuration = 0\r\nlet g:jedi#popup_on_dot = 0\r\nlet g:jedi#popup_select_first = 0\r\nlet g:jedi#completions_enabled = 0\r\nlet g:jedi#completions_command = \"\"\r\nlet g:jedi#show_call_signatures = \"1\"\r\n\r\nlet g:jedi#goto_assignments_command = \"<leader>pa\"\r\nlet g:jedi#goto_definitions_command = \"<leader>pd\"\r\nlet g:jedi#documentation_command = \"<leader>pk\"\r\nlet g:jedi#usages_command = \"<leader>pu\"\r\nlet g:jedi#rename_command = \"<leader>pr\"\r\n\" }\r\n\"\r\n```\r\nFor creating virtualenvs I use pyenv-virtualenv:\r\n\r\n    cd ~/my-env-dir\r\n    pyenv virtualenv 3.4.2 3.4.2-my_env\r\n    pyenv local 3.4.2-my_env\r\n    pip install redis\r\n    ...\r\nThe problem is that when I launch VIM it does see packages installed into virtualenv.    \r\nBy looking around the issues I found [this](https://github.com/Valloric/YouCompleteMe/issues/380).  But all the suggestions in it do not work with pyenv. They try to trigger `activate.py` which does not exist in **PyEnv** .    \r\nAlso I found pyenv-vim plugin, but if I add YCM complains on start:\r\n```\r\nError detected while processing function youcompleteme#Enable..<SNR>105_SetUpPython:\r\nline    6:\r\nTraceback (most recent call last):\r\nPress ENTER or type command to continue\r\nError detected while processing function youcompleteme#Enable..<SNR>105_SetUpPython:\r\nline    6:\r\n  File \"<string>\", line 1, in <module>\r\nError detected while processing function youcompleteme#Enable..<SNR>105_SetUpPython:\r\nline    6:\r\n  File \"/home/user/.vim/bundle/YouCompleteMe/autoload/../third_party/ycmd/ycmd/utils.py\", line 25, in <module>\r\nError detected while processing function youcompleteme#Enable..<SNR>105_SetUpPython:\r\nline    6:\r\n    import socket\r\nError detected while processing function youcompleteme#Enable..<SNR>105_SetUpPython:\r\nline    6:\r\n  File \"/home/user/.pyenv/versions/3.4.2/lib/python3.4/socket.py\", line 193\r\nError detected while processing function youcompleteme#Enable..<SNR>105_SetUpPython:\r\nline    6:\r\n    def makefile(self, mode=\"r\", buffering=None, *,\r\nError detected while processing function youcompleteme#Enable..<SNR>105_SetUpPython:\r\nline    6:                                                  ^\r\nError detected while processing function youcompleteme#Enable..<SNR>105_SetUpPython:\r\nline    6:\r\nSyntaxError: invalid syntax\r\n```\r\nI am using Python 3 so maybe that is somehow the problem here."},"comment":{"url":"https://api.github.com/repos/Valloric/YouCompleteMe/issues/comments/76980461","html_url":"https://github.com/Valloric/YouCompleteMe/issues/1388#issuecomment-76980461","issue_url":"https://api.github.com/repos/Valloric/YouCompleteMe/issues/1388","id":76980461,"user":{"login":"Glueon","id":11168720,"avatar_url":"https://avatars.githubusercontent.com/u/11168720?v=3","gravatar_id":"","url":"https://api.github.com/users/Glueon","html_url":"https://github.com/Glueon","followers_url":"https://api.github.com/users/Glueon/followers","following_url":"https://api.github.com/users/Glueon/following{/other_user}","gists_url":"https://api.github.com/users/Glueon/gists{/gist_id}","starred_url":"https://api.github.com/users/Glueon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Glueon/subscriptions","organizations_url":"https://api.github.com/users/Glueon/orgs","repos_url":"https://api.github.com/users/Glueon/repos","events_url":"https://api.github.com/users/Glueon/events{/privacy}","received_events_url":"https://api.github.com/users/Glueon/received_events","type":"User","site_admin":false},"created_at":"2015-03-03T16:32:42Z","updated_at":"2015-03-03T16:32:42Z","body":"> Your Vim does not have support for Python3.\r\n> Do you have the :py3 / :py3file commands then after all?\r\nNo, I don't. I know I have no 'py3' support because if I remember that correctly `ycm` complained that I do not have python feature enabled if I compiled both `python` and `python3`. I think that was the intention for dropping `python3` support.\r\n\r\n> Yes, but activating the virtualenv before starting Vim should get you there, too.\r\n`pyenv local ...` will work as I understand?"}}