Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ImportError ropevim using ropevim plugin in vim

According to the documentation of rope-vim plugin I install python-rope and python-ropemode mode packages. However when I try to open some file using vim I get following ImportError:

 Error detected while processing function LoadRope:
 line    4:
 Traceback (most recent call last):
   File "<string>", line 1, in <module>
 ImportError: No module named ropevim

I have found the ropevim module is already in plugin's directory but when I had tried to import it:

python -c "import ropevim"

I get another ImportError:

Traceback (most recent call last):
File "<string>", line 1, in <module>
File "ropevim.py", line 10, in <module>
  import vim
ImportError: No module named vim

Have I miss any package? Some ideas? Thank you for your help.

like image 505
PaulWebbster Avatar asked Dec 31 '14 13:12

PaulWebbster


People also ask

How to install Python-mode for Vim in Linux?

How to Install Python-mode for Vim in Linux. Start by installing Pathogen (makes it super easy to install plugins and runtime files in their own private directories) for easy installation of Python-mode. Run the commands below to get the pathogen.vim file and the directories it needs:

How do I install plugins in Vim?

There are two main methods of installing plugins in Vim. The first method is to install a plugin manually by copying the plugin content to a designated folder. The other, and the most common method is to install plugins via a plugin manager. Let's take a look at both methods so you can choose which one best meets your needs.

How to customize Vim editor?

If the default user interface of Vim doesn't jazz you up, you can further customize the editor with its built-in customization features using the .vimrc file. Mwiza develops software by profession and has been writing extensively on Linux and front-end programming since 2019.

What are the best Vim plugins for Git integration?

Fugitive is touted as one of the best Vim plugins for Git integration. The name Fugitive stems from the fact that the creators think that it's so awesome that it should be illegal. Fugitive works more as a Git commands wrapper, and its syntax is very similar to that of Git. To run any Git commands, simply add the :Git prefix to your commands.


2 Answers

Install ropevim using pip install ropevim

like image 104
Himanshu Pandey Avatar answered Sep 22 '22 11:09

Himanshu Pandey


ropevim is currently a Python 2 project.

pip2 install --user --update ropevim
like image 29
Tom Hale Avatar answered Sep 22 '22 11:09

Tom Hale