[Ironpython-users] pylint fails randomly

Pawel Jasinski pawel.jasinski at gmail.com
Wed May 28 10:22:56 CEST 2014


Hi,

I am observing random crashes when trying to run pylint.
Anybody out there has experience anything similar?


Usually a run gets through a couple of modules and than throws.

 ipy -m pylint.lint -r n eax

... skip standard log of pylint ...

Unhandled exception:
Traceback (most recent call last):
  File "C:\Program Files (x86)\IronPython 2.7\Lib\runpy.py", line 175, in
run_module
  File
"C:\Users\rejap\AppData\Roaming\Python\IronPython27\site-packages\pylint\lint.py",
line 1094, in <module>
  File
"C:\Users\rejap\AppData\Roaming\Python\IronPython27\site-packages\pylint\lint.py",
line 628, in check
  File "C:\Program Files (x86)\IronPython 2.7\Lib\runpy.py", line 81, in
_run_module_code
  File "C:\Program Files (x86)\IronPython 2.7\Lib\runpy.py", line 72, in
_run_code
  File
"C:\Users\rejap\AppData\Roaming\Python\IronPython27\site-packages\pylint\lint.py",
line 1039, in __init__
  File
"C:\Users\rejap\AppData\Roaming\Python\IronPython27\site-packages\pylint\checkers\similar.py",
line 304, in close
  File
"C:\Users\rejap\AppData\Roaming\Python\IronPython27\site-packages\pylint\checkers\similar.py",
line 75, in _compute_sims
TypeError: cannot compare sets using cmp()


Run again, this time it comes out faster:

Unhandled exception:
Traceback (most recent call last):
  File "C:\Program Files (x86)\IronPython 2.7\Lib\runpy.py", line 175, in
run_module
  File
"C:\Users\rejap\AppData\Roaming\Python\IronPython27\site-packages\pylint\lint.py",
line 1039, in __init__
  File
"C:\Users\rejap\AppData\Roaming\Python\IronPython27\site-packages\pylint\lint.py",
line 621, in check
  File
"C:\Users\rejap\AppData\Roaming\Python\IronPython27\site-packages\pylint\lint.py",
line 707, in check_astroid_module
  File
"C:\Users\rejap\AppData\Roaming\Python\IronPython27\site-packages\pylint\utils.py",
line 715, in walk
  File
"C:\Users\rejap\AppData\Roaming\Python\IronPython27\site-packages\pylint\utils.py",
line 715, in walk
  File
"C:\Users\rejap\AppData\Roaming\Python\IronPython27\site-packages\pylint\utils.py",
line 715, in walk
  File
"C:\Users\rejap\AppData\Roaming\Python\IronPython27\site-packages\pylint\utils.py",
line 715, in walk
  File
"C:\Users\rejap\AppData\Roaming\Python\IronPython27\site-packages\pylint\utils.py",
line 715, in walk
  File
"C:\Users\rejap\AppData\Roaming\Python\IronPython27\site-packages\pylint\utils.py",
line 715, in walk
  File
"C:\Users\rejap\AppData\Roaming\Python\IronPython27\site-packages\pylint\utils.py",
line 715, in walk
  File
"C:\Users\rejap\AppData\Roaming\Python\IronPython27\site-packages\pylint\utils.py",
line 712, in walk
  File
"C:\Users\rejap\AppData\Roaming\Python\IronPython27\site-packages\pylint\checkers\typecheck.py",
line 210, in visit_getattr
  File
"C:\Users\rejap\AppData\Roaming\Python\IronPython27\site-packages\astroid\bases.py",
line 166, in getattr
  File
"C:\Users\rejap\AppData\Roaming\Python\IronPython27\site-packages\astroid\scoped_nodes.py",
line 979, in getattr
  File "C:\Program Files (x86)\IronPython 2.7\Lib\contextlib.py", line 35,
in __exit__
  File
"C:\Users\rejap\AppData\Roaming\Python\IronPython27\site-packages\astroid\bases.py",
line 87, in restore_path
  File "C:\Program Files (x86)\IronPython 2.7\Lib\runpy.py", line 81, in
_run_module_code
  File "C:\Program Files (x86)\IronPython 2.7\Lib\runpy.py", line 72, in
_run_code
  File
"C:\Users\rejap\AppData\Roaming\Python\IronPython27\site-packages\pylint\lint.py",
line 1094, in <module>
GeneratorExit: Exception of type
'IronPython.Runtime.Exceptions.GeneratorExitException' was thrown.

The second comes more ofter than first.
I also tried -X:Frame, -X:FullFrame, -X:ExceptionDetails, -X:MTA (out of
desperation)
The only think is, that it keeps the random pattern. At the beginning I
blamed fixes in the actual code for changing the test condition, but now I
do not change anything.

I checked codeplex for generator related issues and there are a couple of
hits.
For now I will probably validate them against 2.7.5b2 and vote everything
what is still broken.

Any suggestion on how to attack the problem triggered by pylint are greatly
appreciated.


--pawel


If you are still reading, I attached output from:
ipy -X:FullFrames -X:ExceptionDetail -m pylint.lint -r n eax
sample 1-3

and
~/github/IronLanguages/bin/Debug/ipy -X:FullFrames -X:ExceptionDetail -m
pylint.lint -r n eax
sample 4-5
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20140528/85c15251/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pylint-run1.out
Type: application/octet-stream
Size: 12961 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20140528/85c15251/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pylint-run2.out
Type: application/octet-stream
Size: 10928 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20140528/85c15251/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pylint-run3.out
Type: application/octet-stream
Size: 13579 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20140528/85c15251/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pylint-run4.out
Type: application/octet-stream
Size: 18714 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20140528/85c15251/attachment-0003.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pylint-run5.out
Type: application/octet-stream
Size: 20025 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20140528/85c15251/attachment-0004.obj>


More information about the Ironpython-users mailing list