Bug#849555: python-restless: FTBFS: ImportError: No module named itty

Chris Lamb lamby at debian.org
Wed Dec 28 15:23:04 UTC 2016


Source: python-restless
Version: 2.0.3-1
Severity: serious
Justification: fails to build from source
User: reproducible-builds at lists.alioth.debian.org
Usertags: ftbfs
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

Dear Maintainer,

python-restless fails to build from source in unstable/amd64:

  […]

  writing output... [100%] tutorial
  
  generating indices... genindex py-modindex
  writing additional pages... search
  copying static files... WARNING: html_static_path entry u'«BUILDDIR»/docs/_static' does not exist
  done
  copying extra files... done
  dumping search index in English (code: en) ... done
  dumping object inventory... done
  build succeeded, 3 warnings.
  make[1]: Leaving directory '«BUILDDIR»'
     dh_auto_test -O--buildsystem=pybuild
  I: pybuild base:184: cd «BUILDDIR»/.pybuild/pythonX.Y_2.7/build; python2.7 -m unittest discover -v 
  test_as_detail (tests.test_it.IttyResourceTestCase) ... skipped 'itty is not available'
  test_as_list (tests.test_it.IttyResourceTestCase) ... skipped 'itty is not available'
  test_build_response (tests.test_it.IttyResourceTestCase) ... skipped 'itty is not available'
  test_is_debug (tests.test_it.IttyResourceTestCase) ... skipped 'itty is not available'
  test_setup_urls (tests.test_it.IttyResourceTestCase) ... skipped 'itty is not available'
  test_basic_resource_detail (tests.test_tnd.FuncTrimTestCase) ... ok
  test_basic_resource_list (tests.test_tnd.FuncTrimTestCase) ... ok
  test_empty_resource (tests.test_tnd.FuncTrimTestCase) ... ok
  test_inheritance_resource_detail (tests.test_tnd.FuncTrimTestCase) ... ok
  test_body (tests.test_tnd.InternalTestCase) ... ok
  test_class (tests.test_tnd.InternalTestCase)
  test the generated tornado.web.RequestHandler ... ok
  test_is_debug (tests.test_tnd.InternalTestCase) ... ok
  test_method (tests.test_tnd.InternalTestCase) ... ok
  test_var (tests.test_tnd.InternalTestCase)
  make sure variable from tornado is correctly passed. ... ok
  test_as_detail (tests.test_tnd.TndAsyncResourceTestCase) ... ok
  test_as_list (tests.test_tnd.TndAsyncResourceTestCase) ... ok
  test_as_detail (tests.test_tnd.TndResourceTestCase) ... ok
  test_as_list (tests.test_tnd.TndResourceTestCase) ... ok
  test_not_authenticated (tests.test_tnd.TndResourceTestCase) ... WARNING:tornado.access:401 POST /fake (127.0.0.1) 4.37ms
  ok
  test_bubble_exceptions (tests.test_resources.ResourceTestCase) ... ok
  test_build_error (tests.test_resources.ResourceTestCase) ... ok
  test_build_response (tests.test_resources.ResourceTestCase) ... ok
  test_create (tests.test_resources.ResourceTestCase) ... ok
  test_create_detail (tests.test_resources.ResourceTestCase) ... ok
  test_delete (tests.test_resources.ResourceTestCase) ... ok
  test_delete_list (tests.test_resources.ResourceTestCase) ... ok
  test_deserialize (tests.test_resources.ResourceTestCase) ... ok
  test_deserialize_detail (tests.test_resources.ResourceTestCase) ... ok
  test_deserialize_list (tests.test_resources.ResourceTestCase) ... ok
  test_detail (tests.test_resources.ResourceTestCase) ... ok
  test_endpoint_create (tests.test_resources.ResourceTestCase) ... ok
  test_endpoint_create_detail (tests.test_resources.ResourceTestCase) ... ok
  test_endpoint_delete (tests.test_resources.ResourceTestCase) ... ok
  test_endpoint_delete_list (tests.test_resources.ResourceTestCase) ... ok
  test_endpoint_detail (tests.test_resources.ResourceTestCase) ... ok
  test_endpoint_list (tests.test_resources.ResourceTestCase) ... ok
  test_endpoint_update (tests.test_resources.ResourceTestCase) ... ok
  test_endpoint_update_list (tests.test_resources.ResourceTestCase) ... ok
  test_init (tests.test_resources.ResourceTestCase) ... ok
  test_is_authenticated (tests.test_resources.ResourceTestCase) ... ok
  test_is_debug (tests.test_resources.ResourceTestCase) ... ok
  test_list (tests.test_resources.ResourceTestCase) ... ok
  test_prepare (tests.test_resources.ResourceTestCase) ... ok
  test_request_body (tests.test_resources.ResourceTestCase) ... ok
  test_request_method (tests.test_resources.ResourceTestCase) ... ok
  test_serialize (tests.test_resources.ResourceTestCase) ... ok
  test_serialize_detail (tests.test_resources.ResourceTestCase) ... ok
  test_serialize_list (tests.test_resources.ResourceTestCase) ... ok
  test_update (tests.test_resources.ResourceTestCase) ... ok
  test_update_list (tests.test_resources.ResourceTestCase) ... ok
  test_wrap_list_response (tests.test_resources.ResourceTestCase) ... ok
  test_as_detail (tests.test_dj.DjangoResourceTestCase) ... ok
  test_as_list (tests.test_dj.DjangoResourceTestCase) ... ok
  test_as_view (tests.test_dj.DjangoResourceTestCase) ... ok
  test_build_url_name (tests.test_dj.DjangoResourceTestCase) ... ok
  test_create (tests.test_dj.DjangoResourceTestCase) ... ok
  test_delete (tests.test_dj.DjangoResourceTestCase) ... ok
  test_handle_build_err (tests.test_dj.DjangoResourceTestCase) ... ok
  test_handle_not_authenticated (tests.test_dj.DjangoResourceTestCase) ... ok
  test_handle_not_implemented (tests.test_dj.DjangoResourceTestCase) ... ok
  test_http404_exception_handling (tests.test_dj.DjangoResourceTestCase) ... ok
  test_object_does_not_exist (tests.test_dj.DjangoResourceTestCase) ... ok
  test_urls (tests.test_dj.DjangoResourceTestCase) ... ok
  test_add_url_rules (tests.test_fl.FlaskResourceTestCase) ... ok
  test_as_detail (tests.test_fl.FlaskResourceTestCase) ... ok
  test_as_list (tests.test_fl.FlaskResourceTestCase) ... ok
  test_build_response (tests.test_fl.FlaskResourceTestCase) ... ok
  test_is_debug (tests.test_fl.FlaskResourceTestCase) ... ok
  test_format_traceback (tests.test_utils.FormatTracebackTestCase) ... ok
  test_add_views (tests.test_pyr.PyramidResourceTestCase) ... ok
  test_as_detail (tests.test_pyr.PyramidResourceTestCase) ... ok
  test_as_list (tests.test_pyr.PyramidResourceTestCase) ... ok
  test_create (tests.test_pyr.PyramidResourceTestCase) ... ok
  test_handle_not_authenticated (tests.test_pyr.PyramidResourceTestCase) ... ok
  test_complex_miss (tests.test_preparers.LookupDataTestCase) ... ok
  test_dict_miss (tests.test_preparers.LookupDataTestCase) ... ok
  test_dict_nested (tests.test_preparers.LookupDataTestCase) ... ok
  test_dict_nullable_fk (tests.test_preparers.LookupDataTestCase) ... ok
  test_dict_simple (tests.test_preparers.LookupDataTestCase) ... ok
  test_empty_lookup (tests.test_preparers.LookupDataTestCase) ... ok
  test_obj_miss (tests.test_preparers.LookupDataTestCase) ... ok
  test_obj_nested (tests.test_preparers.LookupDataTestCase) ... ok
  test_obj_nullable_fk (tests.test_preparers.LookupDataTestCase) ... ok
  test_obj_simple (tests.test_preparers.LookupDataTestCase) ... ok
  test_deserialize (tests.test_serializers.JSONSerializerTestCase) ... ok
  test_deserialize_invalid (tests.test_serializers.JSONSerializerTestCase) ... ok
  test_serialize (tests.test_serializers.JSONSerializerTestCase) ... ok
  
  ----------------------------------------------------------------------
  Ran 87 tests in 0.061s
  
  OK (skipped=5)
  I: pybuild base:184: cd «BUILDDIR»/.pybuild/pythonX.Y_3.5/build; python3.5 -m unittest discover -v 
  test_as_detail (tests.test_dj.DjangoResourceTestCase) ... ok
  test_as_list (tests.test_dj.DjangoResourceTestCase) ... ok
  test_as_view (tests.test_dj.DjangoResourceTestCase) ... ok
  test_build_url_name (tests.test_dj.DjangoResourceTestCase) ... ok
  test_create (tests.test_dj.DjangoResourceTestCase) ... ok
  test_delete (tests.test_dj.DjangoResourceTestCase) ... ok
  test_handle_build_err (tests.test_dj.DjangoResourceTestCase) ... ok
  test_handle_not_authenticated (tests.test_dj.DjangoResourceTestCase) ... ok
  test_handle_not_implemented (tests.test_dj.DjangoResourceTestCase) ... ok
  test_http404_exception_handling (tests.test_dj.DjangoResourceTestCase) ... ok
  test_object_does_not_exist (tests.test_dj.DjangoResourceTestCase) ... ok
  test_urls (tests.test_dj.DjangoResourceTestCase) ... ok
  test_add_url_rules (tests.test_fl.FlaskResourceTestCase) ... ok
  test_as_detail (tests.test_fl.FlaskResourceTestCase) ... ok
  test_as_list (tests.test_fl.FlaskResourceTestCase) ... ok
  test_build_response (tests.test_fl.FlaskResourceTestCase) ... ok
  test_is_debug (tests.test_fl.FlaskResourceTestCase) ... ok
  test_as_detail (tests.test_it.IttyResourceTestCase) ... skipped 'itty is not available'
  test_as_list (tests.test_it.IttyResourceTestCase) ... skipped 'itty is not available'
  test_build_response (tests.test_it.IttyResourceTestCase) ... skipped 'itty is not available'
  test_is_debug (tests.test_it.IttyResourceTestCase) ... skipped 'itty is not available'
  test_setup_urls (tests.test_it.IttyResourceTestCase) ... skipped 'itty is not available'
  test_complex_miss (tests.test_preparers.LookupDataTestCase) ... ok
  test_dict_miss (tests.test_preparers.LookupDataTestCase) ... ok
  test_dict_nested (tests.test_preparers.LookupDataTestCase) ... ok
  test_dict_nullable_fk (tests.test_preparers.LookupDataTestCase) ... ok
  test_dict_simple (tests.test_preparers.LookupDataTestCase) ... ok
  test_empty_lookup (tests.test_preparers.LookupDataTestCase) ... ok
  test_obj_miss (tests.test_preparers.LookupDataTestCase) ... ok
  test_obj_nested (tests.test_preparers.LookupDataTestCase) ... ok
  test_obj_nullable_fk (tests.test_preparers.LookupDataTestCase) ... ok
  test_obj_simple (tests.test_preparers.LookupDataTestCase) ... ok
  test_add_views (tests.test_pyr.PyramidResourceTestCase) ... ok
  test_as_detail (tests.test_pyr.PyramidResourceTestCase) ... ERROR
  test_as_list (tests.test_pyr.PyramidResourceTestCase) ... ERROR
  test_create (tests.test_pyr.PyramidResourceTestCase) ... ERROR
  test_handle_not_authenticated (tests.test_pyr.PyramidResourceTestCase) ... ERROR
  test_bubble_exceptions (tests.test_resources.ResourceTestCase) ... ok
  test_build_error (tests.test_resources.ResourceTestCase) ... ok
  test_build_response (tests.test_resources.ResourceTestCase) ... ok
  test_create (tests.test_resources.ResourceTestCase) ... ok
  test_create_detail (tests.test_resources.ResourceTestCase) ... ok
  test_delete (tests.test_resources.ResourceTestCase) ... ok
  test_delete_list (tests.test_resources.ResourceTestCase) ... ok
  test_deserialize (tests.test_resources.ResourceTestCase) ... ok
  test_deserialize_detail (tests.test_resources.ResourceTestCase) ... ok
  test_deserialize_list (tests.test_resources.ResourceTestCase) ... ok
  test_detail (tests.test_resources.ResourceTestCase) ... ok
  test_endpoint_create (tests.test_resources.ResourceTestCase) ... ok
  test_endpoint_create_detail (tests.test_resources.ResourceTestCase) ... ok
  test_endpoint_delete (tests.test_resources.ResourceTestCase) ... ok
  test_endpoint_delete_list (tests.test_resources.ResourceTestCase) ... ok
  test_endpoint_detail (tests.test_resources.ResourceTestCase) ... ok
  test_endpoint_list (tests.test_resources.ResourceTestCase) ... ok
  test_endpoint_update (tests.test_resources.ResourceTestCase) ... ok
  test_endpoint_update_list (tests.test_resources.ResourceTestCase) ... ok
  test_init (tests.test_resources.ResourceTestCase) ... ok
  test_is_authenticated (tests.test_resources.ResourceTestCase) ... ok
  test_is_debug (tests.test_resources.ResourceTestCase) ... ok
  test_list (tests.test_resources.ResourceTestCase) ... ok
  test_prepare (tests.test_resources.ResourceTestCase) ... ok
  test_request_body (tests.test_resources.ResourceTestCase) ... ok
  test_request_method (tests.test_resources.ResourceTestCase) ... ok
  test_serialize (tests.test_resources.ResourceTestCase) ... ok
  test_serialize_detail (tests.test_resources.ResourceTestCase) ... ok
  test_serialize_list (tests.test_resources.ResourceTestCase) ... ok
  test_update (tests.test_resources.ResourceTestCase) ... ok
  test_update_list (tests.test_resources.ResourceTestCase) ... ok
  test_wrap_list_response (tests.test_resources.ResourceTestCase) ... ok
  test_deserialize (tests.test_serializers.JSONSerializerTestCase) ... ok
  test_deserialize_invalid (tests.test_serializers.JSONSerializerTestCase) ... ok
  test_serialize (tests.test_serializers.JSONSerializerTestCase) ... ok
  test_basic_resource_detail (tests.test_tnd.FuncTrimTestCase) ... ok
  test_basic_resource_list (tests.test_tnd.FuncTrimTestCase) ... ok
  test_empty_resource (tests.test_tnd.FuncTrimTestCase) ... ok
  test_inheritance_resource_detail (tests.test_tnd.FuncTrimTestCase) ... ok
  test_body (tests.test_tnd.InternalTestCase) ... ok
  test_class (tests.test_tnd.InternalTestCase)
  test the generated tornado.web.RequestHandler ... ok
  test_is_debug (tests.test_tnd.InternalTestCase) ... ok
  test_method (tests.test_tnd.InternalTestCase) ... ok
  test_var (tests.test_tnd.InternalTestCase)
  make sure variable from tornado is correctly passed. ... ok
  test_as_detail (tests.test_tnd.TndAsyncResourceTestCase) ... /usr/lib/python3/dist-packages/tornado/ioloop.py:724: ResourceWarning: unclosed <socket.socket fd=6, family=AddressFamily.AF_INET, type=2049, proto=0, laddr=('0.0.0.0', 0)>
    self._handlers[fd] = (obj, stack_context.wrap(handler))
  /usr/lib/python3/dist-packages/tornado/ioloop.py:724: ResourceWarning: unclosed <socket.socket fd=7, family=AddressFamily.AF_INET, type=2049, proto=0, laddr=('0.0.0.0', 0)>
    self._handlers[fd] = (obj, stack_context.wrap(handler))
  /usr/lib/python3/dist-packages/tornado/ioloop.py:724: ResourceWarning: unclosed <socket.socket fd=8, family=AddressFamily.AF_INET, type=2049, proto=0, laddr=('0.0.0.0', 0)>
    self._handlers[fd] = (obj, stack_context.wrap(handler))
  /usr/lib/python3/dist-packages/tornado/ioloop.py:724: ResourceWarning: unclosed <socket.socket fd=9, family=AddressFamily.AF_INET, type=2049, proto=0, laddr=('0.0.0.0', 0)>
    self._handlers[fd] = (obj, stack_context.wrap(handler))
  /usr/lib/python3/dist-packages/tornado/ioloop.py:724: ResourceWarning: unclosed <socket.socket fd=10, family=AddressFamily.AF_INET, type=2049, proto=0, laddr=('0.0.0.0', 0)>
    self._handlers[fd] = (obj, stack_context.wrap(handler))
  /usr/lib/python3/dist-packages/tornado/ioloop.py:724: ResourceWarning: unclosed <socket.socket fd=11, family=AddressFamily.AF_INET, type=2049, proto=0, laddr=('0.0.0.0', 0)>
    self._handlers[fd] = (obj, stack_context.wrap(handler))
  /usr/lib/python3/dist-packages/tornado/ioloop.py:724: ResourceWarning: unclosed <socket.socket fd=12, family=AddressFamily.AF_INET, type=2049, proto=0, laddr=('0.0.0.0', 0)>
    self._handlers[fd] = (obj, stack_context.wrap(handler))
  /usr/lib/python3/dist-packages/tornado/ioloop.py:724: ResourceWarning: unclosed <socket.socket fd=13, family=AddressFamily.AF_INET, type=2049, proto=0, laddr=('0.0.0.0', 0)>
    self._handlers[fd] = (obj, stack_context.wrap(handler))
  /usr/lib/python3/dist-packages/tornado/ioloop.py:724: ResourceWarning: unclosed <socket.socket fd=14, family=AddressFamily.AF_INET, type=2049, proto=0, laddr=('0.0.0.0', 0)>
    self._handlers[fd] = (obj, stack_context.wrap(handler))
  ok
  test_as_list (tests.test_tnd.TndAsyncResourceTestCase) ... ok
  test_as_detail (tests.test_tnd.TndResourceTestCase) ... ok
  test_as_list (tests.test_tnd.TndResourceTestCase) ... ok
  test_not_authenticated (tests.test_tnd.TndResourceTestCase) ... WARNING:tornado.access:401 POST /fake (127.0.0.1) 2.25ms
  ok
  test_format_traceback (tests.test_utils.FormatTracebackTestCase) ... ok
  
  ======================================================================
  ERROR: test_as_detail (tests.test_pyr.PyramidResourceTestCase)
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "«BUILDDIR»/.pybuild/pythonX.Y_3.5/build/tests/test_pyr.py", line 81, in test_as_detail
      resp = detail_endpoint(req)
    File "«BUILDDIR»/.pybuild/pythonX.Y_3.5/build/restless/pyr.py", line 27, in _wrapper
      return inst.handle('detail', name)
    File "«BUILDDIR»/.pybuild/pythonX.Y_3.5/build/restless/resources.py", line 290, in handle
      return self.build_response(serialized, status=status)
    File "«BUILDDIR»/.pybuild/pythonX.Y_3.5/build/restless/pyr.py", line 37, in build_response
      resp = Response(data, status_code=status, content_type=content_type)
    File "/usr/lib/python3/dist-packages/webob/response.py", line 310, in __init__
      "You cannot set the body to a text value without a "
  TypeError: You cannot set the body to a text value without a charset
  
  ======================================================================
  ERROR: test_as_list (tests.test_pyr.PyramidResourceTestCase)
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "«BUILDDIR»/.pybuild/pythonX.Y_3.5/build/tests/test_pyr.py", line 54, in test_as_list
      resp = list_endpoint(req)
    File "«BUILDDIR»/.pybuild/pythonX.Y_3.5/build/restless/resources.py", line 140, in _wrapper
      return inst.handle(view_type, *args, **kwargs)
    File "«BUILDDIR»/.pybuild/pythonX.Y_3.5/build/restless/resources.py", line 290, in handle
      return self.build_response(serialized, status=status)
    File "«BUILDDIR»/.pybuild/pythonX.Y_3.5/build/restless/pyr.py", line 37, in build_response
      resp = Response(data, status_code=status, content_type=content_type)
    File "/usr/lib/python3/dist-packages/webob/response.py", line 310, in __init__
      "You cannot set the body to a text value without a "
  TypeError: You cannot set the body to a text value without a charset
  
  ======================================================================
  ERROR: test_create (tests.test_pyr.PyramidResourceTestCase)
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "«BUILDDIR»/.pybuild/pythonX.Y_3.5/build/tests/test_pyr.py", line 109, in test_create
      resp = self.res.handle('list')
    File "«BUILDDIR»/.pybuild/pythonX.Y_3.5/build/restless/resources.py", line 290, in handle
      return self.build_response(serialized, status=status)
    File "«BUILDDIR»/.pybuild/pythonX.Y_3.5/build/restless/pyr.py", line 37, in build_response
      resp = Response(data, status_code=status, content_type=content_type)
    File "/usr/lib/python3/dist-packages/webob/response.py", line 310, in __init__
      "You cannot set the body to a text value without a "
  TypeError: You cannot set the body to a text value without a charset
  
  ======================================================================
  ERROR: test_handle_not_authenticated (tests.test_pyr.PyramidResourceTestCase)
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "«BUILDDIR»/.pybuild/pythonX.Y_3.5/build/restless/resources.py", line 280, in handle
      raise Unauthorized()
  restless.exceptions.Unauthorized: Unauthorized.
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File "«BUILDDIR»/.pybuild/pythonX.Y_3.5/build/tests/test_pyr.py", line 93, in test_handle_not_authenticated
      resp = self.res.handle('list')
    File "«BUILDDIR»/.pybuild/pythonX.Y_3.5/build/restless/resources.py", line 287, in handle
      return self.handle_error(err)
    File "«BUILDDIR»/.pybuild/pythonX.Y_3.5/build/restless/resources.py", line 306, in handle_error
      return self.build_error(err)
    File "«BUILDDIR»/.pybuild/pythonX.Y_3.5/build/restless/resources.py", line 211, in build_error
      return self.build_response(body, status=status)
    File "«BUILDDIR»/.pybuild/pythonX.Y_3.5/build/restless/pyr.py", line 37, in build_response
      resp = Response(data, status_code=status, content_type=content_type)
    File "/usr/lib/python3/dist-packages/webob/response.py", line 310, in __init__
      "You cannot set the body to a text value without a "
  TypeError: You cannot set the body to a text value without a charset
  
  ----------------------------------------------------------------------
  Ran 87 tests in 0.076s
  
  FAILED (errors=4, skipped=5)
  sys:1: ResourceWarning: unclosed file <_io.FileIO name=5 mode='wb' closefd=True>
  sys:1: ResourceWarning: unclosed file <_io.FileIO name=4 mode='rb' closefd=True>
  E: pybuild pybuild:276: test: plugin distutils failed with: exit code=1: cd «BUILDDIR»/.pybuild/pythonX.Y_3.5/build; python3.5 -m unittest discover -v 
  dh_auto_test: pybuild --test -i python{version} -p 3.5 returned exit code 13
  debian/rules:8: recipe for target 'build' failed
  make: *** [build] Error 25
  dpkg-buildpackage: error: debian/rules build gave error exit status 2

  […]

The full build log is attached.


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: python-restless.2.0.3-1.unstable.amd64.log.txt.gz
Type: application/octet-stream
Size: 9343 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/reproducible-bugs/attachments/20161228/d91c2ef8/attachment-0001.obj>


More information about the Reproducible-bugs mailing list