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.
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
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
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
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
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.
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.
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.
Hello? Is anyone home? Per comment #7, this bug should be reopened. Please?
(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!
New bug 713591 filed for the problem first described here in comment #4. Thanks, Vitezslav!