ImportError: cannot import name AccessMixin
kmt opened this issue · 2 comments
kmt commented
After clean install with Python 2.7 I'm getting:
Traceback (most recent call last):
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/home/kmt/prj/env/lib/python2.7/site-packages/django/core/management/__init__.py", line 399, in execute_from_command_line
utility.execute()
File "/home/kmt/prj/env/lib/python2.7/site-packages/django/core/management/__init__.py", line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/kmt/prj/env/lib/python2.7/site-packages/django/core/management/base.py", line 242, in run_from_argv
self.execute(*args, **options.__dict__)
File "/home/kmt/prj/env/lib/python2.7/site-packages/django/core/management/base.py", line 280, in execute
translation.activate('en-us')
File "/home/kmt/prj/env/lib/python2.7/site-packages/django/utils/translation/__init__.py", line 130, in activate
return _trans.activate(language)
File "/home/kmt/prj/env/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 188, in activate
_active.value = translation(language)
File "/home/kmt/prj/env/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 177, in translation
default_translation = _fetch(settings.LANGUAGE_CODE)
File "/home/kmt/prj/env/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 159, in _fetch
app = import_module(appname)
File "/home/kmt/prj/env/lib/python2.7/site-packages/django/utils/importlib.py", line 40, in import_module
__import__(name)
File "/home/kmt/prj/env/lib/python2.7/site-packages/djadmin2/__init__.py", line 13, in <module>
from . import core
File "/home/kmt/prj/env/lib/python2.7/site-packages/djadmin2/core.py", line 14, in <module>
from . import apiviews
File "/home/kmt/prj/env/lib/python2.7/site-packages/djadmin2/apiviews.py", line 12, in <module>
from .viewmixins import Admin2Mixin
File "/home/kmt/prj/env/lib/python2.7/site-packages/djadmin2/viewmixins.py", line 15, in <module>
from braces.views import AccessMixin
ImportError: cannot import name AccessMixin
$ pip freeze
pip freeze
Django==1.6.2
django-admin2==0.6.1
django-braces==1.4.0
django-crispy-forms==1.4.0
django-extra-views==0.6.4
django-filter==0.7
django-floppyforms==1.1.1
djangorestframework==2.3.13
getmail==4.43.0
six==1.6.1
wsgiref==0.1.2
pnuckowski commented
I have the same error, to work around this error need to downgrade django-braces to version 1.3.1
liouxiao commented
will be fixed in next release - 5ff6199#diff-2b44dce893f676064c5a727550566965