Traceback (most recent call last):


 "yowsup-cli", line 4, in <module>

__import__('pkg_resources').run_script('yowsup2==2.5.2', 'yowsup-cli')


 "C:\Users\Cc\Anaconda3\lib\site-packages\pkg_resources\__init__.py", line 748, in run_script

self.require(requires)[0].run_script(script_name, ns)


 "C:\Users\Cc\Anaconda3\lib\site-packages\pkg_resources\__init__.py", line 1517, in run_script

exec(code, namespace, namespace)


 "c:\users\cc\anaconda3\lib\site-packages\yowsup2-2.5.2-py3.6.egg\EGG-INFO\scripts\yowsup-cli", line 368, in <module>

if not parser.process():


 "c:\users\cc\anaconda3\lib\site-packages\yowsup2-2.5.2-py3.6.egg\EGG-INFO\scripts\yowsup-cli", line 270, in process

self.startEcho()


 "c:\users\cc\anaconda3\lib\site-packages\yowsup2-2.5.2-py3.6.egg\EGG-INFO\scripts\yowsup-cli", line 308, in startEcho

stack.start()


 "C:\Users\Cc\Anaconda3\lib\site-packages\yowsup2-2.5.2-py3.6.egg\yowsup\demos\echoclient\stack.py", line 21, in start

self.stack.loop()


 "C:\Users\Cc\Anaconda3\lib\site-packages\yowsup2-2.5.2-py3.6.egg\yowsup\stacks\yowstack.py", line 196, in loop

asyncore.loop(*args, **kwargs)


 "C:\Users\Cc\Anaconda3\lib\asyncore.py", line 203, in loop

poll_fun(timeout, map)


 "C:\Users\Cc\Anaconda3\lib\asyncore.py", line 150, in poll

read(obj)


 "C:\Users\Cc\Anaconda3\lib\asyncore.py", line 87, in read

obj.handle_error()


 "C:\Users\Cc\Anaconda3\lib\asyncore.py", line 83, in read

obj.handle_read_event()


 "C:\Users\Cc\Anaconda3\lib\asyncore.py", line 423, in handle_read_event

self.handle_read()


 "C:\Users\Cc\Anaconda3\lib\site-packages\yowsup2-2.5.2-py3.6.egg\yowsup\layers\network\layer.py", line 102, in handle_read

self.receive(data)


 "C:\Users\Cc\Anaconda3\lib\site-packages\yowsup2-2.5.2-py3.6.egg\yowsup\layers\network\layer.py", line 110, in receive

self.toUpper(data)


 "C:\Users\Cc\Anaconda3\lib\site-packages\yowsup2-2.5.2-py3.6.egg\yowsup\layers\__init__.py", line 79, in toUpper

self.__upper.receive(data)


 "C:\Users\Cc\Anaconda3\lib\site-packages\yowsup2-2.5.2-py3.6.egg\yowsup\layers\stanzaregulator\layer.py", line 29, in receive

self.processReceived()


 "C:\Users\Cc\Anaconda3\lib\site-packages\yowsup2-2.5.2-py3.6.egg\yowsup\layers\stanzaregulator\layer.py", line 49, in processReceived

self.toUpper(oneMessageData)


 "C:\Users\Cc\Anaconda3\lib\site-packages\yowsup2-2.5.2-py3.6.egg\yowsup\layers\__init__.py", line 79, in toUpper

self.__upper.receive(data)


 "C:\Users\Cc\Anaconda3\lib\site-packages\yowsup2-2.5.2-py3.6.egg\yowsup\layers\auth\layer_crypt.py", line 65, in receive

self.toUpper(payload)


 "C:\Users\Cc\Anaconda3\lib\site-packages\yowsup2-2.5.2-py3.6.egg\yowsup\layers\__init__.py", line 79, in toUpper

self.__upper.receive(data)


 "C:\Users\Cc\Anaconda3\lib\site-packages\yowsup2-2.5.2-py3.6.egg\yowsup\layers\coder\layer.py", line 35, in receive

self.toUpper(node)


 "C:\Users\Cc\Anaconda3\lib\site-packages\yowsup2-2.5.2-py3.6.egg\yowsup\layers\__init__.py", line 79, in toUpper

self.__upper.receive(data)


 "C:\Users\Cc\Anaconda3\lib\site-packages\yowsup2-2.5.2-py3.6.egg\yowsup\layers\logger\layer.py", line 14, in receive

self.toUpper(data)


 "C:\Users\Cc\Anaconda3\lib\site-packages\yowsup2-2.5.2-py3.6.egg\yowsup\layers\__init__.py", line 79, in toUpper

self.__upper.receive(data)


 "C:\Users\Cc\Anaconda3\lib\site-packages\yowsup2-2.5.2-py3.6.egg\yowsup\layers\axolotl\layer_control.py", line 44, in receive

self.toUpper(protocolTreeNode)


 "C:\Users\Cc\Anaconda3\lib\site-packages\yowsup2-2.5.2-py3.6.egg\yowsup\layers\__init__.py", line 79, in toUpper

self.__upper.receive(data)


 "C:\Users\Cc\Anaconda3\lib\site-packages\yowsup2-2.5.2-py3.6.egg\yowsup\layers\__init__.py", line 194, in receive

s.receive(data)


 "C:\Users\Cc\Anaconda3\lib\site-packages\yowsup2-2.5.2-py3.6.egg\yowsup\layers\axolotl\layer_receive.py", line 41, in receive

self.onMessage(protocolTreeNode)


 "C:\Users\Cc\Anaconda3\lib\site-packages\yowsup2-2.5.2-py3.6.egg\yowsup\layers\axolotl\layer_receive.py", line 74, in onMessage

self.handleEncMessage(protocolTreeNode)


 "C:\Users\Cc\Anaconda3\lib\site-packages\yowsup2-2.5.2-py3.6.egg\yowsup\layers\axolotl\layer_receive.py", line 88, in handleEncMessage

self.handleWhisperMessage(node)


 "C:\Users\Cc\Anaconda3\lib\site-packages\yowsup2-2.5.2-py3.6.egg\yowsup\layers\axolotl\layer_receive.py", line 144, in handleWhisperMessage

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


 "C:\Users\Cc\Anaconda3\lib\site-packages\yowsup2-2.5.2-py3.6.egg\yowsup\layers\axolotl\layer_receive.py", line 200, in parseAndHandleMessageProto

self.handleImageMessage(node, m.image_message)


 "C:\Users\Cc\Anaconda3\lib\site-packages\yowsup2-2.5.2-py3.6.egg\yowsup\layers\axolotl\layer_receive.py", line 237, in handleImageMessage

self.toUpper(messageNode)


 "C:\Users\Cc\Anaconda3\lib\site-packages\yowsup2-2.5.2-py3.6.egg\yowsup\layers\__init__.py", line 79, in toUpper

self.__upper.receive(data)


 "C:\Users\Cc\Anaconda3\lib\site-packages\yowsup2-2.5.2-py3.6.egg\yowsup\layers\__init__.py", line 194, in receive

s.receive(data)


 "C:\Users\Cc\Anaconda3\lib\site-packages\yowsup2-2.5.2-py3.6.egg\yowsup\layers\__init__.py", line 130, in receive

recv(node)


 "C:\Users\Cc\Anaconda3\lib\site-packages\yowsup2-2.5.2-py3.6.egg\yowsup\layers\protocol_media\layer.py", line 42, in recvMessageStanza

self.toUpper(entity)


 "C:\Users\Cc\Anaconda3\lib\site-packages\yowsup2-2.5.2-py3.6.egg\yowsup\layers\__init__.py", line 79, in toUpper

self.__upper.receive(data)


 "C:\Users\Cc\Anaconda3\lib\site-packages\yowsup2-2.5.2-py3.6.egg\yowsup\layers\interface\interface.py", line 80, in receive

self.entity_callbacks[entityType](entity)


 "C:\Users\Cc\Anaconda3\lib\site-packages\yowsup2-2.5.2-py3.6.egg\yowsup\demos\echoclient\layer.py", line 13, in onMessage

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


 "C:\Users\Cc\Anaconda3\lib\site-packages\yowsup2-2.5.2-py3.6.egg\yowsup\layers\__init__.py", line 84, in toLower

self.__lower.send(data)


 "C:\Users\Cc\Anaconda3\lib\site-packages\yowsup2-2.5.2-py3.6.egg\yowsup\layers\__init__.py", line 198, in send

s.send(data)


 "C:\Users\Cc\Anaconda3\lib\site-packages\yowsup2-2.5.2-py3.6.egg\yowsup\layers\__init__.py", line 136, in send

send(entity)


 "C:\Users\Cc\Anaconda3\lib\site-packages\yowsup2-2.5.2-py3.6.egg\yowsup\layers\protocol_media\layer.py", line 35, in sendMessageEntity

self.entityToLower(entity)


 "C:\Users\Cc\Anaconda3\lib\site-packages\yowsup2-2.5.2-py3.6.egg\yowsup\layers\__init__.py", line 140, in entityToLower

self.toLower(entity.toProtocolTreeNode())


 "C:\Users\Cc\Anaconda3\lib\site-packages\yowsup2-2.5.2-py3.6.egg\yowsup\layers\__init__.py", line 84, in toLower

self.__lower.send(data)


 "C:\Users\Cc\Anaconda3\lib\site-packages\yowsup2-2.5.2-py3.6.egg\yowsup\layers\__init__.py", line 198, in send

s.send(data)


 "C:\Users\Cc\Anaconda3\lib\site-packages\yowsup2-2.5.2-py3.6.egg\yowsup\layers\axolotl\layer_send.py", line 61, in send

self.toLower(node)


 "C:\Users\Cc\Anaconda3\lib\site-packages\yowsup2-2.5.2-py3.6.egg\yowsup\layers\__init__.py", line 84, in toLower

self.__lower.send(data)


 "C:\Users\Cc\Anaconda3\lib\site-packages\yowsup2-2.5.2-py3.6.egg\yowsup\layers\axolotl\layer_control.py", line 34, in send

self.toLower(node)


 "C:\Users\Cc\Anaconda3\lib\site-packages\yowsup2-2.5.2-py3.6.egg\yowsup\layers\__init__.py", line 84, in toLower

self.__lower.send(data)


 "C:\Users\Cc\Anaconda3\lib\site-packages\yowsup2-2.5.2-py3.6.egg\yowsup\layers\logger\layer.py", line 8, in send

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


 "C:\Users\Cc\Anaconda3\lib\site-packages\yowsup2-2.5.2-py3.6.egg\yowsup\structs\protocoltreenode.py", line 88, in __str__

return self.toString()


 "C:\Users\Cc\Anaconda3\lib\site-packages\yowsup2-2.5.2-py3.6.egg\yowsup\structs\protocoltreenode.py", line 80, in toString

out += c.toString()


 "C:\Users\Cc\Anaconda3\lib\site-packages\yowsup2-2.5.2-py3.6.egg\yowsup\structs\protocoltreenode.py", line 55, in toString

out+= " "+key+'="'+val+'"'
TypeError: must be str, not bytes

Traceback (most recent call last):


 "/home/frappe/benches/bench-2017-04-20/apps/frappe/frappe/desk/form/save.py", line 22, in savedocs

doc.save()


 "/home/frappe/benches/bench-2017-04-20/apps/frappe/frappe/model/document.py", line 231, in save

return self._save(*args, **kwargs)


 "/home/frappe/benches/bench-2017-04-20/apps/frappe/frappe/model/document.py", line 254, in _save

self.insert()


 "/home/frappe/benches/bench-2017-04-20/apps/frappe/frappe/model/document.py", line 193, in insert

self.run_before_save_methods()


 "/home/frappe/benches/bench-2017-04-20/apps/frappe/frappe/model/document.py", line 772, in run_before_save_methods

self.run_method("validate")


 "/home/frappe/benches/bench-2017-04-20/apps/frappe/frappe/model/document.py", line 667, in run_method

out = Document.hook(fn)(self, *args, **kwargs)


 "/home/frappe/benches/bench-2017-04-20/apps/frappe/frappe/model/document.py", line 892, in composer

return composed(self, method, *args, **kwargs)


 "/home/frappe/benches/bench-2017-04-20/apps/frappe/frappe/model/document.py", line 875, in runner

add_to_return_value(self, fn(self, *args, **kwargs))


 "/home/frappe/benches/bench-2017-04-20/apps/frappe/frappe/model/document.py", line 661, in 

fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)


 "/home/frappe/benches/bench-2017-04-20/apps/erpnext/erpnext/schools/doctype/course/course.py", line 12, in validate

self.validate_assessment_criteria()


 "/home/frappe/benches/bench-2017-04-20/apps/erpnext/erpnext/schools/doctype/course/course.py", line 18, in validate_assessment_criteria

total_weightage += criteria.weightage
TypeError: unsupported operand type(s) for +=: 'int' and 'NoneType'
