sebastian-ardila / google-app-engine-django

Automatically exported from code.google.com/p/google-app-engine-django
Apache License 2.0
0 stars 0 forks source link

deprecated django signal code causing error #113

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. django > 1.0
2. helper rev 75
3. python manage.py runserver

What is the expected output? What do you see instead?

Expect to run server, see exception. 

Please provide any additional information below.

Seems to be a version mismatch in this section of code... see
http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges#Signalrefactorin
g

  try:
    # pre 1.0
    from django.dispatch import errors
    CheckedException = errors.DispatcherKeyError
    def _disconnectSignal():
      django.dispatch.dispatcher.disconnect(
          django.db._rollback_on_exception,
          django.core.signals.got_request_exception)
  except ImportError:
    CheckedException = KeyError
    def _disconnectSignal():
      django.core.signals.got_request_exception.disconnect(
          django.db._rollback_on_exception)

  try:
    _disconnectSignal()
  except CheckedException, e:
    logging.debug("Django rollback handler appears to be already disabled.")

Original issue reported on code.google.com by gregdin...@yahoo.com on 6 Mar 2009 at 10:31

GoogleCodeExporter commented 9 years ago
I cannot reproduce this issue with the listed steps. Can you please provide 
more details?

Original comment by mattbrow...@gmail.com on 15 May 2009 at 1:56

GoogleCodeExporter commented 9 years ago
Please provide a working set of steps to reproduce this if you would like us to 
look 
further at it.

Original comment by mattbrow...@gmail.com on 25 Nov 2009 at 1:43

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hello,

I'm having the issue at this moment: http://www.molhokwai.net.
First I get a google.appengine.runtime.DeadlineExceededError:

<class 'google.appengine.runtime.DeadlineExceededError'>: 
Traceback (most recent call last):
  File "/base/data/home/apps/molhokwai-net/7.338928266194351594/main.py", line 49, in 
<module>
    main()
  File "/base/data/home/apps/molhokwai-net/7.338928266194351594/main.py", line 46, in 
main
    util.run_wsgi_app(application)
  File "/base/python_lib/versions/1/google/appengine/ext/webapp/util.py", line 97, in 
run_wsgi_app
    run_bare_wsgi_app(add_wsgi_middleware(application))
  File "/base/python_lib/versions/1/google/appengine/ext/webapp/util.py", line 115, 
in run_bare_wsgi_app
    result = application(env, _start_response)
  File "/base/python_lib/versions/third_party/django-
0.96/django/core/handlers/wsgi.py", line 189, in __call__
    response = self.get_response(request)
  File "/base/python_lib/versions/third_party/django-
0.96/django/core/handlers/base.py", line 122, in get_response
    message = "%s\n\n%s" % (self._get_traceback(exc_info), request_repr)
  File "/base/python_lib/versions/third_party/django-
0.96/django/core/handlers/base.py", line 131, in _get_traceback
    return '\n'.join(traceback.format_exception(*(exc_info or sys.exc_info())))
  File "/base/python_dist/lib/python2.5/traceback.py", line 142, in format_exception
    list = list + format_tb(tb, limit)
  File "/base/python_dist/lib/python2.5/traceback.py", line 76, in format_tb
    return format_list(extract_tb(tb, limit))
  File "/base/python_dist/lib/python2.5/traceback.py", line 101, in extract_tb
    line = linecache.getline(filename, lineno, f.f_globals)
  File "/base/python_dist/lib/python2.5/linecache.py", line 14, in getline
    lines = getlines(filename, module_globals)
  File "/base/python_dist/lib/python2.5/linecache.py", line 40, in getlines
    return updatecache(filename, module_globals)
  File "/base/python_dist/lib/python2.5/linecache.py", line 80, in updatecache
    stat = os.stat(fullname)
<class 'google.appengine.runtime.DeadlineExceededError'>:

Then when I retry immediately after, the 
django.dispatch.errors.DispatcherKeyError:

<class 'django.dispatch.errors.DispatcherKeyError'>: 'No receivers found for 
signal 
<object object at 0x3c620696dc487fc8> from sender _Any'
Traceback (most recent call last):
  File "/base/data/home/apps/molhokwai-net/7.338928266194351594/main.py", line 41, in 
<module>
    django.core.signals.got_request_exception)
  File "/base/python_lib/versions/third_party/django-
0.96/django/dispatch/dispatcher.py", line 213, in disconnect
    sender
<class 'django.dispatch.errors.DispatcherKeyError'>: 'No receivers found for 
signal 
<object object at 0x3c620696dc487fc8> from sender _Any'

Original comment by molhokwai on 4 Jan 2010 at 12:40

GoogleCodeExporter commented 9 years ago
Ok, the issue is gone now...
Maintenance? Code, Server work?

Thanks

Original comment by molhokwai on 4 Jan 2010 at 12:42