[Bug 989252] Re: pylint-gui throws exception when running file or package

Hans Joachim Desserud 989252 at bugs.launchpad.net
Tue Jun 16 17:15:40 UTC 2015


>Does this still needs to be fixed?

Thanks for the reminder. :) I checked now and I am no longer able to
trigger this issue with pylint 1.1.0-1 on Ubuntu 14.04 or later. This
newer version presumably contains the upstream fix, so I'm closing this
as fix released.

However, pylint 0.25.0-1ubuntu1 on Ubuntu 12.04 is still affected and
this is a rather serious issue. If someone need a fix for the bug for
12.04, please perform as much as possible of the SRU Procedure [1] to
bring the need to a developer's attention.  I may be able to help out a
bit here with preparing a debdiff with the attached patch. :)

[1]: https://wiki.ubuntu.com/StableReleaseUpdates#Procedure

** Changed in: pylint (Ubuntu)
       Status: Confirmed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to pylint in Ubuntu.
https://bugs.launchpad.net/bugs/989252

Title:
  pylint-gui throws exception when running file or package

Status in analyzes Python source code looking for bugs and signs of poor quality.:
  Unknown
Status in pylint package in Ubuntu:
  Fix Released

Bug description:
  Open a file or package in pylint-gui and press the "run" button,
  nothing happens and following exception is printed in the terminal:

  Exception in thread Thread-1:
  Traceback (most recent call last):
    File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
      self.run()
    File "/usr/lib/python2.7/threading.py", line 504, in run
      self.__target(*self.__args, **self.__kwargs)
    File "/usr/lib/python2.7/dist-packages/pylint/gui.py", line 439, in lint_thread
      lint_obj = pylint.lint.Run(args=[module], reporter=reporter, exit=False)
    File "/usr/lib/python2.7/dist-packages/pylint/lint.py", line 874, in __init__
      linter.check(args)
    File "/usr/lib/python2.7/dist-packages/pylint/lint.py", line 496, in check
      self.check_astng_module(astng, walker, rawcheckers)
    File "/usr/lib/python2.7/dist-packages/pylint/lint.py", line 566, in check_astng_module
      checker.process_module(astng)
    File "/usr/lib/python2.7/dist-packages/pylint/checkers/format.py", line 191, in process_module
      self.process_tokens(tokenize.generate_tokens(readline))
    File "/usr/lib/python2.7/dist-packages/pylint/checkers/format.py", line 224, in process_tokens
      self.new_line(tok_type, line, line_num, junk)
    File "/usr/lib/python2.7/dist-packages/pylint/checkers/format.py", line 197, in new_line
      self.check_lines(line, line_num)
    File "/usr/lib/python2.7/dist-packages/pylint/checkers/format.py", line 325, in check_lines
      self.add_message('C0301', line=i, args=(len(line), max_chars))
    File "/usr/lib/python2.7/dist-packages/pylint/checkers/__init__.py", line 97, in add_message
      self.linter.add_message(msg_id, line, node, args)
    File "/usr/lib/python2.7/dist-packages/pylint/utils.py", line 280, in add_message
      self.reporter.add_message(msgid, (path, module, obj, line or 1, col_offset or 0), msg)
    File "/usr/lib/python2.7/dist-packages/pylint/reporters/guireporter.py", line 24, in add_message
      module, obj, line = location[1:]
  ValueError: too many values to unpack

  ProblemType: Bug
  DistroRelease: Ubuntu 12.04
  Package: pylint 0.25.0-1ubuntu1
  ProcVersionSignature: Ubuntu 3.2.0-23.36-generic 3.2.14
  Uname: Linux 3.2.0-23-generic x86_64
  NonfreeKernelModules: nvidia
  ApportVersion: 2.0.1-0ubuntu5
  Architecture: amd64
  Date: Thu Apr 26 23:18:35 2012
  InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Beta amd64 (20120421)
  PackageArchitecture: all
  ProcEnviron:
   LANGUAGE=nl_BE:nl
   TERM=xterm
   PATH=(custom, user)
   LANG=nl_BE.UTF-8
   SHELL=/bin/bash
  SourcePackage: pylint
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/pylint/+bug/989252/+subscriptions



More information about the foundations-bugs mailing list