[Python-modules-team] Bug#807097: Bug#807097: python-django: Undeclared removal of previously supported features causes crashes
Brian May
bam at debian.org
Sun Dec 6 09:33:12 UTC 2015
Raphael Hertzog <hertzog at debian.org> writes:
> On Sat, 05 Dec 2015, Neil Williams wrote:
>> http://paste.debian.net/341382/
>
> So this one is fairly obvious, I already replied that it's
> django.template.base.Origin that you should have used in the first place
> since where the code actually is... relying on the fact that it was
> also imported in django.template is not very future-proof (when not
> documented).
Suspect you may have mis-diagnosed this issue - the import comes from a
Django file.
File "/usr/lib/python2.7/dist-packages/django/template/loaders/filesystem.py", line 10, in <module>
from django.template import Origin, TemplateDoesNotExist
ImportError: cannot import name Origin
If I run the above import by hand, with Django 1.9, it works:
(sid-amd64)root at prune:/home/brian# dpkg -l python-django
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-=============================-===================-===================-===============================================================
ii python-django 1.9-1 all High-level Python web development framework (Python 2 version)
(sid-amd64)root at prune:/home/brian# python
Python 2.7.10+ (default, Oct 10 2015, 09:11:24)
[GCC 5.2.1 20151028] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from django.template import Origin, TemplateDoesNotExist
>>>
>>>
So I have to wonder if maybe something else is causing the import
failure, not anything to do with Django 1.9
--
Brian May <bam at debian.org>
More information about the Python-modules-team
mailing list