Invoking ptpython and entering print( crashes ptpython with In [1]: print(Traceback (most recent call last): File "/usr/lib/python-exec/python3.4/ptpython", line 9, in <module> load_entry_point('ptpython==0.5', 'console_scripts', 'ptpython')() File "/usr/lib64/python3.4/site-packages/ptpython/entry_points/run_ptpython.py no_colors=no_colors, startup_paths=startup_paths) File "/usr/lib64/python3.4/site-packages/ptpython/repl.py", line 208, in embed repl.start_repl(startup_paths=startup_paths)a+ [F2] Sidebar - CPython 3.4.2 File "/usr/lib64/python3.4/site-packages/ptpython/repl.py", line 51, in start_ on_exit=AbortAction.RAISE_EXCEPTION) File "/usr/lib64/python3.4/site-packages/prompt_toolkit/interface.py", line 29 next(g) File "/usr/lib64/python3.4/site-packages/prompt_toolkit/interface.py", line 35 loop_result = self.eventloop.loop() File "/usr/lib64/python3.4/site-packages/prompt_toolkit/eventloop/posix.py", l c() File "/usr/lib64/python3.4/site-packages/prompt_toolkit/interface.py", line 23 self.renderer.render(self, self.layout, self.style) File "/usr/lib64/python3.4/site-packages/prompt_toolkit/renderer.py", line 329 output.flush() File "/usr/lib64/python3.4/site-packages/prompt_toolkit/terminal/vt100_output. self.stdout.write(data) UnicodeEncodeError: 'latin-1' codec can't encode characters in position 461-539: locale gives LANG=en_US.iso88591 LC_CTYPE=en_US.iso88591 LC_NUMERIC="en_US.iso88591" LC_TIME="en_US.iso88591" LC_COLLATE="en_US.iso88591" LC_MONETARY="en_US.iso88591" LC_MESSAGES="en_US.iso88591" LC_PAPER="en_US.iso88591" LC_NAME="en_US.iso88591" LC_ADDRESS="en_US.iso88591" LC_TELEPHONE="en_US.iso88591" LC_MEASUREMENT="en_US.iso88591" LC_IDENTIFICATION="en_US.iso88591" LC_ALL=
It looks like your output might have gotten cut off.
Could you please report this upstream.
Old version removed. Please reopen if you can still reproduce it.