Bug 652188 - [abrt] django-lint-0.13-8.fc14: utils.py:40:is_model:TypeError: '_Yes' object is not iterable
Summary: [abrt] django-lint-0.13-8.fc14: utils.py:40:is_model:TypeError: '_Yes' object...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: django-lint
Version: 14
Hardware: i686
OS: Unspecified
low
medium
Target Milestone: ---
Assignee: Matthias Runge
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:353e3192
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-11-11 10:14 UTC by Chris Northwood
Modified: 2011-12-10 19:47 UTC (History)
1 user (show)

Fixed In Version: django-lint-0.13-10.fc16
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-10 19:47:05 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (1.21 KB, text/plain)
2010-11-11 10:14 UTC, Chris Northwood
no flags Details

Description Chris Northwood 2010-11-11 10:14:50 UTC
abrt version: 1.1.13
architecture: i686
cmdline: /usr/bin/python /usr/bin/django-lint demos/molly_oxford
component: django-lint
executable: /usr/bin/django-lint
kernel: 2.6.35.6-48.fc14.i686.PAE
package: django-lint-0.13-8.fc14
reason: utils.py:40:is_model:TypeError: '_Yes' object is not iterable
release: Fedora release 14 (Laughlin)
time: 1289469955
uid: 500

backtrace
-----
utils.py:40:is_model:TypeError: '_Yes' object is not iterable

Traceback (most recent call last):
  File "/usr/bin/django-lint", line 25, in <module>
    sys.exit(script.main())
  File "/usr/lib/python2.7/site-packages/DjangoLint/script.py", line 120, in main
    linter.check([target])
  File "/usr/lib/python2.7/site-packages/pylint/lint.py", line 488, in check
    self.check_astng_module(astng, walker, rawcheckers)
  File "/usr/lib/python2.7/site-packages/pylint/lint.py", line 563, in check_astng_module
    walker.walk(astng)
  File "/usr/lib/python2.7/site-packages/pylint/utils.py", line 516, in walk
    self.walk(child)
  File "/usr/lib/python2.7/site-packages/pylint/utils.py", line 513, in walk
    cb(astng)
  File "/usr/lib/python2.7/site-packages/DjangoLint/AstCheckers/model_methods.py", line 117, in visit_class
    if not is_model(node):
  File "/usr/lib/python2.7/site-packages/DjangoLint/AstCheckers/utils.py", line 40, in is_model
    for node in nodes:
TypeError: '_Yes' object is not iterable

Local variables in innermost frame:
node: YES
val: YES
qual: 'YES.YES'
base: <Name(BaseView) l.10 [molly_oxford.apps.results.views] at Ox9785bac>
nodes: <itertools.chain object at 0x94cd76c>
check_base_classes: True

Comment 1 Chris Northwood 2010-11-11 10:14:52 UTC
Created attachment 459714 [details]
File: backtrace

Comment 2 Matthias Runge 2010-11-11 10:29:02 UTC
Chris,

could you please submit/send me some more source (source to be checked?)

Thanks

Comment 3 Chris Northwood 2010-11-11 10:34:27 UTC
It's on this project: https://github.com/mollyproject/mollyproject/

Running it against the Django project in demos/molly_oxford/ causes the error

Comment 4 Matthias Runge 2010-11-11 10:46:35 UTC
can reproduce the bug, exists in pylint, too. 

occurs in mollyproject/demos/molly_oxford/apps/results/views.py

pylints bugtracker is down for
the moment. Will report this later.

Comment 5 Matthias Runge 2010-11-24 07:54:44 UTC
Sadly still no reaction from upstream. Trying again.

Comment 6 Matthias Runge 2011-05-02 09:11:17 UTC
Upstream changed repository to github. Resending issue

https://github.com/lamby/django-lint/issues/4

Comment 7 Fedora Update System 2011-11-28 08:05:19 UTC
django-lint-0.13-10.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/django-lint-0.13-10.fc16

Comment 8 Fedora Update System 2011-11-29 00:11:25 UTC
Package django-lint-0.13-10.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing django-lint-0.13-10.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2011-16517/django-lint-0.13-10.fc16
then log in and leave karma (feedback).

Comment 9 Fedora Update System 2011-12-10 19:47:05 UTC
django-lint-0.13-10.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.


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