Traceback (most recent call last):


 "crawler.py", line 3, in <module>

from builtins import open
ImportError: No module named builtins
Traceback (most recent call last):


 "/home/travis/virtualenv/python3.6.0/bin/py.test", line 11, in <module>

sys.exit(main())


 "/home/travis/virtualenv/python3.6.0/lib/python3.6/site-packages/_pytest/config.py", line 47, in main

config = _prepareconfig(args, plugins)


 "/home/travis/virtualenv/python3.6.0/lib/python3.6/site-packages/_pytest/config.py", line 156, in _prepareconfig

pluginmanager=pluginmanager, args=args)


 "/home/travis/virtualenv/python3.6.0/lib/python3.6/site-packages/_pytest/vendored_packages/pluggy.py", line 745, in __call__

return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)


 "/home/travis/virtualenv/python3.6.0/lib/python3.6/site-packages/_pytest/vendored_packages/pluggy.py", line 339, in _hookexec

return self._inner_hookexec(hook, methods, kwargs)


 "/home/travis/virtualenv/python3.6.0/lib/python3.6/site-packages/_pytest/vendored_packages/pluggy.py", line 334, in <lambda>

_MultiCall(methods, kwargs, hook.spec_opts).execute()


 "/home/travis/virtualenv/python3.6.0/lib/python3.6/site-packages/_pytest/vendored_packages/pluggy.py", line 613, in execute

return _wrapped_call(hook_impl.function(*args), self.execute)


 "/home/travis/virtualenv/python3.6.0/lib/python3.6/site-packages/_pytest/vendored_packages/pluggy.py", line 250, in _wrapped_call

wrap_controller.send(call_outcome)


 "/home/travis/virtualenv/python3.6.0/lib/python3.6/site-packages/_pytest/helpconfig.py", line 32, in pytest_cmdline_parse

config = outcome.get_result()


 "/home/travis/virtualenv/python3.6.0/lib/python3.6/site-packages/_pytest/vendored_packages/pluggy.py", line 279, in get_result

raise ex[1].with_traceback(ex[2])


 "/home/travis/virtualenv/python3.6.0/lib/python3.6/site-packages/_pytest/vendored_packages/pluggy.py", line 265, in __init__

self.result = func()


 "/home/travis/virtualenv/python3.6.0/lib/python3.6/site-packages/_pytest/vendored_packages/pluggy.py", line 614, in execute

res = hook_impl.function(*args)


 "/home/travis/virtualenv/python3.6.0/lib/python3.6/site-packages/_pytest/config.py", line 924, in pytest_cmdline_parse

self.parse(args)


 "/home/travis/virtualenv/python3.6.0/lib/python3.6/site-packages/_pytest/config.py", line 1082, in parse

self._preparse(args, addopts=addopts)


 "/home/travis/virtualenv/python3.6.0/lib/python3.6/site-packages/_pytest/config.py", line 1053, in _preparse

args=args, parser=self._parser)


 "/home/travis/virtualenv/python3.6.0/lib/python3.6/site-packages/_pytest/vendored_packages/pluggy.py", line 745, in __call__

return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)


 "/home/travis/virtualenv/python3.6.0/lib/python3.6/site-packages/_pytest/vendored_packages/pluggy.py", line 339, in _hookexec

return self._inner_hookexec(hook, methods, kwargs)


 "/home/travis/virtualenv/python3.6.0/lib/python3.6/site-packages/_pytest/vendored_packages/pluggy.py", line 334, in <lambda>

_MultiCall(methods, kwargs, hook.spec_opts).execute()


 "/home/travis/virtualenv/python3.6.0/lib/python3.6/site-packages/_pytest/vendored_packages/pluggy.py", line 613, in execute

return _wrapped_call(hook_impl.function(*args), self.execute)


 "/home/travis/virtualenv/python3.6.0/lib/python3.6/site-packages/_pytest/vendored_packages/pluggy.py", line 254, in _wrapped_call

return call_outcome.get_result()


 "/home/travis/virtualenv/python3.6.0/lib/python3.6/site-packages/_pytest/vendored_packages/pluggy.py", line 279, in get_result

raise ex[1].with_traceback(ex[2])


 "/home/travis/virtualenv/python3.6.0/lib/python3.6/site-packages/_pytest/vendored_packages/pluggy.py", line 265, in __init__

self.result = func()


 "/home/travis/virtualenv/python3.6.0/lib/python3.6/site-packages/_pytest/vendored_packages/pluggy.py", line 614, in execute

res = hook_impl.function(*args)


 "/home/travis/virtualenv/python3.6.0/lib/python3.6/site-packages/pytest_django/plugin.py", line 246, in pytest_load_initial_conftests

_setup_django()


 "/home/travis/virtualenv/python3.6.0/lib/python3.6/site-packages/pytest_django/plugin.py", line 149, in _setup_django

django.setup()


 "/home/travis/virtualenv/python3.6.0/lib/python3.6/site-packages/django/__init__.py", line 24, in setup

apps.populate(settings.INSTALLED_APPS)


 "/home/travis/virtualenv/python3.6.0/lib/python3.6/site-packages/django/apps/registry.py", line 112, in populate

app_config.import_models()


 "/home/travis/virtualenv/python3.6.0/lib/python3.6/site-packages/django/apps/config.py", line 198, in import_models

self.models_module = import_module(models_module_name)


 "/home/travis/virtualenv/python3.6.0/lib/python3.6/importlib/__init__.py", line 126, in import_module

return _bootstrap._gcd_import(name[level:], package, level)


 "<frozen importlib._bootstrap>", line 978, in _gcd_import


 "<frozen importlib._bootstrap>", line 961, in _find_and_load


 "<frozen importlib._bootstrap>", line 950, in _find_and_load_unlocked


 "<frozen importlib._bootstrap>", line 655, in _load_unlocked


 "<frozen importlib._bootstrap_external>", line 678, in exec_module


 "<frozen importlib._bootstrap>", line 205, in _call_with_frames_removed


 "/home/travis/build/michael-k/django-guardian/guardian/models.py", line 9, in <module>

from guardian.managers import GroupObjectPermissionManager, UserObjectPermissionManager


 "/home/travis/build/michael-k/django-guardian/guardian/managers.py", line 4, in <module>

from guardian.core import ObjectPermissionChecker


 "/home/travis/build/michael-k/django-guardian/guardian/core.py", line 7, in <module>

from guardian.utils import get_group_obj_perms_model, get_identity, get_user_obj_perms_model


 "/home/travis/build/michael-k/django-guardian/guardian/utils.py", line 12, in <module>

from django.contrib.auth.views import redirect_to_login


 "/home/travis/virtualenv/python3.6.0/lib/python3.6/site-packages/django/contrib/auth/views.py", line 11, in <module>

from django.contrib.auth.forms import (


 "/home/travis/virtualenv/python3.6.0/lib/python3.6/site-packages/django/contrib/auth/forms.py", line 20, in <module>

UserModel = get_user_model()


 "/home/travis/virtualenv/python3.6.0/lib/python3.6/site-packages/django/contrib/auth/__init__.py", line 189, in get_user_model

return django_apps.get_model(settings.AUTH_USER_MODEL, require_ready=False)


 "/home/travis/virtualenv/python3.6.0/lib/python3.6/site-packages/django/apps/registry.py", line 200, in get_model

app_config.import_models()


 "/home/travis/virtualenv/python3.6.0/lib/python3.6/site-packages/django/apps/config.py", line 198, in import_models

self.models_module = import_module(models_module_name)


 "/home/travis/virtualenv/python3.6.0/lib/python3.6/importlib/__init__.py", line 126, in import_module

return _bootstrap._gcd_import(name[level:], package, level)


 "/home/travis/build/michael-k/django-guardian/guardian/testapp/models.py", line 9, in <module>

from guardian.mixins import GuardianUserMixin


 "/home/travis/build/michael-k/django-guardian/guardian/mixins.py", line 7, in <module>

from guardian.models import UserObjectPermission
ImportError: cannot import name 'UserObjectPermission'
