3272: exception running devserver: TypeError: __init__() got an unexpected keyword argument 'detailed_label_html'

mrc***@gmai***** (Google Code) (Is this you? Claim this profile.)
March 2, 2014
What version are you running?

Latest release-2.0.x.

What's the URL of the page containing the problem?

Any.

What steps will reproduce the problem?
1. Run "contrib/internal/devserver.py" or r"eviewboard/manage.py runserver".
2. Load any Review Board page from the dev server.

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

Expected normal page load.  Got this exception instead:

$ python contrib/internal/devserver.py
Validating models...

0 errors found
March 01, 2014 - 04:10:04
Django version 1.6.2, using settings 'reviewboard.settings'
Starting development server at http://0.0.0.0:8080/
Quit the server with CONTROL-C.
2014-03-01 04:10:09,872 - DEBUG -  - Logging to ./reviewboard.log with a minimum level of DEBUG
2014-03-01 04:10:09,897 - DEBUG -  - Log file for Review Board v2.0 beta 4 (dev) (PID 2799)
2014-03-01 04:10:09,960 - ERROR -  - Exception thrown for user AnonymousUser at http://vm:8080/

__init__() got an unexpected keyword argument 'detailed_label_html'
Traceback (most recent call last):
  File "/home/mcote/reviewboard-latest/local/lib/python2.7/site-packages/Django-1.6.2-py2.7.egg/django/core/handlers/base.py", line 114, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/home/mcote/reviewboard-latest/src/reviewboard/reviewboard/accounts/decorators.py", line 23, in _check
    return view_func(*args, **kwargs)
  File "/home/mcote/reviewboard-latest/src/reviewboard/reviewboard/accounts/decorators.py", line 44, in _check_valid_prefs
    return view_func(request, *args, **kwargs)
  File "/home/mcote/reviewboard-latest/src/reviewboard/reviewboard/reviews/views.py", line 219, in root
    local_site_reverse(url_name, local_site_name=local_site_name))
  File "/home/mcote/reviewboard-latest/src/reviewboard/reviewboard/site/urlresolvers.py", line 38, in local_site_reverse
    *func_args, **func_kwargs)
  File "/home/mcote/reviewboard-latest/local/lib/python2.7/site-packages/Django-1.6.2-py2.7.egg/django/core/urlresolvers.py", line 509, in reverse
    return iri_to_uri(resolver._reverse_with_prefix(view, prefix, *args, **kwargs))
  File "/home/mcote/reviewboard-latest/local/lib/python2.7/site-packages/Django-1.6.2-py2.7.egg/django/core/urlresolvers.py", line 387, in _reverse_with_prefix
    possibilities = self.reverse_dict.getlist(lookup_view)
  File "/home/mcote/reviewboard-latest/local/lib/python2.7/site-packages/Django-1.6.2-py2.7.egg/django/core/urlresolvers.py", line 296, in reverse_dict
    self._populate()
  File "/home/mcote/reviewboard-latest/local/lib/python2.7/site-packages/Django-1.6.2-py2.7.egg/django/core/urlresolvers.py", line 273, in _populate
    for name in pattern.reverse_dict:
  File "/home/mcote/reviewboard-latest/local/lib/python2.7/site-packages/Django-1.6.2-py2.7.egg/django/core/urlresolvers.py", line 296, in reverse_dict
    self._populate()
  File "/home/mcote/reviewboard-latest/local/lib/python2.7/site-packages/Django-1.6.2-py2.7.egg/django/core/urlresolvers.py", line 285, in _populate
    lookups.appendlist(pattern.callback, (bits, p_pattern, pattern.default_args))
  File "/home/mcote/reviewboard-latest/local/lib/python2.7/site-packages/Django-1.6.2-py2.7.egg/django/core/urlresolvers.py", line 229, in callback
    self._callback = get_callable(self._callback_str)
  File "/home/mcote/reviewboard-latest/local/lib/python2.7/site-packages/Django-1.6.2-py2.7.egg/django/utils/functional.py", line 32, in wrapper
    result = func(*args)
  File "/home/mcote/reviewboard-latest/local/lib/python2.7/site-packages/Django-1.6.2-py2.7.egg/django/core/urlresolvers.py", line 96, in get_callable
    mod = import_module(mod_name)
  File "/home/mcote/reviewboard-latest/local/lib/python2.7/site-packages/Django-1.6.2-py2.7.egg/django/utils/importlib.py", line 40, in import_module
    __import__(name)
  File "/home/mcote/reviewboard-latest/src/reviewboard/reviewboard/datagrids/views.py", line 11, in <module>
    from reviewboard.datagrids.grids import (DashboardDataGrid,
  File "/home/mcote/reviewboard-latest/src/reviewboard/reviewboard/datagrids/grids.py", line 42, in <module>
    class ReviewRequestDataGrid(DataGrid):
  File "/home/mcote/reviewboard-latest/src/reviewboard/reviewboard/datagrids/grids.py", line 100, in ReviewRequestDataGrid
    to_me = ToMeColumn()
  File "/home/mcote/reviewboard-latest/src/reviewboard/reviewboard/datagrids/columns.py", line 526, in __init__
    *args, **kwargs)
TypeError: __init__() got an unexpected keyword argument 'detailed_label_html'
[01/Mar/2014 04:10:10] "GET / HTTP/1.1" 500 23958

What operating system are you using? What browser?

OS X 10.9.2, Firefox Nightly.

Please provide any additional information below.
david
#1 david
Can you update your djblets master and try again?
  • +NeedInfo
#2 mrc***@gmai***** (Google Code) (Is this you? Claim this profile.)
After installing djblets master, the exception went away, but the UI that loads is weird.  Screenshot attached.  Same thing appears after logging in.
chipx86
#3 chipx86
Make sure there's no reviewboard/htdocs/static/ directory. If there is, delete it and reload the dev server.
#4 mrc***@gmai***** (Google Code) (Is this you? Claim this profile.)
Nope, that directory doesn't exist.
chipx86
#5 chipx86
How about djblets/htdocs/static/?

Also, make sure you re-run `setup.py develop` in djblets if you haven't.

I hit this a couple weeks ago and it was due to an older build of the static files.
chipx86
#6 chipx86
Okay, sorry. I think I know what was going on here. The version number didn't get bumped post-release, which may have messed with the dependency on Review Board, and caused it to end up pulling down the released Djblets instead of the one in the source directory. At least, this just happened to a student of ours.

I've fixed that, so give it another try.
david
#7 david
  • -NeedInfo
    +Fixed