Issue #13 resolved

IOErrors in /account/password/ with mod_WSGI

foxfirefey
created an issue

Involving restrictions around stdout:

Environment:

Request Method: GET Request URL: http://memewidth.org/account/password/ Django Version: 1.1 beta 1 SVN-10618 Python Version: 2.5.2 Installed Applications: ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.flatpages', 'django.contrib.admin', 'django.contrib.admindocs', 'registration', 'django_authopenid', 'Accounts', 'Interests', 'Relationships', 'DataUpdates'] Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware', 'django_authopenid.middleware.OpenIDMiddleware')

Traceback: File "/usr/lib/python2.5/site-packages/django/core/handlers/base.py" in get_response 92. response = callback(request, *callback_args, callback_kwargs) File "/usr/lib/python2.5/site-packages/django/contrib/auth/decorators.py" in __call__ 78. return self.view_func(request, *args, kwargs) File "/usr/lib/python2.5/site-packages/django_authopenid-1.0a-py2.5.egg/django_authopenid/views.py" in password_change 430. print form.class.name

Exception Type: IOError at /account/password/ Exception Value: sys.stdout access restricted by mod_wsgi

Comments (2)

  1. foxfirefey reporter

    Okay, so I went and tried to figure out if just taking out the print statements (which might just have been accidentally left in during debugging?) works, and it seems to work now. So I've attached a patch of what I did to get it work. Again, not very experienced submitting patches, and this may not be the right strategy to solve this bug.

  2. Log in to comment