Traceback (most recent call last):


 "./Port_Flap_Check.py", line 230, in <module>

fp.write(dev.rpc.get_log(filename='messages').text)
#to save in local copy


 "/usr/local/lib/python2.7/dist-packages/jnpr/junos/rpcmeta.py", line 342, in _exec_rpc

return self._junos.execute(rpc, **dec_args)


 "/usr/local/lib/python2.7/dist-packages/jnpr/junos/decorators.py", line 76, in wrapper

return function(*args, **kwargs)


 "/usr/local/lib/python2.7/dist-packages/jnpr/junos/decorators.py", line 31, in wrapper

return function(*args, **kwargs)


 "/usr/local/lib/python2.7/dist-packages/jnpr/junos/device.py", line 770, in execute

ignore_warning=ignore_warning)


 "/usr/local/lib/python2.7/dist-packages/jnpr/junos/decorators.py", line 116, in wrapper

rsp = function(self, *args, **kwargs)


 "/usr/local/lib/python2.7/dist-packages/jnpr/junos/device.py", line 1321, in _rpc_reply

return self._conn.rpc(rpc_cmd_e)._NCElement__doc


 "/usr/local/lib/python2.7/dist-packages/ncclient/manager.py", line 172, in wrapper

return self.execute(op_cls, *args, **kwds)


 "/usr/local/lib/python2.7/dist-packages/ncclient/manager.py", line 232, in execute

raise_mode=self._raise_mode).request(*args, **kwds)


 "/usr/local/lib/python2.7/dist-packages/ncclient/operations/third_party/juniper/rpc.py", line 44, in request

return self._request(rpc)


 "/usr/local/lib/python2.7/dist-packages/ncclient/operations/rpc.py", line 339, in _request

return NCElement(self._reply, self._device_handler.transform_reply())


 "/usr/local/lib/python2.7/dist-packages/ncclient/xml_.py", line 153, in __init__

self.__doc = self.remove_namespaces(self.__result)


 "/usr/local/lib/python2.7/dist-packages/ncclient/xml_.py", line 201, in remove_namespaces

self.__root = etree.fromstring(str(self.__transform(etree.parse(StringIO(str(rpc_reply))))))


 "src/lxml/lxml.etree.pyx", line 3442, in lxml.etree.parse (src/lxml/lxml.etree.c:81716)


 "src/lxml/parser.pxi", line 1828, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:118859)


 "src/lxml/parser.pxi", line 1848, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:119128)


 "src/lxml/parser.pxi", line 1736, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:117808)


 "src/lxml/parser.pxi", line 1102, in lxml.etree._BaseParser._parseDoc (src/lxml/lxml.etree.c:112052)


 "src/lxml/parser.pxi", line 595, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:105896)


 "src/lxml/parser.pxi", line 706, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:107604)


 "src/lxml/parser.pxi", line 635, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:106458)


 "<string>", line 72326
lxml.etree.XMLSyntaxError: xmlSAX2Characters: huge text node, line 72326, column 30

Traceback (most recent call last):

 "/tmp/buildd/sorl-thumbnail-11.12/tests/thumbnail_tests/tests.py", line 349, in test_orientation
self.assertEqual(exif.get(0x0112), 1)AssertionError: 2 != 1