1. David Larlet
  2. django-roa
  3. Issues
Issue #6 wontfix

Tests fail immediately with TypeError

created an issue

{{{ :examples/django_roa_client % python manage.py test Traceback (most recent call last): File "manage.py", line 14, in <module> execute_manager(settings) File "/opt/local/lib/python2.5/site-packages/django/core/management/init.py", line 362, in execute_manager utility.execute() File "/opt/local/lib/python2.5/site-packages/django/core/management/init.py", line 303, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/opt/local/lib/python2.5/site-packages/django/core/management/base.py", line 195, in run_from_argv self.execute(*args, options.__dict__) File "/opt/local/lib/python2.5/site-packages/django/core/management/base.py", line 222, in execute output = self.handle(*args, options) File "/opt/local/lib/python2.5/site-packages/django/core/management/commands/test.py", line 23, in handle failures = test_runner(test_labels, verbosity=verbosity, interactive=interactive) File "/opt/local/lib/python2.5/site-packages/django/test/simple.py", line 181, in run_tests for app in get_apps(): File "/opt/local/lib/python2.5/site-packages/django/db/models/loading.py", line 100, in get_apps self._populate() File "/opt/local/lib/python2.5/site-packages/django/db/models/loading.py", line 58, in _populate self.load_app(app_name, True) File "/opt/local/lib/python2.5/site-packages/django/db/models/loading.py", line 74, in load_app models = import_module('.models', app_name) File "/opt/local/lib/python2.5/site-packages/django/utils/importlib.py", line 35, in import_module import(name) File "/Users/tallen/Desktop/py/django-roa/django_roa/remoteauth/models.py", line 13, in <module> class Permission(Model, DjangoPermission): File "/Users/tallen/Desktop/py/django-roa/django_roa/db/models.py", line 60, in new or (ObjectDoesNotExist,), module)) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/django/db/models/base.py", line 664, in subclass_exception return type(name, (parent,), {'module': module}) TypeError: Error when calling the metaclass bases metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases }}}

Comments (4)

  1. David Larlet repo owner

    The issue probably comes from the definition of ModelBase which evolves in Django 1.2 vs. 1.1.1 and I didn't worry on backward compatibility because it's easier to maintain (#lazyme), you can choose to get a previous version of the lib or apply a patch.

  2. Log in to comment