Traceback (most recent call last):

 "/home/laerus/projects/xonsh/xonsh/ptk/shortcuts.py", line 108, in prompt
document = cli.run(reset_current_buffer=False)

 "/home/laerus/.local/lib/python3.5/site-packages/prompt_toolkit/interface.py", line 389, in run
self.eventloop.run(self.input, self.create_eventloop_callbacks())

 "/home/laerus/.local/lib/python3.5/site-packages/prompt_toolkit/eventloop/posix.py", line 153, in run
t()

 "/home/laerus/.local/lib/python3.5/site-packages/prompt_toolkit/eventloop/posix.py", line 81, in read_from_stdin
inputstream.feed(data)

 "/home/laerus/.local/lib/python3.5/site-packages/prompt_toolkit/terminal/vt100_input.py", line 390, in feed
self._input_parser.send(c)

 "/home/laerus/.local/lib/python3.5/site-packages/prompt_toolkit/terminal/vt100_input.py", line 299, in _input_parser_generator
self._call_handler(match, prefix)

 "/home/laerus/.local/lib/python3.5/site-packages/prompt_toolkit/terminal/vt100_input.py", line 332, in _call_handler
self.feed_key_callback(KeyPress(key, insert_text))

 "/home/laerus/.local/lib/python3.5/site-packages/prompt_toolkit/interface.py", line 1019, in feed_key
cli.input_processor.process_keys()

 "/home/laerus/.local/lib/python3.5/site-packages/prompt_toolkit/key_binding/input_processor.py", line 209, in process_keys
cli.invalidate()

 "/home/laerus/.local/lib/python3.5/site-packages/prompt_toolkit/interface.py", line 333, in invalidate
self.eventloop.call_from_executor(redraw, _max_postpone_until=_max_postpone_until)

 "/home/laerus/.local/lib/python3.5/site-packages/prompt_toolkit/eventloop/posix.py", line 236, in call_from_executor
os.write(self._schedule_pipe[1], b'x')BrokenPipeError: [Errno 32] Broken pipe
Traceback (most recent call last):

 "<console>", line 1, in <module>

 "<string>", line 2, in commit

 "/usr/local/lib/python2.7/dist-packages/pony/utils.py", line 96, in cut_traceback
return func(*args, **kwargs)

 "/usr/local/lib/python2.7/dist-packages/pony/orm/core.py", line 463, in commit
if cache is not None: cache.commit()

 "/usr/local/lib/python2.7/dist-packages/pony/orm/core.py", line 3658, in commit
cache.save()

 "/usr/local/lib/python2.7/dist-packages/pony/orm/core.py", line 3724, in save
attr.add_m2m(added)

 "/usr/local/lib/python2.7/dist-packages/pony/orm/core.py", line 1885, in add_m2m
database._exec_sql(sql, arguments_list)

 "/usr/local/lib/python2.7/dist-packages/pony/orm/core.py", line 550, in _exec_sql
try: new_id = provider.execute(cursor, sql, arguments, returning_id)

 "<string>", line 2, in execute

 "/usr/local/lib/python2.7/dist-packages/pony/orm/dbapiprovider.py", line 46, in wrap_dbapi_exceptions
except dbapi_module.IntegrityError, e: raise IntegrityError(e)IntegrityError: (1062, "Duplicate entry '2-106' for key 'user_id'")