I wrote the commands in ipython shell as you suggested so here we have the output result..<br><br><div class="gmail_quote">On Tue, Feb 26, 2013 at 12:05 PM, Yaroslav Halchenko <span dir="ltr"><<a href="mailto:debian@onerussian.com" target="_blank">debian@onerussian.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><br>
On Tue, 26 Feb 2013, Abduljalil Sireis wrote:<br>
<br>
</div><div>>      head ./test.py # in your shell<br>
>      then ?<br>
<br>
>    #!/usr/bin/env ipython<br>
>    # -*- coding: utf-8 -*-<br>
>    """<br>
>    Spyder Editor<br>
>    This temporary script file is located here:<br>
>    /home/brain/.spyder2/.temp.py<br>
>    """<br>
</div>>      > >...<<br>
<div>>    /home/brain/ipython scripts/test.py in <module>()<br>
>         12 import mvpa2.suite as mvpa2<br>
>         13 import IPython<br>
>    ---> 14 IPython.embed()<br>
>         15 <br>
>         16 path = os.path.join('brain')<br>
<br>
</div>ho ho -- that might be the source of the problem (something spyder<br>
injects having assumptions on ipython's version)<br>
<div><br>
>      >    �what happens if you run it with pure python, not ipython, i.e.<br>
>      >      python test.py<br>
>      >      ?<br>
>      >    AttributeError: 'module' object has no attribute 'embed'<br>
<br>
>      so the same (thus not ipython-dependent), good<br>
<br>
</div>so I was wrong -- it is ipython dependent since script imports it ;)<br>
<div><br>
>      >      > � �2. output of�print mvpa2.wtf()<br>
>      >      that should be ran in (i)python interpreter (e.g. just start<br>
>      ipython,<br>
>      >      and<br>
>      >      then type<br>
>      >      mvpa2.wtf()<br>
>      >      )<br>
>      >      > � �bash: syntax error near unexpected token `('<br>
>      >    �NameError: name 'mvpa2' is not defined<br>
<br>
>      ;) ok -- first enter<br>
<br>
>      import mvpa2<br>
<br>
>    i entered  import mvpa2.suite as mvpa2<br>
>    shouldn't that be enough? :-) <br>
<br>
</div>should if import succeeds... now I see that we recommend this way in the<br>
FAQ but I guess we better advise not to import 'as mvpa2' but better as<br>
'as mv'.<br>
<br>
anyways -- if you imported it 'as mvpa2' and there were no errors you<br>
must be able to<br>
<br>
print mvpa2.wtf()<br>
<br>
if it doesn't work -- again -- copy/paste entire "protocol of struggle"<br>
not just the last error ;)  so just do<br>
<br>
in your shell start ipython:<br>
<br>
ipython<br>
<br>
in ipython shell do<br>
<br>
import mvpa2<br>
print mvpa2.wtf()<br>
<br>
it must work and it would provide us all information neeeded<br>
<div><div><br>
--<br>
Yaroslav O. Halchenko<br>
<a href="http://neuro.debian.net" target="_blank">http://neuro.debian.net</a> <a href="http://www.pymvpa.org" target="_blank">http://www.pymvpa.org</a> <a href="http://www.fail2ban.org" target="_blank">http://www.fail2ban.org</a><br>


Postdoctoral Fellow,   Department of Psychological and Brain Sciences<br>
Dartmouth College, 419 Moore Hall, Hinman Box 6207, Hanover, NH 03755<br>
Phone: <a href="tel:%2B1%20%28603%29%20646-9834" value="+16036469834" target="_blank">+1 (603) 646-9834</a>                       Fax: <a href="tel:%2B1%20%28603%29%20646-1419" value="+16036461419" target="_blank">+1 (603) 646-1419</a><br>

WWW:   <a href="http://www.linkedin.com/in/yarik" target="_blank">http://www.linkedin.com/in/yarik</a><br>
<br>
_______________________________________________<br>
Pkg-ExpPsy-PyMVPA mailing list<br>
<a href="mailto:Pkg-ExpPsy-PyMVPA@lists.alioth.debian.org" target="_blank">Pkg-ExpPsy-PyMVPA@lists.alioth.debian.org</a><br>
<a href="http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-exppsy-pymvpa" target="_blank">http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-exppsy-pymvpa</a></div></div></blockquote></div><br>