dziegler/alexandra — Issue #2: Running alexandra with cassandra produces error
Author: reduxdj
Created: 2011-11-11 14:18:08+00:00
State: open

Traceback (most recent call last):
File "manage.py", line 14, in
execute_manager(settings)
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/core/management/__init__.py", line 438, in execute_manager
utility.execute()
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/core/management/__init__.py", line 379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/core/management/base.py", line 191, in run_from_argv
self.execute(*args, **options.__dict__)
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/core/management/base.py", line 220, in execute
output = self.handle(*args, **options)
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/core/management/base.py", line 351, in handle
return self.handle_noargs(**options)
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/core/management/commands/shell.py", line 47, in handle_noargs
loaded_models = get_models()
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/db/models/loading.py", line 167, in get_models
self._populate()
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/db/models/loading.py", line 61, in _populate
self.load_app(app_name, True)
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/db/models/loading.py", line 78, in load_app
models = import_module('.models', app_name)
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/utils/importlib.py", line 35, in import_module
__import__(name)
File "/root/django_projects/holla/../holla/models.py", line 38, in
class Event(cass.ColumnFamily):
File "/root/src/src/alexandra/alexandra/cass.py", line 35, in __new__
new_class.add_to_class('_meta', Options(meta, **kwargs))
File "/root/src/src/alexandra/alexandra/cass.py", line 45, in add_to_class
value.contribute_to_class(cls, name)
File "/root/src/src/alexandra/alexandra/options.py", line 43, in contribute_to_class
cls.add_to_class('objects', Manager())
File "/root/src/src/alexandra/alexandra/cass.py", line 45, in add_to_class
value.contribute_to_class(cls, name)
File "/root/src/src/alexandra/alexandra/logger.py", line 45, in inner
val = func(instance, *args, **kwargs)
File "/root/src/src/alexandra/alexandra/manager.py", line 35, in contribute_to_class
super(Manager, self).__init__(client, meta.keyspace, meta.object_name, dict_class=model, super=meta.super_cf)
TypeError: Error when calling the metaclass bases
__init__() takes exactly 3 arguments (6 given)