<b>Dear all,<br><br>I need to run R code with the IPython notebook in my Debian squeeze desktop computer. </b><span class="ansired" style="margin:0px;padding:0px;border:0px;font-size:14px;font:inherit;vertical-align:baseline;color:rgb(139,0,0)"><b><span style="color:rgb(0,0,0)">I can apparently load the rmagic extension but when I try to run R code I get the following error message:</span><br>
<br></b></span>AttributeError                            Traceback (most recent call last)<br>&lt;ipython-input-4-9de0d21a54a2&gt; in &lt;module&gt;()<br>----&gt; 1 get_ipython()._run_cached_cell_magic(u&#39;R&#39;, u&#39;&#39;)<br>
<br>/home/user/ipython/IPython/core/interactiveshell.pyc in _run_cached_cell_magic(self, magic_name, line)<br>   2550         cell = self._current_cell_magic_body<br>   2551         self._current_cell_magic_body = None<br>
-&gt; 2552         return self.run_cell_magic(magic_name, line, cell)<br>   2553 <br>   2554     def run_cell(self, raw_cell, store_history=False, silent=False, shell_futures=True):<br><br>/home/user/ipython/IPython/core/interactiveshell.pyc in run_cell_magic(self, magic_name, line, cell)<br>
   2130             magic_arg_s = self.var_expand(line, stack_depth)<br>   2131             with self.builtin_trap:<br>-&gt; 2132                 result = fn(magic_arg_s, cell)<br>   2133             return result<br>   2134 <br>
<br>&lt;string&gt; in R(self, line, cell, local_ns)<br><br>/home/user/ipython/IPython/core/magic.pyc in &lt;lambda&gt;(f, *a, **k)<br>    189     # but it&#39;s overkill for just that one bit of state.<br>    190     def magic_deco(arg):<br>
--&gt; 191         call = lambda f, *a, **k: f(*a, **k)<br>    192 <br>    193         if callable(arg):<br><br>/home/user/ipython/IPython/extensions/rmagic.py in R(self, line, cell, local_ns)<br>    550                 return_output = False<br>
    551         else:<br>--&gt; 552             text_result, result = self.eval(code)<br>    553             text_output += text_result<br>    554 <br><br>/home/user/ipython/IPython/extensions/rmagic.py in eval(self, line)<br>
    156         ri.set_writeconsole(self.write_console)<br>    157         try:<br>--&gt; 158             value = ri.baseenv[&#39;eval&#39;](ri.parse(line))<br>    159         except (ri.RRuntimeError, ValueError) as exception:<br>
    160             warning_or_other_msg = self.flush() # otherwise next return seems to have copy of error<br><br>AttributeError: &#39;module&#39; object has no attribute &#39;arse&#39;<br><br><br><b>After an iptest, I get:</b><br>
<br>Status:<br>ERROR - 3 out of 10 test groups failed.<br>----------------------------------------<br>Runner failed: IPython.core<br>You may wish to rerun this one individually, with:<br>/usr/bin/python /usr/local/lib/python2.6/dist-packages/ipython-0.13.1-py2.6.egg/IPython/testing/iptest.py IPython.core<br>
<br>----------------------------------------<br>Runner failed: IPython.extensions<br>You may wish to rerun this one individually, with:<br>/usr/bin/python /usr/local/lib/python2.6/dist-packages/ipython-0.13.1-py2.6.egg/IPython/testing/iptest.py IPython.extensions<br>
<br>----------------------------------------<br>Runner failed: IPython.utils<br>You may wish to rerun this one individually, with:<br>/usr/bin/python /usr/local/lib/python2.6/dist-packages/ipython-0.13.1-py2.6.egg/IPython/testing/iptest.py IPython.utils<br>
<br><b><br>And after the specific test for extensions</b><b><b>, I get</b>:</b><br><br>ERROR: IPython.extensions.tests.test_rmagic.test_Rconverter<br>----------------------------------------------------------------------<br>
Traceback (most recent call last):<br>  File &quot;/usr/local/lib/python2.6/dist-packages/nose-1.2.1-py2.6.egg/nose/case.py&quot;, line 197, in runTest<br>    self.test(*self.arg)<br>  File &quot;/usr/local/lib/python2.6/dist-packages/ipython-0.13.1-py2.6.egg/IPython/extensions/tests/test_rmagic.py&quot;, line 31, in test_Rconverter<br>
    v = ip.run_line_magic(&#39;Rget&#39;, &#39;-d datapy&#39;)<br>  File &quot;/usr/local/lib/python2.6/dist-packages/ipython-0.13.1-py2.6.egg/IPython/core/interactiveshell.py&quot;, line 2062, in run_line_magic<br>    result = fn(*args)<br>
  File &quot;&lt;string&gt;&quot;, line 2, in Rget<br>  File &quot;/usr/local/lib/python2.6/dist-packages/ipython-0.13.1-py2.6.egg/IPython/core/magic.py&quot;, line 191, in &lt;lambda&gt;<br>    call = lambda f, *a, **k: f(*a, **k)<br>
  File &quot;/usr/local/lib/python2.6/dist-packages/ipython-0.13.1-py2.6.egg/IPython/extensions/rmagic.py&quot;, line 299, in Rget<br>    return self.Rconverter(self.r(output[0]),dataframe=args.as_dataframe)<br>  File &quot;/usr/local/lib/python2.6/dist-packages/ipython-0.13.1-py2.6.egg/IPython/extensions/rmagic.py&quot;, line 107, in Rconverter<br>
    if cols != ri.NULL:<br>AttributeError: &#39;module&#39; object has no attribute &#39;NULL&#39;<br><br>======================================================================<br>ERROR: IPython.extensions.tests.test_rmagic.test_cell_magic<br>
----------------------------------------------------------------------<br>Traceback (most recent call last):<br>  File &quot;/usr/local/lib/python2.6/dist-packages/nose-1.2.1-py2.6.egg/nose/case.py&quot;, line 197, in runTest<br>
    self.test(*self.arg)<br>  File &quot;/usr/local/lib/python2.6/dist-packages/ipython-0.13.1-py2.6.egg/IPython/extensions/tests/test_rmagic.py&quot;, line 60, in test_cell_magic<br>    ip.run_cell_magic(&#39;R&#39;, &#39;-i x,y -o r,xc a=lm(y~x)&#39;, snippet)<br>
  File &quot;/usr/local/lib/python2.6/dist-packages/ipython-0.13.1-py2.6.egg/IPython/core/interactiveshell.py&quot;, line 2093, in run_cell_magic<br>    result = fn(line, cell)<br>  File &quot;&lt;string&gt;&quot;, line 2, in R<br>
  File &quot;/usr/local/lib/python2.6/dist-packages/ipython-0.13.1-py2.6.egg/IPython/core/magic.py&quot;, line 191, in &lt;lambda&gt;<br>    call = lambda f, *a, **k: f(*a, **k)<br>  File &quot;/usr/local/lib/python2.6/dist-packages/ipython-0.13.1-py2.6.egg/IPython/extensions/rmagic.py&quot;, line 516, in R<br>
    text_result, result = self.eval(code)<br>  File &quot;/usr/local/lib/python2.6/dist-packages/ipython-0.13.1-py2.6.egg/IPython/extensions/rmagic.py&quot;, line 158, in eval<br>    value = ri.baseenv[&#39;eval&#39;](ri.parse(line))<br>
AttributeError: &#39;module&#39; object has no attribute &#39;parse&#39;<br><br>----------------------------------------------------------------------<br>Ran 16 tests in 1.177s<br><br>FAILED (errors=2)<br><br><b>... Does anyone has a clue?</b><br>
<br><b>Thank you very much!</b><br><br>Kind regards,<br><br>Javier<br>