{"action":"created","issue":{"url":"https://api.github.com/repos/celery/celery/issues/2536","labels_url":"https://api.github.com/repos/celery/celery/issues/2536/labels{/name}","comments_url":"https://api.github.com/repos/celery/celery/issues/2536/comments","events_url":"https://api.github.com/repos/celery/celery/issues/2536/events","html_url":"https://github.com/celery/celery/issues/2536","id":61099625,"number":2536,"title":"Celery + Django. Invalid Values for sys.stdout and sys.stderror Throws TypeError","user":{"login":"DavidMuller","id":4778701,"avatar_url":"https://avatars.githubusercontent.com/u/4778701?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidMuller","html_url":"https://github.com/DavidMuller","followers_url":"https://api.github.com/users/DavidMuller/followers","following_url":"https://api.github.com/users/DavidMuller/following{/other_user}","gists_url":"https://api.github.com/users/DavidMuller/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidMuller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidMuller/subscriptions","organizations_url":"https://api.github.com/users/DavidMuller/orgs","repos_url":"https://api.github.com/users/DavidMuller/repos","events_url":"https://api.github.com/users/DavidMuller/events{/privacy}","received_events_url":"https://api.github.com/users/DavidMuller/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-13T15:29:50Z","updated_at":"2015-04-03T13:39:02Z","closed_at":"2015-03-20T17:08:57Z","body":"I am trying to install celery with Django 1.8b2 (following the [celery + django install instructions](http://celery.readthedocs.org/en/latest/django/first-steps-with-django.html#starting-the-worker-process)).\r\n\r\nTrying to launch a celery worker like\r\n\r\n```shell\r\ncelery -A my_project worker -l info\r\n```\r\n\r\ncauses a TypeError if Django's SystemCheck system needs to output an error message:\r\n\r\n```python\r\n  File \"/usr/local/etc/virtualenvs/gears/local/lib/python2.7/site-packages/celery/fixups/django.py\", line 162, in validate_models\r\n    cmd.check()\r\n  File \"/usr/local/etc/virtualenvs/gears/local/lib/python2.7/site-packages/django/core/management/base.py\", line 530, in check\r\n    self.stderr.write(msg, lambda x: x)\r\nTypeError: function takes exactly 1 argument (2 given)\r\n``` \r\n\r\nAs astutely noted by a Django maintainer (see [ticket] (https://code.djangoproject.com/ticket/24477#comment:1)), the following [line in `celery/fixups/django.py` incorrectly sets the values for `BaseCommand.stdout` and `BaseCommand.stderr`](https://github.com/celery/celery/blob/master/celery/fixups/django.py#L161) :\r\n\r\n> 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)."},"comment":{"url":"https://api.github.com/repos/celery/celery/issues/comments/89290366","html_url":"https://github.com/celery/celery/issues/2536#issuecomment-89290366","issue_url":"https://api.github.com/repos/celery/celery/issues/2536","id":89290366,"user":{"login":"ryanhiebert","id":425099,"avatar_url":"https://avatars.githubusercontent.com/u/425099?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanhiebert","html_url":"https://github.com/ryanhiebert","followers_url":"https://api.github.com/users/ryanhiebert/followers","following_url":"https://api.github.com/users/ryanhiebert/following{/other_user}","gists_url":"https://api.github.com/users/ryanhiebert/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanhiebert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanhiebert/subscriptions","organizations_url":"https://api.github.com/users/ryanhiebert/orgs","repos_url":"https://api.github.com/users/ryanhiebert/repos","events_url":"https://api.github.com/users/ryanhiebert/events{/privacy}","received_events_url":"https://api.github.com/users/ryanhiebert/received_events","type":"User","site_admin":false},"created_at":"2015-04-03T13:39:02Z","updated_at":"2015-04-03T13:39:02Z","body":"Running into this issue when trying to upgrade my project to the release version of Django 1.8. I'd definitely appreciate if this got released to PyPI soon."}}