the other patch was unfortunately incomplete.

This needs to be applied too:

--- spyder-2.0.12.orig/spyderlib/widgets/externalshell/startup.py       
2011-08-07 13:43:40.350580359 +0200
+++ spyder-2.0.12/spyderlib/widgets/externalshell/startup.py    2011-08-07 
13:43:54.740580365 +0200
@@ -111,7 +111,10 @@
         raise TypeError("expected a character buffer object")
     glbs = globals()
     if '__ipythonshell__' in glbs:
-        glbs = glbs['__ipythonshell__'].IP.user_ns
+        try:
+            glbs = glbs['__ipythonshell__'].user_ns
+        except AttributeError:
+            glbs = glbs['__ipythonshell__'].IP.user_ns
     glbs['__file__'] = filename
     sys.argv = [filename]
     if args is not None:

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to