Hi,
When using pychecker 0.8.18 on our code base it gives various import
errors, without a backtrace as the error happens within pychecker itself.
The error can be made visible by changing line 516 from:
for filename, line, func, text in tbinfo[1:]:
To:
for filename, line, func, text in tbinfo:
This shows the error is at line 628 of checker.py:
if not pcmodules.getPCModule(self.moduleName).module :
The problem is that "pcmodules.getPCModule(self.moduleName)"
Returns None.
After this I lost track of what is happening.
To reproduce do:
git clone http://git.fedorahosted.org/git/anaconda.git
cd anaconda
export PYTHONPATH="isys:textw:iw:installclasses:/usr/lib/booty"
pychecker anaconda *.py textw/*.py iw/*.py installclasses/*.py isys/*.py
You will then also see quite a few errors about missing (native) modules,
but those can be ignored (or fixed by first doing make if you've all the
necessary libs installed).
Then you will see an error importing constants:
Processing module constants (constants.py)...
Caught exception importing module constants:
File "/usr/lib/python2.5/site-packages/pychecker/checker.py", line 628,
in load()
if not pcmodules.getPCModule(self.moduleName).module :
AttributeError: 'NoneType' object has no attribute 'module'
And more errors like these for other modules. Building the native modules
does not help here. Note that doing the same with pychecker-0.8.17 works
fine.
Nobody/Anonymous
None
0.8.19
Public
|
Date: 2009-06-27 18:47 My mistake, not properly distinguishing between '' and None as moduleDir, |
|
Date: 2009-06-27 18:26 After implementing bisection in moap, I ran it to find where it broke: |
|
Date: 2009-06-26 11:50 Interestingly enough, this doesn't fail: |
|
Date: 2009-06-25 13:32 minimum trigger: pychecker backend.py constants.py |
|
Date: 2009-06-25 13:28 You also need pykickstart installed, I think. |
| Field | Old Value | Date | By |
|---|---|---|---|
| artifact_group_id | None | 2009-06-27 18:47 | thomasvs |
| allow_comments | 0 | 2009-06-27 18:47 | thomasvs |
| status_id | Open | 2009-06-27 18:47 | thomasvs |
| resolution_id | None | 2009-06-27 18:47 | thomasvs |
| allow_comments | 1 | 2009-06-27 18:47 | thomasvs |
| close_date | - | 2009-06-27 18:47 | thomasvs |
Copyright © 2009 Geeknet, Inc. All rights reserved. Terms of Use