Re: pychecker catches IndexError exception while importing /django/db/models/base.py

2009-01-23 Thread ivan
Thanks for the suggestion. My app is named 'control' and my django project name is 'geni'. Running pychecker on the app dir raises a problem in pychecker itself -- it seemed to be that it was unable to open one of the sources files: $ pychecker control/ Processing control/... Caught exception i

Re: pychecker catches IndexError exception while importing /django/db/models/base.py

2009-01-23 Thread zvoase
I think I might be able to spot where the problem is. Try running pychecker on your app folder, rather than models.py. Let's assume your app is called myapp, so you have a directory structure something like this: myapp/ -- __init__.py -- models.py -- views.py -- tests.py (et cetera) If pychecke

pychecker catches IndexError exception while importing /django/db/models/base.py

2009-01-22 Thread ivan
Hi all, I'm attempting to run pychecker on my django code (an application's models.py file) and get the following output: $ pychecker models.py Processing models... Caught exception importing module models: File "/var/lib/python-support/python2.5/pychecker/checker.py", line 619, in setupMain