#24477 closed Uncategorized (invalid)
Error Outputting System Checks in django/core/management/base.py
Reported by: | David Muller | Owned by: | nobody |
---|---|---|---|
Component: | Core (System checks) | Version: | 1.8beta2 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I'm trying to install celery==3.1.17 with django 1.8b2 (following the 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 this line in django/core/management/base.py
The problem "goes away" if I silence Django's system checks.
Change History (2)
comment:1 by , 10 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 by , 10 years ago
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!
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
andself.stdout
should be instances ofOutWrapper
whosewrite()
method support more than one argument (in this instance, astyle_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.