pylint-bot / astroid-unofficial

UNOFFICIAL playground for astroid github migration
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Error after upgrade to pylint 1.0 #3

Closed pylint-bot closed 8 years ago

pylint-bot commented 11 years ago

Originally reported by: Victor Safronovich (BitBucket: suvit, GitHub: suvit)


Traceback

#!python

Traceback (most recent call last):
  File "manage.py", line 11, in <module>
    execute_from_command_line(sys.argv)
  File "</ws/env/local/lib/python2.7/site-packages/django/core/management/__init__.py",> line 443, in execute_from_command_line
    utility.execute()
  File "</ws/env/local/lib/python2.7/site-packages/django/core/management/__init__.py",> line 382, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "</ws/env/local/lib/python2.7/site-packages/django/core/management/base.py",> line 196, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "</ws/env/local/lib/python2.7/site-packages/django/core/management/base.py",> line 232, in execute
    output = self.handle(*args, **options)
  File "</ws/env/local/lib/python2.7/site-packages/django_jenkins/management/commands/__init__.py",> line 81, in handle
    if test_runner.run_tests(test_labels):
  File "</ws/env/local/lib/python2.7/site-packages/django/test/simple.py",> line 384, in run_tests
    self.teardown_test_environment()
  File "</ws/uralautomir/theme/tests.py",> line 67, in teardown_test_environment
    signals.teardown_test_environment.send(sender=self)
  File "</ws/env/local/lib/python2.7/site-packages/django/dispatch/dispatcher.py",> line 172, in send
    response = receiver(signal=self, sender=sender, **named)
  File "</ws/env/local/lib/python2.7/site-packages/django_jenkins/tasks/run_pylint.py",> line 43, in teardown_test_environment
    lint.Run(args, reporter=ParseableTextReporter(output=self.output), exit=False)
  File "</ws/env/local/lib/python2.7/site-packages/pylint/lint.py",> line 1010, in __init__
    linter.check(args)
  File "</ws/env/local/lib/python2.7/site-packages/pylint/lint.py",> line 599, in check
    self.check_astroid_module(astroid, walker, rawcheckers, tokencheckers)
  File "</ws/env/local/lib/python2.7/site-packages/pylint/lint.py",> line 685, in check_astroid_module
    walker.walk(astroid)
  File "</ws/env/local/lib/python2.7/site-packages/pylint/utils.py",> line 662, in walk
    self.walk(child)
  File "</ws/env/local/lib/python2.7/site-packages/pylint/utils.py",> line 662, in walk
    self.walk(child)
  File "</ws/env/local/lib/python2.7/site-packages/pylint/utils.py",> line 662, in walk
    self.walk(child)
  File "</ws/env/local/lib/python2.7/site-packages/pylint/utils.py",> line 662, in walk
    self.walk(child)
  File "</ws/env/local/lib/python2.7/site-packages/pylint/utils.py",> line 659, in walk
    cb(astroid)
  File "</ws/env/local/lib/python2.7/site-packages/pylint/checkers/typecheck.py",> line 174, in visit_getattr
    if is_super(owner) or getattr(owner, 'type', None) == 'metaclass':
  File "</ws/env/local/lib/python2.7/site-packages/astroid/bases.py",> line 51, in __getattr__
    return getattr(self._proxied, name)
  File "</ws/env/local/lib/python2.7/site-packages/astroid/scoped_nodes.py",> line 681, in _class_type
    if _class_type(base, ancestors) != 'class':
  File "</ws/env/local/lib/python2.7/site-packages/astroid/scoped_nodes.py",> line 680, in _class_type
    for base in klass.ancestors(recurs=False):
  File "</ws/env/local/lib/python2.7/site-packages/astroid/scoped_nodes.py",> line 801, in ancestors
    for baseobj in stmt.infer(context):
TypeError: unbound method infer() must be called with Tuple instance as first argument (got InferenceContext instance instead)

pylint-bot commented 11 years ago

Original comment by Chris Rebert (BitBucket: cvrebert, GitHub: cvrebert):


Same issue in the pylint issue tracker: https://bitbucket.org/logilab/pylint/issue/47/typeerror-when-analyzing-python-file

pylint-bot commented 11 years ago

Original comment by Sylvain Thénault (BitBucket: sthenault, GitHub: sthenault):


See also https://bitbucket.org/logilab/pylint/issue/63/namedtuple-subclassing-crashes-pylint

pylint-bot commented 11 years ago

Original comment by Sylvain Thénault (BitBucket: sthenault, GitHub: sthenault):


should be fixed by https://bitbucket.org/logilab/astroid/commits/5ed6266cab789bc89d882444c938f03953491496