TypeError: '_Yes' object is not iterable #4
Comments
the Molly tree's changed significantly since I submitted this bug to the Fedora issue tracker. To replicate now, you need to checkout the 'oxford_stable' branch of Molly: https://github.com/mollyproject/mollyproject/tree/oxford_stable |
I think, this does not matter, because the error is the same (even with another file of molly), don't you think? |
True, but I thought I'd include it incase someone tries to replicate using exactly the issues in the Fedora bug tracker :) (although I now notice run it on the same files in this report as on the downstream bug, oops!) |
I can replicate this on a closed project: Here's the trace: |
I don't see a way to subscribe / vote without "me too"ing, so, we're also seeing this issue. Has anyone worked around it? |
I tested with a try/except-block. This will at least end this error message, but I'm unsure, if the error is caused by something else broken. |
Same issue out here with any project I have. |
Ditto, doesn't work for me |
same...seems related to http://www.logilab.org/ticket/20464 I grabbed the newest astng from logilab's mercurial repo but it still didn't fix the issue. Seems to be multiple manifestations of this bug and they've only partially fixed it. case in point, my traceback is a bit different: Traceback (most recent call last): |
Afraid i have the same issue, slightly different trace: http://dpaste.com/597179/ |
I've submitted a pull request with a fix for that as issue #5. |
Awesome, I'll check it out. Robby On Sep 13, 2011, at 7:18 AM, Patryk Zawadzki
|
@patrys, I've just tried and it doesn't fix it with your patch, either. |
@vladimiroff, can you point me to code that breaks? |
Sadly, but no. In a day or two will try to inspect it deeper. |
It seems like I've fixed it. Works like a charm on my side, but could someone else test it? |
Just tried to setup pylint/django-lint for the first time and ran into this issue. I downloaded the patch above and seems to fix the TypeError but I am also getting a ValueError which might be related. It is able to give me some feedback but craps out before finishing. If this is an unrelated error I can raise a new issue. https://gist.github.com/1389784 Example project is from https://github.com/justquick/django-activity-stream |
I recently pushed a patched version to Fedora 16, based on Vladimiroffs fix. |
merged |
I cloned https://github.com/mollyproject/mollyproject.git
cd to mollyproject/molly/apps/home
and run django-lint views.py
returns
[mrunge@mrungexp home]$ django-lint views.py
Traceback (most recent call last):
File "/usr/bin/django-lint", line 25, in
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 489, 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 520, in walk
self.walk(child)
File "/usr/lib/python2.7/site-packages/pylint/utils.py", line 517, 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
The text was updated successfully, but these errors were encountered: