[IPython-dev] wxIPython 0.6 (Multithreaded and current bug list flushed)

Laurent Dufrechou laurent.dufrechou@gmail....
Wed Dec 12 06:37:50 CST 2007


Hi Prabhu,

>When I run wxIPython.py, I run into the following.
>
>  1. I can't see what I type, altho you have the FG set to WHITE it 
>renders it black.  So unless I change the BG (in ipython_view.py) to 
>something else that is light I can't see the cursor or any test I type.

Hum seems to be a GTK problem with wx. It is probably handled differently.
I'll launch my debian machine to check this.
So foreground is not well set...
Can you (while in black) do an error like "a"+enter at startup and tells me
if traceback appears in color?

>  2. Regardless of 1 if I do type anything I get the following
>In [1]: print "hello"
>---------------------------------------------------------------------------
><type 'exceptions.TypeError'>             Traceback (most recent call last)
>
>/var/lib/python-support/python2.5/IPython/iplib.py in raw_input(self, 
>prompt, continue_prompt)
>    2013
>    2014         try:
>-> 2015             line = 
>raw_input_original(prompt).decode(self.stdin_encoding)
>   2016         except ValueError:
>    2017             warn("\n********\nYou or a %run:ed script called 
>sys.stdin.close()"
>
><type 'exceptions.TypeError'>: decode() argument 1 must be string, not None
>In [2]:

Ouch, it's a locale problem. In fact in some point of the code I try to
detect the local used on the system, and in your case, it has not been
detected, and set to None.
Locale is set line 108:
#we replace IPython default encoding by wx locale encoding
self._IP.stdin_encoding = locale.getdefaultlocale()[1]

Anyway, if you want to continue to try the app, just comment this line.

Can you please send me the result of: 
Import locale
print locale.getdefaultlocale()?


regards,
Laurent



More information about the IPython-dev mailing list