Issue #6 wontfix

Tests fail immediately with TypeError

tmallen avatartmallen created an issue
:examples/django_roa_client % python test
Traceback (most recent call last):
  File "", line 14, in <module>
  File "/opt/local/lib/python2.5/site-packages/django/core/management/", line 362, in execute_manager
  File "/opt/local/lib/python2.5/site-packages/django/core/management/", line 303, in execute
  File "/opt/local/lib/python2.5/site-packages/django/core/management/", line 195, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/opt/local/lib/python2.5/site-packages/django/core/management/", line 222, in execute
    output = self.handle(*args, **options)
  File "/opt/local/lib/python2.5/site-packages/django/core/management/commands/", line 23, in handle
    failures = test_runner(test_labels, verbosity=verbosity, interactive=interactive)
  File "/opt/local/lib/python2.5/site-packages/django/test/", line 181, in run_tests
    for app in get_apps():
  File "/opt/local/lib/python2.5/site-packages/django/db/models/", line 100, in get_apps
  File "/opt/local/lib/python2.5/site-packages/django/db/models/", line 58, in _populate
    self.load_app(app_name, True)
  File "/opt/local/lib/python2.5/site-packages/django/db/models/", line 74, in load_app
    models = import_module('.models', app_name)
  File "/opt/local/lib/python2.5/site-packages/django/utils/", line 35, in import_module
  File "/Users/tallen/Desktop/py/django-roa/django_roa/remoteauth/", line 13, in <module>
    class Permission(Model, DjangoPermission):
  File "/Users/tallen/Desktop/py/django-roa/django_roa/db/", 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/", 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

    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
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.