Bug 888165 - [abrt] django-lint-0.13-11.fc17: utils.py:40:is_model:TypeError: '_Yes' object is not iterable
Summary: [abrt] django-lint-0.13-11.fc17: utils.py:40:is_model:TypeError: '_Yes' objec...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: django-lint
Version: 17
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Matthias Runge
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:1faa4044e96bb7231f8a786a8a7...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-12-18 07:19 UTC by Sanne Bregman
Modified: 2013-08-01 05:20 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-08-01 05:20:19 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (1.20 KB, text/plain)
2012-12-18 07:19 UTC, Sanne Bregman
no flags Details
File: core_backtrace (865 bytes, text/plain)
2012-12-18 07:19 UTC, Sanne Bregman
no flags Details
File: environ (3.21 KB, text/plain)
2012-12-18 07:19 UTC, Sanne Bregman
no flags Details
File: smolt_data (2.70 KB, text/plain)
2012-12-18 07:19 UTC, Sanne Bregman
no flags Details

Description Sanne Bregman 2012-12-18 07:19:41 UTC
Description of problem:
I tried to run Django-lint on my Django project, and it threw an error while running django-lint in a specific app.

Version-Release number of selected component:
django-lint-0.13-11.fc17

Additional info:
cmdline:        /usr/bin/python /usr/bin/django-lint
dso_list:       pylint-0.25.1-1.fc17.noarch
executable:     /usr/bin/django-lint
kernel:         3.6.9-2.fc17.x86_64
uid:            1000

Truncated 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 502, in check
    self.check_astng_module(astng, walker, rawcheckers)
  File "/usr/lib/python2.7/site-packages/pylint/lint.py", line 574, in check_astng_module
    walker.walk(astng)
  File "/usr/lib/python2.7/site-packages/pylint/utils.py", line 528, in walk
    self.walk(child)
  File "/usr/lib/python2.7/site-packages/pylint/utils.py", line 525, 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(LiveServerTestCase) l.165 [company.tests] at Ox440be90>
nodes: <itertools.chain object at 0x31407d0>
check_base_classes: True

Comment 1 Sanne Bregman 2012-12-18 07:19:44 UTC
Created attachment 665331 [details]
File: backtrace

Comment 2 Sanne Bregman 2012-12-18 07:19:49 UTC
Created attachment 665332 [details]
File: core_backtrace

Comment 3 Sanne Bregman 2012-12-18 07:19:51 UTC
Created attachment 665333 [details]
File: environ

Comment 4 Sanne Bregman 2012-12-18 07:19:53 UTC
Created attachment 665334 [details]
File: smolt_data

Comment 5 Fedora End Of Life 2013-07-04 01:10:01 UTC
This message is a reminder that Fedora 17 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 17. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '17'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 17's end of life.

Bug Reporter:  Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 17 is end of life. If you 
would still like  to see this bug fixed and are able to reproduce it 
against a later version  of Fedora, you are encouraged  change the 
'version' to a later Fedora version prior to Fedora 17's end of life.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 6 Fedora End Of Life 2013-08-01 05:20:23 UTC
Fedora 17 changed to end-of-life (EOL) status on 2013-07-30. Fedora 17 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.


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