Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 2022 by shigo...@gmail.com: missing hint/check regarding django $db module
http://code.google.com/p/reviewboard/issues/detail?id=2022

What version are you running?
1.6b1 (reporting against code, see below as it seems a code and/or docs issue)

What's the URL of the page containing the problem?
(none yet)

What steps will reproduce the problem?
1. rb-site install /var/www/reviews
2. [go with mysql]

What is the expected output? What do you see instead?
Expected normal installer exit, got:

* Installing the site...
Building site directories ... OK
Building site configuration files ... OK
Creating database ... Traceback (most recent call last):
  File "/usr/bin/rb-site", line 8, in <module>
load_entry_point('ReviewBoard==1.6beta1', 'console_scripts', 'rb-site')() File "/usr/lib/python2.6/site-packages/ReviewBoard-1.6beta1-py2.6.egg/reviewboard/cmdline/rbsite.py", line 1690, in main
    command.run()
File "/usr/lib/python2.6/site-packages/ReviewBoard-1.6beta1-py2.6.egg/reviewboard/cmdline/rbsite.py", line 1252, in run
    self.show_install_status()
File "/usr/lib/python2.6/site-packages/ReviewBoard-1.6beta1-py2.6.egg/reviewboard/cmdline/rbsite.py", line 1511, in show_install_status
    site.sync_database)
File "/usr/lib/python2.6/site-packages/ReviewBoard-1.6beta1-py2.6.egg/reviewboard/cmdline/rbsite.py", line 778, in step
    func()
File "/usr/lib/python2.6/site-packages/ReviewBoard-1.6beta1-py2.6.egg/reviewboard/cmdline/rbsite.py", line 346, in sync_database
    self.run_manage_command("syncdb", params)
File "/usr/lib/python2.6/site-packages/ReviewBoard-1.6beta1-py2.6.egg/reviewboard/cmdline/rbsite.py", line 452, in run_manage_command
    fix_django_evolution_issues(reviewboard.settings)
File "/usr/lib/python2.6/site-packages/ReviewBoard-1.6beta1-py2.6.egg/reviewboard/admin/migration.py", line 13, in fix_django_evolution_issues
    import django.db.models.fields as model_fields
File "/usr/lib/python2.6/site-packages/django/db/__init__.py", line 77, in <module>
    connection = connections[DEFAULT_DB_ALIAS]
File "/usr/lib/python2.6/site-packages/django/db/utils.py", line 92, in __getitem__
    backend = load_backend(db['ENGINE'])
File "/usr/lib/python2.6/site-packages/django/db/utils.py", line 50, in load_backend
    raise ImproperlyConfigured(error_msg)
django.core.exceptions.ImproperlyConfigured: 'django.db.backends.mysql' isn't an available database backend.
Try using django.db.backends.XXX, where XXX is one of:
    'dummy', 'oracle'
Error was: No module named mysql.base

What operating system are you using? What browser?
Linux; (irrelevant yet)

Please provide any additional information below.
Maybe the docs (http://www.reviewboard.org/docs/manual/dev/admin/installation/linux/#id2) should be amended regarding the need to install a django module corresponding to chosen SQL server -- had to reiterate after "python-module-django-dbbackend-mysql" on ALT Linux, a little bit intimidating. :)

--
You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To post to this group, send email to reviewboard-issues@googlegroups.com.
To unsubscribe from this group, send email to 
reviewboard-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/reviewboard-issues?hl=en.

Reply via email to