[IPython-User] Warning when running code with 'import gtk'

Cameron Hayne cameron.hayne@dftmicrosystems....
Mon Nov 14 16:30:15 CST 2011


On 14-Nov-11, at 5:19 PM, Thomas Kluyver wrote:

> You could simply ignore the warning until IPython 0.12 is out. If  
> that's not possible, you could run IPython from git, or track down  
> the relevant code and encode sys.argv back to 8-bit strings.

Or (if you aren't actually passing any command-line args relevant to  
gtk), you could perhaps just set sys.argv = [None] just before the  
import statement.

--
Cameron Hayne
hayne@sympatico.ca






More information about the IPython-User mailing list