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

AttributeError: 'NoneType' object has no attribute 'pycore' [@ codeassist.get_doc:56] when creating new rope project #1

Closed mcepl closed 10 years ago

mcepl commented 10 years ago

When starting the first action with ropevim (code out of tip of repo, with python-ropemode-0.2-1.el7 and python-rope-0.9.4-3.el7 on RHEL-7/x86_64, python-2.7.5-7.el7.x86_64).

Rope project root folder: .0. yes
1. no
Project not exists in ., create one?yProject creation aborted
Error detected while processing function RopeShowDoc:
line    1:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.7/site-packages/ropemode/decorators.py", line 53, in newf
unc
    return func(*args, **kwds)
  File "/usr/lib/python2.7/site-packages/ropemode/interface.py", line 183, in show
_doc
    self._base_show_doc(prefix, self._base_get_doc(codeassist.get_doc))
  File "/usr/lib/python2.7/site-packages/ropemode/interface.py", line 217, in _bas
e_get_doc
    self.resource, maxfixes)
  File "/usr/lib/python2.7/site-packages/rope/contrib/codeassist.py", line 56, in
get_doc
    fixer = fixsyntax.FixSyntax(project.pycore, source_code,
AttributeError: 'NoneType' object has no attribute 'pycore'    
mcepl commented 10 years ago

This is probably incorrectly installed ropevim. Now, when installed from the repo code, it seems to work correctly.

mcepl commented 10 years ago

Closing as INVALID.