[Python-modules-team] Bug#655568: sorl-thumbnail: FTBFS: tries to download stuff from the Internet
Jakub Wilk
jwilk at debian.org
Thu Jan 12 12:14:53 UTC 2012
Source: sorl-thumbnail
Version: 11.12-1
Severity: serious
Justification: fails to build from source
sorl-thumbnail FTBFS:
| debian/rules override_dh_auto_test
| make[1]: Entering directory `/build/sorl-thumbnail-OsSZAo/sorl-thumbnail-11.12'
| mkdir -p tmp-locales
| localedef -i en_US -c -f UTF-8 tmp-locales/en_US.UTF-8
| set -e; \
| for python in python2.7 python2.6; do \
| for name in pil pgmagick imagemagick graphicsmagick; do \
| LOCPATH=/build/sorl-thumbnail-OsSZAo/sorl-thumbnail-11.12/tmp-locales LC_ALL=en_US.UTF-8 PYTHONPATH=tests $python tests/runtests.py --settings=settings.$name ; \
| done; \
| done
| ...................E.............EE..
| ======================================================================
| ERROR: test_image_file_deserialize (thumbnail_tests.tests.SimpleTestCase)
| ----------------------------------------------------------------------
| Traceback (most recent call last):
| File "/build/sorl-thumbnail-OsSZAo/sorl-thumbnail-11.12/tests/thumbnail_tests/tests.py", line 245, in test_image_file_deserialize
| default.kvstore.set(im)
| File "/build/sorl-thumbnail-OsSZAo/sorl-thumbnail-11.12/tests/thumbnail_tests/kvstore.py", line 32, in set
| return super(TestKvStoreMixin, self).set(*args, **kwargs)
| File "/build/sorl-thumbnail-OsSZAo/sorl-thumbnail-11.12/tests/../sorl/thumbnail/kvstores/base.py", line 32, in set
| image_file.set_size() # make sure its got a size
| File "/build/sorl-thumbnail-OsSZAo/sorl-thumbnail-11.12/tests/../sorl/thumbnail/images.py", line 108, in set_size
| image = default.engine.get_image(self)
| File "/build/sorl-thumbnail-OsSZAo/sorl-thumbnail-11.12/tests/../sorl/thumbnail/engines/pil_engine.py", line 12, in get_image
| buf = StringIO(source.read())
| File "/build/sorl-thumbnail-OsSZAo/sorl-thumbnail-11.12/tests/../sorl/thumbnail/images.py", line 121, in read
| return self.storage.open(self.name).read()
| File "/build/sorl-thumbnail-OsSZAo/sorl-thumbnail-11.12/tests/../sorl/thumbnail/images.py", line 169, in open
| return urllib2.urlopen(name)
| File "/usr/lib/python2.7/urllib2.py", line 126, in urlopen
| return _opener.open(url, data, timeout)
| File "/usr/lib/python2.7/urllib2.py", line 400, in open
| response = self._open(req, data)
| File "/usr/lib/python2.7/urllib2.py", line 418, in _open
| '_open', req)
| File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain
| result = func(*args)
| File "/usr/lib/python2.7/urllib2.py", line 1207, in http_open
| return self.do_open(httplib.HTTPConnection, req)
| File "/usr/lib/python2.7/urllib2.py", line 1177, in do_open
| raise URLError(err)
| URLError: <urlopen error [Errno -2] Name or service not known>
|
| ======================================================================
| ERROR: testPortrait (thumbnail_tests.tests.TemplateTestCaseB)
| ----------------------------------------------------------------------
| Traceback (most recent call last):
| File "/build/sorl-thumbnail-OsSZAo/sorl-thumbnail-11.12/tests/thumbnail_tests/tests.py", line 365, in testPortrait
| 'dims': 'x666',
| File "/usr/lib/python2.7/dist-packages/django/template/loader.py", line 183, in render_to_string
| return t.render(Context(dictionary))
| File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 123, in render
| return self._render(context)
| File "/usr/lib/python2.7/dist-packages/django/test/utils.py", line 60, in instrumented_test_render
| return self.nodelist.render(context)
| File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 744, in render
| bits.append(self.render_node(node, context))
| File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 757, in render_node
| return node.render(context)
| File "/usr/lib/python2.7/dist-packages/django/template/defaulttags.py", line 394, in render
| return strip_spaces_between_tags(self.nodelist.render(context).strip())
| File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 744, in render
| bits.append(self.render_node(node, context))
| File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 757, in render_node
| return node.render(context)
| File "/usr/lib/python2.7/dist-packages/django/template/defaulttags.py", line 306, in render
| var = self.var.eval(context)
| File "/usr/lib/python2.7/dist-packages/django/template/defaulttags.py", line 851, in eval
| return self.value.resolve(context, ignore_failures=True)
| File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 536, in resolve
| new_obj = func(obj, *arg_vals)
| File "/build/sorl-thumbnail-OsSZAo/sorl-thumbnail-11.12/tests/../sorl/thumbnail/templatetags/thumbnail.py", line 132, in is_portrait
| image_file = default.kvstore.get_or_set(ImageFile(file_))
| File "/build/sorl-thumbnail-OsSZAo/sorl-thumbnail-11.12/tests/../sorl/thumbnail/kvstores/base.py", line 49, in get_or_set
| self.set(image_file)
| File "/build/sorl-thumbnail-OsSZAo/sorl-thumbnail-11.12/tests/thumbnail_tests/kvstore.py", line 32, in set
| return super(TestKvStoreMixin, self).set(*args, **kwargs)
| File "/build/sorl-thumbnail-OsSZAo/sorl-thumbnail-11.12/tests/../sorl/thumbnail/kvstores/base.py", line 32, in set
| image_file.set_size() # make sure its got a size
| File "/build/sorl-thumbnail-OsSZAo/sorl-thumbnail-11.12/tests/../sorl/thumbnail/images.py", line 108, in set_size
| image = default.engine.get_image(self)
| File "/build/sorl-thumbnail-OsSZAo/sorl-thumbnail-11.12/tests/../sorl/thumbnail/engines/pil_engine.py", line 12, in get_image
| buf = StringIO(source.read())
| File "/build/sorl-thumbnail-OsSZAo/sorl-thumbnail-11.12/tests/../sorl/thumbnail/images.py", line 121, in read
| return self.storage.open(self.name).read()
| File "/build/sorl-thumbnail-OsSZAo/sorl-thumbnail-11.12/tests/../sorl/thumbnail/images.py", line 169, in open
| return urllib2.urlopen(name)
| File "/usr/lib/python2.7/urllib2.py", line 126, in urlopen
| return _opener.open(url, data, timeout)
| File "/usr/lib/python2.7/urllib2.py", line 400, in open
| response = self._open(req, data)
| File "/usr/lib/python2.7/urllib2.py", line 418, in _open
| '_open', req)
| File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain
| result = func(*args)
| File "/usr/lib/python2.7/urllib2.py", line 1207, in http_open
| return self.do_open(httplib.HTTPConnection, req)
| File "/usr/lib/python2.7/urllib2.py", line 1177, in do_open
| raise URLError(err)
| URLError: <urlopen error [Errno -2] Name or service not known>
|
| ======================================================================
| ERROR: testUrl (thumbnail_tests.tests.TemplateTestCaseB)
| ----------------------------------------------------------------------
| Traceback (most recent call last):
| File "/build/sorl-thumbnail-OsSZAo/sorl-thumbnail-11.12/tests/thumbnail_tests/tests.py", line 359, in testUrl
| val = render_to_string('thumbnail3.html', {}).strip()
| File "/usr/lib/python2.7/dist-packages/django/template/loader.py", line 183, in render_to_string
| return t.render(Context(dictionary))
| File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 123, in render
| return self._render(context)
| File "/usr/lib/python2.7/dist-packages/django/test/utils.py", line 60, in instrumented_test_render
| return self.nodelist.render(context)
| File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 744, in render
| bits.append(self.render_node(node, context))
| File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 757, in render_node
| return node.render(context)
| File "/usr/lib/python2.7/dist-packages/django/template/defaulttags.py", line 394, in render
| return strip_spaces_between_tags(self.nodelist.render(context).strip())
| File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 744, in render
| bits.append(self.render_node(node, context))
| File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 757, in render_node
| return node.render(context)
| File "/build/sorl-thumbnail-OsSZAo/sorl-thumbnail-11.12/tests/../sorl/thumbnail/templatetags/thumbnail.py", line 45, in render
| return self._render(context)
| File "/build/sorl-thumbnail-OsSZAo/sorl-thumbnail-11.12/tests/../sorl/thumbnail/templatetags/thumbnail.py", line 97, in _render
| file_, geometry, **options
| File "/build/sorl-thumbnail-OsSZAo/sorl-thumbnail-11.12/tests/../sorl/thumbnail/base.py", line 56, in get_thumbnail
| source_image = default.engine.get_image(source)
| File "/build/sorl-thumbnail-OsSZAo/sorl-thumbnail-11.12/tests/../sorl/thumbnail/engines/pil_engine.py", line 12, in get_image
| buf = StringIO(source.read())
| File "/build/sorl-thumbnail-OsSZAo/sorl-thumbnail-11.12/tests/../sorl/thumbnail/images.py", line 121, in read
| return self.storage.open(self.name).read()
| File "/build/sorl-thumbnail-OsSZAo/sorl-thumbnail-11.12/tests/../sorl/thumbnail/images.py", line 169, in open
| return urllib2.urlopen(name)
| File "/usr/lib/python2.7/urllib2.py", line 126, in urlopen
| return _opener.open(url, data, timeout)
| File "/usr/lib/python2.7/urllib2.py", line 400, in open
| response = self._open(req, data)
| File "/usr/lib/python2.7/urllib2.py", line 418, in _open
| '_open', req)
| File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain
| result = func(*args)
| File "/usr/lib/python2.7/urllib2.py", line 1207, in http_open
| return self.do_open(httplib.HTTPConnection, req)
| File "/usr/lib/python2.7/urllib2.py", line 1177, in do_open
| raise URLError(err)
| URLError: <urlopen error [Errno -2] Name or service not known>
|
| ----------------------------------------------------------------------
| Ran 37 tests in 2.600s
|
| FAILED (errors=3)
| Running tests for 'settings.pil'
| Creating test database for alias 'default'...
| Destroying test database for alias 'default'...
| make[1]: *** [override_dh_auto_test] Error 1
--
Jakub Wilk
More information about the Python-modules-team
mailing list