Traceback (most recent call last):


 "/snap/git-cola-brlin/x2/share/git-cola/lib/cola/gitcfg.py", line 467, in color

r, g, b = struct.unpack(struct_layout, unhex(string))


 "/snap/git-cola-brlin/x2/share/git-cola/lib/cola/gitcfg.py", line 90, in unhex

return unhexlify(value.lstrip('#'))
TypeError: a bytes-like object is required, not 'str'

Traceback (most recent call last):


 "/home/user/yowsuptest/run.py", line 6, in <module>

stack.start()


 "/home/user/yowsuptest/stack.py", line 21, in start

self.stack.loop()


 "/usr/local/lib/python3.5/dist-packages/yowsup/stacks/yowstack.py", line 196, in loop

asyncore.loop(*args, **kwargs)


 "/usr/lib/python3.5/asyncore.py", line 203, in loop

poll_fun(timeout, map)


 "/usr/lib/python3.5/asyncore.py", line 150, in poll

read(obj)


 "/usr/lib/python3.5/asyncore.py", line 87, in read

obj.handle_error()


 "/usr/lib/python3.5/asyncore.py", line 83, in read

obj.handle_read_event()


 "/usr/lib/python3.5/asyncore.py", line 423, in handle_read_event

self.handle_read()


 "/usr/local/lib/python3.5/dist-packages/yowsup/layers/network/layer.py", line 102, in handle_read

self.receive(data)


 "/usr/local/lib/python3.5/dist-packages/yowsup/layers/network/layer.py", line 110, in receive

self.toUpper(data)


 "/usr/local/lib/python3.5/dist-packages/yowsup/layers/__init__.py", line 79, in toUpper

self.__upper.receive(data)


 "/usr/local/lib/python3.5/dist-packages/yowsup/layers/stanzaregulator/layer.py", line 29, in receive

self.processReceived()


 "/usr/local/lib/python3.5/dist-packages/yowsup/layers/stanzaregulator/layer.py", line 49, in processReceived

self.toUpper(oneMessageData)


 "/usr/local/lib/python3.5/dist-packages/yowsup/layers/__init__.py", line 79, in toUpper

self.__upper.receive(data)


 "/usr/local/lib/python3.5/dist-packages/yowsup/layers/auth/layer_crypt.py", line 65, in receive

self.toUpper(payload)


 "/usr/local/lib/python3.5/dist-packages/yowsup/layers/__init__.py", line 79, in toUpper

self.__upper.receive(data)


 "/usr/local/lib/python3.5/dist-packages/yowsup/layers/coder/layer.py", line 35, in receive

self.toUpper(node)


 "/usr/local/lib/python3.5/dist-packages/yowsup/layers/__init__.py", line 79, in toUpper

self.__upper.receive(data)


 "/usr/local/lib/python3.5/dist-packages/yowsup/layers/logger/layer.py", line 14, in receive

self.toUpper(data)


 "/usr/local/lib/python3.5/dist-packages/yowsup/layers/__init__.py", line 79, in toUpper

self.__upper.receive(data)


 "/usr/local/lib/python3.5/dist-packages/yowsup/layers/axolotl/layer_control.py", line 44, in receive

self.toUpper(protocolTreeNode)


 "/usr/local/lib/python3.5/dist-packages/yowsup/layers/__init__.py", line 79, in toUpper

self.__upper.receive(data)


 "/usr/local/lib/python3.5/dist-packages/yowsup/layers/__init__.py", line 194, in receive

s.receive(data)


 "/usr/local/lib/python3.5/dist-packages/yowsup/layers/axolotl/layer_receive.py", line 41, in receive

self.onMessage(protocolTreeNode)


 "/usr/local/lib/python3.5/dist-packages/yowsup/layers/axolotl/layer_receive.py", line 74, in onMessage

self.handleEncMessage(protocolTreeNode)


 "/usr/local/lib/python3.5/dist-packages/yowsup/layers/axolotl/layer_receive.py", line 88, in handleEncMessage

self.handleWhisperMessage(node)


 "/usr/local/lib/python3.5/dist-packages/yowsup/layers/axolotl/layer_receive.py", line 144, in handleWhisperMessage

self.parseAndHandleMessageProto(encMessageProtocolEntity, plaintext[:-padding])


 "/usr/local/lib/python3.5/dist-packages/yowsup/layers/axolotl/layer_receive.py", line 200, in parseAndHandleMessageProto

self.handleImageMessage(node, m.image_message)


 "/usr/local/lib/python3.5/dist-packages/yowsup/layers/axolotl/layer_receive.py", line 237, in handleImageMessage

self.toUpper(messageNode)


 "/usr/local/lib/python3.5/dist-packages/yowsup/layers/__init__.py", line 79, in toUpper

self.__upper.receive(data)


 "/usr/local/lib/python3.5/dist-packages/yowsup/layers/__init__.py", line 194, in receive

s.receive(data)


 "/usr/local/lib/python3.5/dist-packages/yowsup/layers/__init__.py", line 130, in receive

recv(node)


 "/usr/local/lib/python3.5/dist-packages/yowsup/layers/protocol_media/layer.py", line 42, in recvMessageStanza

self.toUpper(entity)


 "/usr/local/lib/python3.5/dist-packages/yowsup/layers/__init__.py", line 79, in toUpper

self.__upper.receive(data)


 "/usr/local/lib/python3.5/dist-packages/yowsup/layers/interface/interface.py", line 80, in receive

self.entity_callbacks[entityType](entity)


 "/home/user/yowsuptest/layer.py", line 13, in onMessage

self.toLower(messageProtocolEntity.forward(messageProtocolEntity.getFrom()))


 "/usr/local/lib/python3.5/dist-packages/yowsup/layers/__init__.py", line 84, in toLower

self.__lower.send(data)


 "/usr/local/lib/python3.5/dist-packages/yowsup/layers/__init__.py", line 198, in send

s.send(data)


 "/usr/local/lib/python3.5/dist-packages/yowsup/layers/__init__.py", line 136, in send

send(entity)


 "/usr/local/lib/python3.5/dist-packages/yowsup/layers/protocol_media/layer.py", line 35, in sendMessageEntity

self.entityToLower(entity)


 "/usr/local/lib/python3.5/dist-packages/yowsup/layers/__init__.py", line 140, in entityToLower

self.toLower(entity.toProtocolTreeNode())


 "/usr/local/lib/python3.5/dist-packages/yowsup/layers/__init__.py", line 84, in toLower

self.__lower.send(data)


 "/usr/local/lib/python3.5/dist-packages/yowsup/layers/__init__.py", line 198, in send

s.send(data)


 "/usr/local/lib/python3.5/dist-packages/yowsup/layers/axolotl/layer_send.py", line 61, in send

self.toLower(node)


 "/usr/local/lib/python3.5/dist-packages/yowsup/layers/__init__.py", line 84, in toLower

self.__lower.send(data)


 "/usr/local/lib/python3.5/dist-packages/yowsup/layers/axolotl/layer_control.py", line 34, in send

self.toLower(node)


 "/usr/local/lib/python3.5/dist-packages/yowsup/layers/__init__.py", line 84, in toLower

self.__lower.send(data)


 "/usr/local/lib/python3.5/dist-packages/yowsup/layers/logger/layer.py", line 8, in send

logger.debug("tx:\n%s" % ldata)


 "/usr/local/lib/python3.5/dist-packages/yowsup/structs/protocoltreenode.py", line 88, in __str__

return self.toString()


 "/usr/local/lib/python3.5/dist-packages/yowsup/structs/protocoltreenode.py", line 80, in toString

out += c.toString()


 "/usr/local/lib/python3.5/dist-packages/yowsup/structs/protocoltreenode.py", line 55, in toString

out+= " "+key+'="'+val+'"'
TypeError: Can't convert 'bytes' object to str implicitly
