[IPython-user] ls and cat commands fail

Tony Mannucci Anthony.J.Mannucci@jpl.nasa....
Tue Jun 3 18:46:45 CDT 2008


I am running ipython 0.8.4 on Mac OS X 10.4.11 (PowerPC). Python 
version 2.5. I am having trouble with ls and cat commands. These work 
on other installations I have access to. The error message looks like:

>[python/source]|3> cat junk.dat
>---------------------------------------------------------------------------
>NameError                                 Traceback (most recent call last)
>
>/Users/mannucci/Documents/python/source/<ipython console> in <module>()
>
>/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/IPython/iplib.pyc 
>in <lambda>(cmd)
>     496         # and it allows interpolation of variables in the 
>user's namespace.
>     497         self.system = lambda cmd: \
>--> 498 
>self.hooks.shell_hook(self.var_expand(cmd,depth=2))
>     499
>     500         # These are for getoutput and getoutputerror:
>
>/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/IPython/hooks.pyc 
>in __call__(self, *args, **kw)
>     133             #print "prio",prio,"cmd",cmd #dbg
>     134             try:
>--> 135                 ret = cmd(*args, **kw)
>     136                 return ret
>     137             except ipapi.TryNext, exc:
>
>/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/IPython/Extensions/jobctrl.pyc 
>in jobctrl_shellcmd(ip, cmd)
>     209         try:
>     210             p = Popen(cmd,shell = use_shell)
>--> 211         except WindowsError:
>     212             if use_shell:
>     213                 # try with os.system
>
>NameError: global name 'WindowsError' is not defined

Thanks for your help!

I did not have this problem on ipython 0.8.2.

-Tony

-- 
Tony Mannucci
Supervisor, Ionospheric and Atmospheric Remote Sensing Group
  Mail-Stop 138-308,                     Tel > (818) 354-1699
  Jet Propulsion Laboratory,              Fax > (818) 393-5115
  California Institute of Technology,     Email > Tony.Mannucci@jpl.nasa.gov
  4800 Oak Grove Drive,                   http://genesis.jpl.nasa.gov
  Pasadena, CA 91109


More information about the IPython-user mailing list