ImportError: cannot import name 'Origin' with Django 1.10
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Invalid
|
High
|
Unassigned |
Bug Description
With Django 1.10 installed we get the following traceback in regiond.log when we attempt to login:
Traceback (most recent call last):
File "/usr/lib/
return self.currentCon
File "/usr/lib/
self.
File "/usr/lib/
return func(*args, **kwargs)
File "/usr/lib/
self.started = True
--- <exception caught here> ---
File "/usr/lib/
appIterator = self.applicatio
File "/usr/lib/
File "/usr/lib/
response = get_response(
File "/usr/lib/
request, get_resolver(None), sys.exc_info())
File "/usr/lib/
response = upcall(request, resolver, exc_info)
File "/usr/lib/
File "/usr/lib/
File "/usr/lib/
template = loader.
File "/usr/lib/
"""
File "/usr/lib/
options[
File "/usr/lib/
"""
File "/usr/lib/
else:
File "/usr/lib/
Encapsulate a function call and act as a proxy for methods that are
File "/usr/lib/
return [import_library(x) for x in builtins]
File "/usr/lib/
loaded[name] = import_
File "/usr/lib/
return loaders
File "/usr/lib/
module_path, class_name)
File "/usr/lib/
return _bootstrap.
File "<frozen importlib.
File "<frozen importlib.
File "<frozen importlib.
File "<frozen importlib.
File "<frozen importlib.
File "<frozen importlib.
File "/usr/lib/
from django.template import Origin, TemplateDoesNot
builtins.
MAAS version: 2.2.0~beta1+
Ubuntu version: zesty
description: | updated |
Changed in maas: | |
milestone: | none → next |
importance: | Undecided → High |
status: | New → Triaged |
Changed in maas: | |
milestone: | next → none |
Just as a quick check, I ran in a container:
>>> from django.template import Origin
>>>
so I'm not entirely sure why it fails -- is this something that would be easy for me to reproduce, or do you possibly have an idea why it's happening? I don't know that much about Django, but I can try and help out so we can get the merge through.
-Nish