Traceback (most recent call last):


 "C:\Users\w10\anaconda3\lib\site-packages\tornado\ioloop.py", line 743, in _run_callback

ret = callback()


 "C:\Users\w10\anaconda3\lib\site-packages\jupyter_client\threaded.py", line 83, in thread_send

self.session.send(self.stream, msg)


 "C:\Users\w10\anaconda3\lib\site-packages\jupyter_client\session.py", line 747, in send

to_send = self.serialize(msg, ident)


 "C:\Users\w10\anaconda3\lib\site-packages\jupyter_client\session.py", line 660, in serialize

signature = self.sign(real_message)


 "C:\Users\w10\anaconda3\lib\site-packages\jupyter_client\session.py", line 606, in sign

return str_to_bytes(h.hexdigest())


 "C:\Users\w10\anaconda3\lib\site-packages\ipython_genutils\py3compat.py", line 21, in encode

return u.encode(encoding, "replace")
NotImplementedError: encoding with 'cp1252' codec failed (NotImplementedError: )


Traceback (most recent call last):


 "/home/frappe/frappe-bench/apps/frappe/frappe/model/base_document.py", line 324, in db_insert

), list(d.values()))


 "/home/frappe/frappe-bench/apps/frappe/frappe/database/database.py", line 156, in sql

self._cursor.execute(query, values)


 "/home/frappe/frappe-bench/env/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute

result = self._query(query)


 "/home/frappe/frappe-bench/env/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query

conn.query(q)


 "/home/frappe/frappe-bench/env/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query

self._affected_rows = self._read_query_result(unbuffered=unbuffered)


 "/home/frappe/frappe-bench/env/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result

result.read()


 "/home/frappe/frappe-bench/env/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read

first_packet = self.connection._read_packet()


 "/home/frappe/frappe-bench/env/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet

packet.check_error()


 "/home/frappe/frappe-bench/env/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error

err.raise_mysql_exception(self._data)


 "/home/frappe/frappe-bench/env/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception

raise errorclass(errno, errval)

pymysql.err.IntegrityError: (1062, "Duplicate entry 'AL-00302' for key 'PRIMARY'")
