Traceback (most recent call last):


 "./ctpn/train_net.py", line 37, in <module>

restore=bool(int(cfg.TRAIN.restore)))


 "/home/yang/new-text-detection-ctpn/lib/fast_rcnn/train.py", line 226, in train_net

sw.train_model(sess, max_iters, restore=restore)


 "/home/yang/new-text-detection-ctpn/lib/fast_rcnn/train.py", line 123, in train_model

raise 'Check your pretrained model {:s}'.format(self.pretrained_model)
TypeError: exceptions must be old-style classes or derived from BaseException, not str

Traceback (most recent call last):


 "/home/frappe/frappe-bench/apps/frappe/frappe/email/doctype/email_account/email_account.py", line 278, in receive

communication = self.insert_communication(msg, args=args)


 "/home/frappe/frappe-bench/apps/frappe/frappe/email/doctype/email_account/email_account.py", line 335, in insert_communication

email = Email(raw)


 "/home/frappe/frappe-bench/apps/frappe/frappe/email/receive.py", line 370, in __init__

self.parse()


 "/home/frappe/frappe-bench/apps/frappe/frappe/email/receive.py", line 391, in parse

self.process_part(part)


 "/home/frappe/frappe-bench/apps/frappe/frappe/email/receive.py", line 443, in process_part

self.text_content += self.get_payload(part)


 "/home/frappe/frappe-bench/apps/frappe/frappe/email/receive.py", line 487, in get_payload

charset = self.get_charset(part)


 "/home/frappe/frappe-bench/apps/frappe/frappe/email/receive.py", line 482, in get_charset

charset = chardet.detect(str(part))['encoding']


 "/home/frappe/frappe-bench/env/lib/python3.5/site-packages/chardet/__init__.py", line 34, in detect

'{0}'.format(type(byte_str)))
TypeError: Expected object of type bytes or bytearray, got: <class 'str'>`
