[IPython-dev] Ipython unicode error

John Reid j.reid at mail.cryst.bbk.ac.uk
Sat Oct 6 12:24:44 EDT 2012


Apologies if this is a duplicate post, the first one didn't seem to
appear...

Hi,

I tried to do a ls from within ipython and it exited:

In [30]: ls Output/scan-T=001
Traceback (most recent call last):
  File "/usr/bin/ipython", line 8, in <module>
    launch_new_instance()
  File
"/usr/lib/python2.7/dist-packages/IPython/frontend/terminal/ipapp.py",
line 403, in launch_new_instance
    app.start()
  File
"/usr/lib/python2.7/dist-packages/IPython/frontend/terminal/ipapp.py",
line 377, in start
    self.shell.mainloop()
  File
"/usr/lib/python2.7/dist-packages/IPython/frontend/terminal/interactiveshell.py",
line 290, in mainloop
    self.interact(display_banner=display_banner)
  File
"/usr/lib/python2.7/dist-packages/IPython/frontend/terminal/interactiveshell.py",
line 409, in interact
    self.run_cell(source_raw, store_history=True)
  File
"/usr/lib/python2.7/dist-packages/IPython/core/interactiveshell.py",
line 2393, in run_cell
    self.logger.log(cell, raw_cell)
  File "/usr/lib/python2.7/dist-packages/IPython/core/logger.py", line
183, in log
    self.log_write(line_mod)
  File "/usr/lib/python2.7/dist-packages/IPython/core/logger.py", line
195, in log_write
    write(data)
UnicodeEncodeError: 'ascii' codec can't encode character u'\ufffd' in
position 0: ordinal not in range(128)

If you suspect this is an IPython bug, please report it at:
    https://github.com/ipython/ipython/issues
or send an email to the mailing list at ipython-dev at scipy.org

You can print a more detailed traceback right now with "%tb", or use
"%debug"
to interactively debug it.

Extra-detailed tracebacks for bug-reporting purposes can be enabled via:
    %config Application.verbose_crash=True


I'm running 0.12.1. Is this a known problem? I'm reporting it as
requested. Let me know if you want more info.

John.





More information about the IPython-dev mailing list