Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E117: Unknown function: IPyConnect #2

Closed
dpavlic opened this issue Dec 21, 2014 · 9 comments
Closed

E117: Unknown function: IPyConnect #2

dpavlic opened this issue Dec 21, 2014 · 9 comments

Comments

@dpavlic
Copy link

dpavlic commented Dec 21, 2014

This looks like an interesting project; however, I can't get it off the ground. I insall the plugin via BundleInstall, start neovim, and attempt :IPython but I get:

E117: Unknown function: IPyConnect

I've just started using Neovim from Vim, so I may be missing something obvious.

@bfredl
Copy link
Owner

bfredl commented Dec 21, 2014

Are both neovim and its python-client relatively recent master versions? If you run :UpdateRemotePlugins and then restart neovim does it help?

@dpavlic
Copy link
Author

dpavlic commented Dec 21, 2014

It seems this is not a problem with the plugin:

Error detected while processing function <SNR>62_UpdateRemotePlugins..<SNR>62_RegistrationCommands..remote#host#Require..<SNR>62_RequirePythonHost:
line   66:
E605: Exception not caught: Failed to load python host. Try upgrading the Neovim python module with 'pip install --upgrade neovim' or see ':help nvim-python'.
Error detected while processing function <SNR>62_UpdateRemotePlugins..<SNR>62_RegistrationCommands..remote#host#Require:
line    6:
E171: Missing :endif
Error detected while processing function <SNR>62_UpdateRemotePlugins:
line    5:
E171: Missing :endif

What's strange is that the python-client is the latest version... but it's not being loaded for some reason.

@bfredl
Copy link
Owner

bfredl commented Dec 21, 2014

Unfortunately, that message is a bit misleading: the host could fail to load, because there was an error with the plugin. If you just source the python file, ie

python2 rplugin/python/nvim_ipy.py
from the root of this repo, do you get any error? (remove the 2 if python2 couldn't be found)
What version of IPython do you have?

@dpavlic
Copy link
Author

dpavlic commented Dec 21, 2014

AHA!

OK, issue is solved. The script requires pyzmq, while I had just a vanilla ipython installation.

Thanks for your help.

@bfredl
Copy link
Owner

bfredl commented Dec 21, 2014

Happy to help :) Just post here, if there is any further problem, or any suggestions. (Something obviously missing is that I haven't written almost any documentation so far)

@dpavlic
Copy link
Author

dpavlic commented Dec 21, 2014

I'm going to close the issue now, but I will let you know if I run into any trouble. I am using it right now with tears of joy :). I've migrated at least some of my Python development off to emacs/evil due to async painfulness, and even with neovim's 'alpha' state, it looks like it's time to migrate back.

@dpavlic dpavlic closed this as completed Dec 21, 2014
@justmytwospence
Copy link

I can run the script itself (ie, python .vim/plugins/nvim-ipy/rplugin/python/nvim_ipy.py), but I still get this error in neovim.

@bfredl
Copy link
Owner

bfredl commented Apr 7, 2015

@justmytwospence Have you tried :UpdateRemotePlugins and restart nvim? If it doesn't help, what is the contents of .nvim/.nvimrc-rplugin~ ?

@rsdenijs
Copy link

@bfredl. UpdateRemotePlugins solved it for me.

hstarmans added a commit to hstarmans/nvim-ipy that referenced this issue Aug 13, 2017
After install one must run ":UpdateRemotePlugins" to prevent a problem, see bfredl#2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants