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

pylint fails with astroid 1.3.2, common 0.63.2 #76

Closed
laserson opened this issue Dec 10, 2014 · 3 comments
Closed

pylint fails with astroid 1.3.2, common 0.63.2 #76

laserson opened this issue Dec 10, 2014 · 3 comments

Comments

@laserson
Copy link

$ prospector --tool pylint -X
Traceback (most recent call last):
  File "/usr/local/bin/prospector", line 9, in <module>
    load_entry_point('prospector==0.7.4', 'console_scripts', 'prospector')()
  File "/usr/local/lib/python2.7/site-packages/prospector/run.py", line 320, in main
    prospector.execute()
  File "/usr/local/lib/python2.7/site-packages/prospector/run.py", line 227, in execute
    messages += tool.run()
  File "/usr/local/lib/python2.7/site-packages/prospector/tools/pylint/__init__.py", line 182, in run
    self._linter.check(self._args)
  File "/usr/local/lib/python2.7/site-packages/pylint/lint.py", line 585, in check
    self.check_astroid_module(astroid, walker, rawcheckers, tokencheckers)
  File "/usr/local/lib/python2.7/site-packages/pylint/lint.py", line 662, in check_astroid_module
    walker.walk(astroid)
  File "/usr/local/lib/python2.7/site-packages/pylint/utils.py", line 804, in walk
    self.walk(child)
  File "/usr/local/lib/python2.7/site-packages/pylint/utils.py", line 804, in walk
    self.walk(child)
  File "/usr/local/lib/python2.7/site-packages/pylint/utils.py", line 801, in walk
    cb(astroid)
  File "/usr/local/lib/python2.7/site-packages/pylint/checkers/classes.py", line 351, in visit_function
    and klass._is_subtype_of(overridden_frame.qname())):
AttributeError: 'Class' object has no attribute '_is_subtype_of'

Seems this problem was fixed with Pylint 1.4:
https://bitbucket.org/logilab/pylint/issue/384

However, prospector requires pylint<1.4.

@jquast
Copy link
Contributor

jquast commented Jan 2, 2015

I went ahead and re-opened #75, a duplicate. I closed it at the time, it sounded like it was already being addressed but it is still an issue, hopefully it will help others find existing issues next time.

@jquast
Copy link
Contributor

jquast commented Jan 2, 2015

You can find a workaround in #73 -- basically, forcefully upgrading pylint to 1.4, clobber pylint's hard-requirement on <1.4 in its requires.txt in the installed egg.

@carlio
Copy link
Member

carlio commented Jan 2, 2015

The 0.8 release which just appeared will fix this, see #73 (comment)

@carlio carlio closed this as completed Jan 2, 2015
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

3 participants