{"action":"created","issue":{"url":"https://api.github.com/repos/critiqjo/lldb.nvim/issues/24","repository_url":"https://api.github.com/repos/critiqjo/lldb.nvim","labels_url":"https://api.github.com/repos/critiqjo/lldb.nvim/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/critiqjo/lldb.nvim/issues/24/comments","events_url":"https://api.github.com/repos/critiqjo/lldb.nvim/issues/24/events","html_url":"https://github.com/critiqjo/lldb.nvim/issues/24","id":148883392,"number":24,"title":"test/run.sh hangs on OS X system python","user":{"login":"tsliwkan","id":386005,"avatar_url":"https://avatars.githubusercontent.com/u/386005?v=3","gravatar_id":"","url":"https://api.github.com/users/tsliwkan","html_url":"https://github.com/tsliwkan","followers_url":"https://api.github.com/users/tsliwkan/followers","following_url":"https://api.github.com/users/tsliwkan/following{/other_user}","gists_url":"https://api.github.com/users/tsliwkan/gists{/gist_id}","starred_url":"https://api.github.com/users/tsliwkan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsliwkan/subscriptions","organizations_url":"https://api.github.com/users/tsliwkan/orgs","repos_url":"https://api.github.com/users/tsliwkan/repos","events_url":"https://api.github.com/users/tsliwkan/events{/privacy}","received_events_url":"https://api.github.com/users/tsliwkan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-16T19:39:25Z","updated_at":"2016-04-16T20:53:17Z","closed_at":null,"body":"Trying to get this plugin working with the system python on OS X 10.11.4. Neovim is installed via homebrew with the version being `NVIM 0.1.3-dev`. \r\n\r\nRunning `test/run.sh` hangs with the last log message\r\n\r\n`[CRITICAL @ controller.py:safe_call:84] 2327 - Event Loop Thread is probably dead!`\r\n\r\nCurrently being lazy so I modified `run.sh` to be\r\n\r\n    #!/bin/bash\r\n\r\n    set -e\r\n\r\n    TEST_DIR=$( /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python -c \"from os.path import realpath\r\n    print realpath(\\\"$(dirname \"$0\")\\\")\" ) # resolve symlinks\r\n    cd \"$TEST_DIR\"\r\n    gcc -g -o ab ab.c\r\n    nvim -c 'e term:///System/Library/Frameworks/Python.framework/Versions/2.7/bin/python\\ -i\\ test.py'\r\n\r\nTo provide some more details I started by following http://blog.rplasil.name/2016/03/how-to-debug-neovim-python-remote-plugin.html.\r\n\r\nThe section in my `init.vim` for setting the python interpreter is\r\n\r\n    if has(\"unix\")\r\n        let s:uname = system(\"uname\")\r\n        if s:uname == \"Darwin\\n\"\r\n            let g:python_host_prog = '/System/Library/Frameworks/Python.framework/Versions/2.7/bin/python'\r\n        endif\r\n    endif\r\n\r\nI can echo that variable and it prints out just fine. I followed the instructions listed on that page for installing the neovim module. Launching that interpreter directly I get\r\n\r\n    Python 2.7.10 (default, Oct 23 2015, 19:19:21)\r\n    [GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.59.5)] on darwin\r\n    Type \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n    >>> import lldb\r\n    >>> import neovim\r\n    >>>\r\n\r\nThis is what my system site-packages directory looks like\r\n\r\n    [/Library/Python/2.7/site-packages]\r\n    λ l\r\n    total 296\r\n    -rw-r--r--  1 root  wheel   119B 23 Oct 20:22 README\r\n    -rw-r--r--  1 root  wheel   434B 16 Apr 12:33 easy-install.pth\r\n    drwxr-xr-x  4 root  wheel   136B 16 Apr 11:26 futures-3.0.5-py2.7.egg\r\n    drwxr-xr-x  6 root  wheel   204B 16 Apr 11:26 greenlet-0.4.9-py2.7-macosx-10.11-intel.egg\r\n    -rw-r--r--  1 root  wheel   141K 16 Apr 11:26 msgpack_python-0.4.7-py2.7-macosx-10.11-intel.egg\r\n    drwxr-xr-x  4 root  wheel   136B 16 Apr 11:26 neovim-0.1.7-py2.7.egg\r\n    drwxr-xr-x  4 root  wheel   136B 16 Apr 11:26 trollius-2.1-py2.7.egg\r\n\r\nI have `PYTHONPATH` set directly in my shell to\r\n\r\n    /Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Resources/Python\r\n\r\nAnd I can run `lldb -P` which outputs\r\n\r\n    /Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Resources/Python\r\n\r\nNote that I had to install the `six` module with\r\n\r\n    sudo /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python -m easy_install six\r\n\r\notherwise `lldb -P` would complain about that missing module.\r\n\r\nFinally, I couldn't see any discrepancies while installing the plugin and `UpdateRemotePlugins` seems to exit cleanly. Here is a screenshot of what `test/run.sh` looks like\r\n\r\n![lldb-neovim](https://cloud.githubusercontent.com/assets/386005/14583221/57e64f9a-03d8-11e6-9481-8ce3e5a187fc.png)\r\n"},"comment":{"url":"https://api.github.com/repos/critiqjo/lldb.nvim/issues/comments/210899885","html_url":"https://github.com/critiqjo/lldb.nvim/issues/24#issuecomment-210899885","issue_url":"https://api.github.com/repos/critiqjo/lldb.nvim/issues/24","id":210899885,"user":{"login":"tsliwkan","id":386005,"avatar_url":"https://avatars.githubusercontent.com/u/386005?v=3","gravatar_id":"","url":"https://api.github.com/users/tsliwkan","html_url":"https://github.com/tsliwkan","followers_url":"https://api.github.com/users/tsliwkan/followers","following_url":"https://api.github.com/users/tsliwkan/following{/other_user}","gists_url":"https://api.github.com/users/tsliwkan/gists{/gist_id}","starred_url":"https://api.github.com/users/tsliwkan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsliwkan/subscriptions","organizations_url":"https://api.github.com/users/tsliwkan/orgs","repos_url":"https://api.github.com/users/tsliwkan/repos","events_url":"https://api.github.com/users/tsliwkan/events{/privacy}","received_events_url":"https://api.github.com/users/tsliwkan/received_events","type":"User","site_admin":false},"created_at":"2016-04-16T20:53:17Z","updated_at":"2016-04-16T20:53:17Z","body":"Oops, the above `test.log` output is from\r\n    \r\n    self.logger.info(method.__name__)\r\n\r\nif I add the `args` argument I get\r\n\r\n    Note: `:LL-` commands are not bound with this test instance\r\n    Traceback (most recent call last):\r\n      File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/_\r\n    _init__.py\", line 859, in emit\r\n        msg = self.format(record)\r\n      File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/_\r\n    _init__.py\", line 732, in format\r\n        return fmt.format(record)\r\n      File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/_\r\n    _init__.py\", line 471, in format\r\n        record.message = record.getMessage()\r\n      File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/_\r\n    _init__.py\", line 335, in getMessage\r\n        msg = msg % self.args\r\n    TypeError: not all arguments converted during string formatting\r\n    Logged from file controller.py, line 69\r\n\r\n\r\n"}}