在Ubuntu 12.04,用Vim 7.4,繩0.10.2,ropemode 0.2和0.5.0 ropevimRopevim不工作:AttributeError的: 'NoneType' 對象有沒有屬性 'pycore'
當我嘗試創建一個新的Rope項目(使用:RopeRename命令),我總是得到錯誤 AttributeError: 'NoneType' object has no attribute 'pycore'
我嘗試了一些其他命令(:RopeMove,:RopeShowDoc,:RopeChangeSignature),並且錯誤總是相同的。
我試過不同的方式安裝ropevim。 第一個使用.vim/bundle解壓縮,並運行sudo python setup.py install
。
然後我嘗試刪除它已安裝的文件,並從pip安裝它,而不是修改PYTHONPATH。
但總是我得到同樣的錯誤。
欲瞭解更多信息,如果我在vim一個
:python import sys; print(sys.path)
問題,我得到如下:
['/usr/lib/pymodules/python2.7', '/usr/lib/python2.7/dist-packages/PIL', '/usr/local/lib/python2.7/dist-packages/aeroolib-1.2.0-py2.7.egg', '/usr/local/lib/python2.7/dist-packages/Genshi-0.7-py2.7-linux-x86_64.egg', '/usr/local/lib/python2.7/dist-packages/SimpleGUITk-1.1.3-py2.7.egg', '/usr/local/lib/python2.7/dist-packages/clonedigger-1.1.0-py2.7.egg', '/usr/local/lib/python2.7/dist-packages/sphinx_patchqueue-0.4.0-py2.7.egg', '/usr/local/lib/python2.7/dist-packages/mercurial-3.1.2-py2.7-linux-x86_64.egg', '/usr/ local/lib/python2.7/dist-packages/Sphinx-1.3b1-py2.7.egg', '/usr/local/lib/python2.7/dist-packages/snowballstemmer-1.2.0-py2.7.egg', '/usr/local/lib/python2.7/dist-packages/docutils-0.12-py2.7.egg', '/usr/local/lib/python2.7/dist-packages/six-1.8.0-py2.7.egg', '/usr/local/lib/python2.7/dist-packages/pyrg-0.2.6-py2.7.egg', '/usr/local/lib/python2.7/dist-packages/ropevim-0.5.0-py2.7.egg', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/ usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/gst-0.10', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/python2.7/dist-packages/wx-2.6-gtk2-unicode', '_vim_path_']
我與編譯vim的版本,試了一下我的電腦上,但也可以在Ubuntu 14.04上使用vim軟件包。
你知道我應該如何安裝它嗎?
感謝您的幫助。