Traceback (most recent call last):


 "C:\programdata\miniconda3\lib\logging\__init__.py", line 1085, in emit

self.flush()


 "C:\programdata\miniconda3\lib\logging\__init__.py", line 1065, in flush

self.stream.flush()
OSError: [Errno 9] Bad file descriptor

Traceback (most recent call last):


 "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/xonsh/main.py", line 337, in main

return main_xonsh(args)


 "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/xonsh/main.py", line 364, in main_xonsh

shell.shell.cmdloop()


 "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/xonsh/ptk/shell.py", line 153, in cmdloop

line = self.singleline(auto_suggest=auto_suggest)


 "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/xonsh/ptk/shell.py", line 119, in singleline

line = self.prompter.prompt(**prompt_args)


 "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/xonsh/ptk/shortcuts.py", line 118, in prompt

eventloop.close()


 "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/prompt_toolkit/eventloop/posix.py", line 270, in close

os.close(schedule_pipe[0])
OSError: [Errno 9] Bad file descriptor
