Issue #6 wontfix

Tests fail immediately with TypeError

tmallen avatartmallen 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

    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 ProjectModifiedEvent.java.
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.