[Django] #24477: Error Outputting System Checks in django/core/management/base.py

31 views
Skip to first unread message

Django

unread,
Mar 12, 2015, 8:33:25 PM3/12/15
to django-...@googlegroups.com
#24477: Error Outputting System Checks in django/core/management/base.py
--------------------------------------+----------------------
Reporter: DavidMuller | Owner: nobody
Type: Uncategorized | Status: new
Component: Core (System checks) | Version: 1.8beta2
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+----------------------
I'm trying to install celery==3.1.17 with django 1.8b2 (following the
[http://celery.readthedocs.org/en/latest/django/first-steps-with-
django.html#starting-the-worker-process celery + django install
instructions)].

I get the following TypeError when I try to launch a celery worker AND
have unresolved system warnings:

Trying to launch celery worker...
{{{
celery -A my_project worker -l info
}}}

yields ...

{{{
File "/usr/local/etc/virtualenvs/gears/local/lib/python2.7/site-
packages/celery/fixups/django.py", line 162, in validate_models
cmd.check()
File "/usr/local/etc/virtualenvs/gears/local/lib/python2.7/site-
packages/django/core/management/base.py", line 530, in check
self.stderr.write(msg, lambda x: x)
TypeError: function takes exactly 1 argument (2 given)
}}}

It appears that Django is throwing a TypeError at
[https://github.com/django/django/blob/stable/1.8.x/django/core/management/base.py#L530
this line in django/core/management/base.py]

The problem "goes away" if I silence Django's system checks.

--
Ticket URL: <https://code.djangoproject.com/ticket/24477>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Mar 13, 2015, 3:09:24 AM3/13/15
to django-...@googlegroups.com
#24477: Error Outputting System Checks in django/core/management/base.py
-------------------------------------+-------------------------------------
Reporter: DavidMuller | Owner: nobody
Type: Uncategorized | Status: closed
Component: Core (System | Version: 1.8beta2
checks) |
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by bmispelon):

* status: new => closed
* needs_better_patch: => 0
* resolution: => invalid
* needs_tests: => 0
* needs_docs: => 0


Comment:

Hi,

This seems more like a bug on celery's side, caused by this line:
https://github.com/celery/celery/blob/master/celery/fixups/django.py#L161

Management's commands `self.stderr` and `self.stdout` should be instances
of `OutWrapper` whose `write()` method support more than one argument (in
this instance, a `style_func` argument used for formatting).

I'm going to mark this as `invalid`. Feel free to reopen if you think
there's really something we should fix on Django's end.

Thanks.

--
Ticket URL: <https://code.djangoproject.com/ticket/24477#comment:1>

Django

unread,
Mar 13, 2015, 11:33:55 AM3/13/15
to django-...@googlegroups.com
#24477: Error Outputting System Checks in django/core/management/base.py
-------------------------------------+-------------------------------------
Reporter: DavidMuller | Owner: nobody

Type: Uncategorized | Status: closed
Component: Core (System | Version: 1.8beta2
checks) |
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage:
| Unreviewed

Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by DavidMuller):

Ah, thanks for the details, that makes a lot of sense. I'll open up a
ticket with the Celery folks.

(https://github.com/celery/celery/issues/2536)

Thanks again!

--
Ticket URL: <https://code.djangoproject.com/ticket/24477#comment:2>

Reply all
Reply to author
Forward
0 new messages