Bug 658568 - pychecker doesn't work
Summary: pychecker doesn't work
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: pychecker
Version: 14
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: ---
Assignee: Vitezslav Crhonek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-11-30 18:09 UTC by Chris Siebenmann
Modified: 2011-06-15 21:01 UTC (History)
2 users (show)

Fixed In Version: pychecker-0.8.19-1.fc14
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-01-24 21:00:07 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Chris Siebenmann 2010-11-30 18:09:13 UTC
Description of problem:
pychecker doesn't work at all on Fedora 14. Attempting to use it throws an
internal error, regardless of what you are trying to use it on (even really
simple files).

Version-Release number of selected component (if applicable):
pychecker-0.8.17-11.fc14.noarch

Steps to Reproduce:
1. create a very simple python file:

$ cat tst.py
def test(arg):
        return arg == "ten"

2. run pychecker on this file
  
Actual results:

$ pychecker tst.py
Processing tst...

Warnings...

tst.py:2: INTERNAL ERROR -- STOPPED PROCESSING FUNCTION --
        Traceback (most recent call last):
          File "/usr/lib/python2.7/site-packages/pychecker/warn.py", line 226, in _checkFunction
            _checkCode(code, codeSource)
          File "/usr/lib/python2.7/site-packages/pychecker/warn.py", line 146, in _checkCode
            op, oparg, operand = code.popNextOp()
          File "/usr/lib/python2.7/site-packages/pychecker/CodeChecks.py", line 805, in popNextOp
            operand = OP.getOperand(op, self.func_code, oparg)
          File "/usr/lib/python2.7/site-packages/pychecker/OP.py", line 65, in getOperand
            return func_code.co_names[oparg]
        IndexError: tuple index out of range

Expected results:

pychecker working.

Comment 1 Vitezslav Crhonek 2010-12-20 12:06:56 UTC
Pychecker doesn't support latest Python versions at the moment. The issue is reported in upstream bug tracker and Thomas is working on it, new release should be available soon:

https://sourceforge.net/mailarchive/message.php?msg_id=26781905

Comment 2 Fedora Update System 2011-01-13 11:26:04 UTC
pychecker-0.8.19-1.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/pychecker-0.8.19-1.fc14

Comment 3 Fedora Update System 2011-01-13 23:25:27 UTC
pychecker-0.8.19-1.fc14 has been pushed to the Fedora 14 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update pychecker'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/pychecker-0.8.19-1.fc14

Comment 4 Chris Siebenmann 2011-01-14 16:48:19 UTC
The updated pychecker mostly works for me, and I assume that the
remaining issue is again an upstream one. The following code will
fail to check:

def exam(queue, *args):
        queue[0:0] = args

The updated pychecker dies with an error:
   NotImplementedError: No DISPATCH member for op 43

Comment 5 Vitezslav Crhonek 2011-01-24 12:20:26 UTC
Thanks for feedback Chris. I submitted the update for stable. I know that there are still issues, but it's much better than nothing. Also note that upstream is working hard and according to information he got me, the next version will not be too far off. I'll update all supported Fedora releases as soon as it will be available.

Comment 6 Fedora Update System 2011-01-24 21:00:02 UTC
pychecker-0.8.19-1.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 7 Ben Liblit 2011-05-04 18:49:39 UTC
The example code given in comment #4 still fails under Fedora 14 using pychecker-0.8.19-1.fc14.  It also fails under Fedora 15 beta using pychecker-0.8.19-2.fc15.

This bug should be reopened.  I'd do that myself, but it seems I don't have permission to do so: the "Status" field is not editable by me.

Comment 8 Ben Liblit 2011-06-13 01:31:13 UTC
Hello?  Is anyone home?  Per comment #7, this bug should be reopened.  Please?

Comment 9 Vitezslav Crhonek 2011-06-15 13:05:33 UTC
(In reply to comment #8)
> Hello?  Is anyone home?  Per comment #7, this bug should be reopened.  Please?

Hi Ben,

Please open new bug, pychecker originally didn't work with Python2.7 at all. Compared to it this is a minor problem and should be resolved separately. Thanks!

Comment 10 Ben Liblit 2011-06-15 21:01:20 UTC
New bug 713591 filed for the problem first described here in comment #4.  Thanks, Vitezslav!


Note You need to log in before you can comment on or make changes to this bug.