163: Review Board must be installed in a directory named "reviewboard"

jason*****@gmai***** (Google Code) (Is this you? Claim this profile.)
david
david
July 16, 2007
What's the URL of the page containing the problem?
N/A

What steps will reproduce the problem?
1. Check out Review Board from Subversion.
2. Rename the "reviewboard" directory to "foo".
3. Run "manage.py runserver"

What is the expected output? What do you see instead?
I expect the server to run. Instead, it fails with the following stack trace:

  jterk@ankh:~/ephemera/foo$ ./manage.py runserver
  Running dependency checks (set DEBUG=False to turn this off)...
  Warning: pysvn not found.  SVN integration will not work.
  Warning: p4python not found.  Perforce integration will not work.

  Please see http://code.google.com/p/reviewboard/wiki/GettingStarted
  for help setting up Review Board.


  Traceback (most recent call last):
    File "./manage.py", line 90, in ?
      execute_manager(settings)
    File "/usr/lib/python2.4/site-packages/django/core/management.py", line
1673, in execute_manager
      execute_from_command_line(action_mapping, argv)
    File "/usr/lib/python2.4/site-packages/django/core/management.py", line
1565, in execute_from_command_line
      translation.activate('en-us')
    File
"/usr/lib/python2.4/site-packages/django/utils/translation/__init__.py",
line 66, in activate
      return real_activate(language)
    File
"/usr/lib/python2.4/site-packages/django/utils/translation/__init__.py",
line 41, in delayed_loader
      return g[caller](*args, **kwargs)
    File
"/usr/lib/python2.4/site-packages/django/utils/translation/__init__.py",
line 66, in activate
      return real_activate(language)
    File
"/usr/lib/python2.4/site-packages/django/utils/translation/trans_real.py",
line 194, in activate
      _active[currentThread()] = translation(language)
    File
"/usr/lib/python2.4/site-packages/django/utils/translation/trans_real.py",
line 183, in translation
      default_translation = _fetch(settings.LANGUAGE_CODE)
    File
"/usr/lib/python2.4/site-packages/django/utils/translation/trans_real.py",
line 166, in _fetch
      app = getattr(__import__(appname[:p], {}, {}, [appname[p+1:]]),
appname[p+1:])
  ImportError: No module named reviewboard

What operating system are you using? What browser?
Debian Linux Testing, N/A

Please provide any additional information below.
N/A
david
#1 david
This isn't something that is at all easy to fix.  I don't even know if it's possible,
given how django works.  I've added a test to make it spit out a useful error when
you run manage.py.
  • +WontFix
  • +david