#23133: 'Command' object has no attribute 'stderr', now in
django.core.management.base.BaseCommand.check
-------------------------------+----------------------
Reporter: cpbotha | Owner: nobody
Type: Bug | Status: new
Component: Uncategorized | Version: 1.7-rc-2
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------+----------------------
Similar to issue https://code.djangoproject.com/ticket/19665 the new
Django check logic is triggering the following exception in Django 1.7rc2
with celery 3.1.13 and djcelery 3.1.10:
{{{
./manage.py celery
Traceback (most recent call last):
File "./manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/home/cpbotha/.virtualenvs/test/local/lib/python2.7/site-
packages/django/core/management/__init__.py", line 385, in
execute_from_command_line
utility.execute()
File "/home/cpbotha/.virtualenvs/test/local/lib/python2.7/site-
packages/django/core/management/__init__.py", line 377, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/cpbotha/.virtualenvs/test/local/lib/python2.7/site-
packages/djcelery/management/commands/celery.py", line 22, in
run_from_argv
self.validate()
File "/home/cpbotha/.virtualenvs/test/local/lib/python2.7/site-
packages/django/core/management/base.py", line 361, in validate
return self.check(app_configs=app_configs,
display_num_errors=display_num_errors)
File "/home/cpbotha/.virtualenvs/test/local/lib/python2.7/site-
packages/django/core/management/base.py", line 415, in check
self.stderr.write(msg)
AttributeError: 'Command' object has no attribute 'stderr'
}}}
Similar to the previous bug, self.stderr is being referenced before it has
been initialized. I ported the fix from that bug (which also exists in
current Django master), the diff is attached.
--
Ticket URL: <https://code.djangoproject.com/ticket/23133>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/050.bd3d43f329defa44d89b07b7fad93446%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.