[IPython-User] install .10 after installing .11
Lev Givon
lev@columbia....
Sat Aug 6 21:59:08 CDT 2011
Received from Julian Taylor on Sat, Aug 06, 2011 at 04:13:43AM EDT:
> On 08/06/2011 08:11 AM, Gustavo Goretkin wrote:
> > I installed IPython .11 but realized only afterwards that it is
> > incompatible with Spyder IDE. I think I might have done something
> > barbaric when trying to uninstall .11 and install .10. I installed .10.2
> > from source and everything looks fine. When I go to run ipython, though,
> > I get the following:
> >
> > /usr/local/lib/python2.6/dist-packages/nose/plugins/manager.py:405:
> > UserWarning: Module dateutil was already imported from
> > /usr/local/lib/python2.6/dist-packages/dateutil/__init__.pyc, but
> > /usr/lib/pymodules/python2.6 is being added to sys.path
> > import pkg_resources
> > Traceback (most recent call last):
> > File
> > "/usr/local/lib/python2.6/dist-packages/spyderlib/widgets/externalshell/startup.py",
> > line 181, in <module>
> > import IPython.Shell
> > File "/usr/local/lib/python2.6/dist-packages/IPython/Shell.py", line
> > 38, in <module>
> > from IPython.Magic import Magic
> > File "/usr/local/lib/python2.6/dist-packages/IPython/Magic.py", line
> > 89, in <module>
> > class Magic:
> > File "/usr/local/lib/python2.6/dist-packages/IPython/Magic.py", line
> > 536, in Magic
> > @testdec.skip_doctest
> > AttributeError: 'module' object has no attribute 'skip_doctest'
> >
> >
> > Thanks,
> > Gustavo
> >
>
> Hi,
> I can't really help with uninstalling (but here is a patch which should
> fix spyder:
> http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=5;filename=fix-ipython.patch;att=1;bug=636726
Although this patch does enable ipython 0.11 to start in spyder
2.0.12, there still seem to be some problems:
- When I try running a script in the "current ipython", I observe the
following exception:
/usr/lib/python2.6/site-packages/spyderlib/widgets/externalshell/startup.py
in runfile(filename, args, wdir)
112 glbs = globals()
113 if '__ipythonshell__' in glbs:
--> 114 glbs = glbs['__ipythonshell__'].IP.user_ns
115 glbs['__file__'] = filename
116 sys.argv = [filename]
AttributeError: 'InteractiveShellEmbed' object has no attribute 'IP'
- Created variables don't appear in the variable explorer.
Is the patch supposed to fix these?
L.G.
More information about the IPython-User
mailing list