3126: rb-site install fails with 'TypeError: hasattr(): attribute name must be string'

arnou*****@gmai***** (Google Code) (Is this you? Claim this profile.)
david
david
Jan. 31, 2014
What version are you running?
1.7.16


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


What steps will reproduce the problem?

1. Install ReviewBoard using easy_install (following http://www.reviewboard.org/docs/manual/1.7/admin/installation/linux/)
2. rb-site install /var/reviewboard/mydomain --noinput --domain-name=reviewboard --site-root=/ --static-url=static/ --media-url=media/ --db-type=mysql --db-host=localhost --db-name=reviewboard --db-user=reviewboard --db-pass=reviewboard --cache-type=memcached --cache-info=localhost:11211 --web-server-type=apache --web-server-port=80 --python-loader=wsgi --admin-user=admin --admin-password=admin --admin-email=reviewboard@mydomain.com


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

I expect the command to exit cleanly, but it fails with 'TypeError: hasattr(): attribute name must be string'. See the stacktrace below.


What operating system are you using? What browser?

Debian wheezy


Please provide any additional information below.

Displayed (output and) stacktrace:

* Installing the site...
Building site directories ... OK
Building site configuration files ... OK
Creating database ... Creating tables ...
Traceback (most recent call last):
  File "/usr/local/bin/rb-site", line 9, in <module>
    load_entry_point('ReviewBoard==1.7.16', 'console_scripts', 'rb-site')()
  File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.16-py2.7.egg/reviewboard/cmdline/rbsite.py", line 2027, in main
    command.run()
  File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.16-py2.7.egg/reviewboard/cmdline/rbsite.py", line 1468, in run
    self.show_install_status()
  File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.16-py2.7.egg/reviewboard/cmdline/rbsite.py", line 1747, in show_install_status
    site.sync_database)
  File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.16-py2.7.egg/reviewboard/cmdline/rbsite.py", line 939, in step
    func()
  File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.16-py2.7.egg/reviewboard/cmdline/rbsite.py", line 372, in sync_database
    self.run_manage_command("syncdb", params)
  File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.16-py2.7.egg/reviewboard/cmdline/rbsite.py", line 562, in run_manage_command
    execute_manager(reviewboard.settings, [__file__, cmd] + params)
  File "/usr/local/lib/python2.7/dist-packages/Django-1.4.9-py2.7.egg/django/core/management/__init__.py", line 459, in execute_manager
    utility.execute()
  File "/usr/local/lib/python2.7/dist-packages/Django-1.4.9-py2.7.egg/django/core/management/__init__.py", line 382, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/local/lib/python2.7/dist-packages/Django-1.4.9-py2.7.egg/django/core/management/base.py", line 196, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/usr/local/lib/python2.7/dist-packages/Django-1.4.9-py2.7.egg/django/core/management/base.py", line 232, in execute
    output = self.handle(*args, **options)
  File "/usr/local/lib/python2.7/dist-packages/Django-1.4.9-py2.7.egg/django/core/management/base.py", line 371, in handle
    return self.handle_noargs(**options)
  File "/usr/local/lib/python2.7/dist-packages/Django-1.4.9-py2.7.egg/django/core/management/commands/syncdb.py", line 110, in handle_noargs
    emit_post_sync_signal(created_models, verbosity, interactive, db)
  File "/usr/local/lib/python2.7/dist-packages/Django-1.4.9-py2.7.egg/django/core/management/sql.py", line 189, in emit_post_sync_signal
    interactive=interactive, db=db)
  File "/usr/local/lib/python2.7/dist-packages/Django-1.4.9-py2.7.egg/django/dispatch/dispatcher.py", line 172, in send
    response = receiver(signal=self, sender=sender, **named)
  File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.16-py2.7.egg/reviewboard/admin/management/evolutions.py", line 58, in init_evolutions
    verbosity=0)
  File "/usr/local/lib/python2.7/dist-packages/Django-1.4.9-py2.7.egg/django/core/management/commands/loaddata.py", line 40, in handle
    connection = connections[using]
  File "/usr/local/lib/python2.7/dist-packages/Django-1.4.9-py2.7.egg/django/db/utils.py", line 87, in __getitem__
    if hasattr(self._connections, alias):
TypeError: hasattr(): attribute name must be string
david
#1 david
  • +Component-RB-Site
david
#2 david
  • +PendingReview
  • +david
david
#3 david
Fixed in release-1.7.x (97bb193). Thanks!
  • -PendingReview
    +Fixed