python-rope / ropevim

vim mode that uses rope library to provide features like python refactorings and code-assists
GNU General Public License v2.0
247 stars 34 forks source link

ImportError: No module named ropemode.decorators #48

Closed ghost closed 8 years ago

ghost commented 9 years ago

It seems that ropemode must be installed too, right?

$ vim scripts/create_dataset.py 
Error detected while processing function LoadRope:
line    4:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/jul/.vim/plugged/ropevim/ropevim.py", line 6, in <module>
    import ropemode.decorators
ImportError: No module named ropemode.decorators
mcepl commented 8 years ago

Yes, see setup.py.

toomanycats commented 7 years ago

I have the exact same issue on rhel7 with VIM 7.4 I just updated the plugin via Vundle.

Ran the setup.py install script. I also tried to rebuild, then install.

mcepl commented 7 years ago

Ran the setup.py install script.

And what was the result of the script? Did it say something on the output?

toomanycats commented 7 years ago

Sorry for the late reply.

I don't recall the output message, but it didn't help. What did work, was to clone ropemode into my home, then export the PYTHONPATH rather than using the vundle .vim directory.

I'm kinda fuzzy about the details. I'll try to retrace my steps and update this post. Thx for checking.

mcepl commented 7 years ago

Note, once again, this line in README:

First add ropevim folder to the PYTHONPATH
(or install it using python setup.py install).

and take a look at https://pypi.python.org/pypi/ropevim/ … that package when properly installed pulls in ropemode. Simple

pip install ropevim

should be all needed (and yes, I should upgrade README), pull request welcome.