<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>


<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style><font class="Apple-style-span" face="Tahoma" size="4"><span class="Apple-style-span" style="font-size: 10pt;">

Dear Yaroslav,</span></font><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div style="font-family: Tahoma; font-size: 10pt; ">I am really sorry to bother you with all these stupid questions - although I am getting to know much better the Python and PyMVPA, I still have some problems.&nbsp;</div><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div style="font-family: Tahoma; font-size: 10pt; ">Especially, I was wondering how people usually run the python script (.py file) in Debian. (By the way, I am using pymvpa on a NeuroDebian virtual machine and some problems occurred in Windows system now disappeared). I searched on the internet, and found someone recommended the following way:</div><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div style="font-family: Tahoma; font-size: 10pt; ">type space dot space in the terminal and then drag and drop the py file from a graphical window to the terminal.</div><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div style="font-family: Tahoma; font-size: 10pt; ">It worked quite well at the beginning. I tried the projections.py and smellit.py and I got the figures and no errors. But somehow, later when I tried this way again, it gives me the following error:</div><div style="font-family: Tahoma; font-size: 10pt; ">=================</div><div style="font-family: Tahoma; font-size: 10pt; "><div><div>&gt;&gt;&gt; &nbsp;. '/home/brain/Desktop/Host/MLiang/MRSpec/MVPA/TastePyMVPA/examples/smellit.py'&nbsp;</div><div>&nbsp;&nbsp;File "&lt;stdin&gt;", line 1</div><div>&nbsp;&nbsp; &nbsp;. '/home/brain/Desktop/Host/MLiang/MRSpec/MVPA/TastePyMVPA/examples/smellit.py'&nbsp;</div><div>&nbsp;&nbsp; &nbsp;^</div><div>IndentationError: unexpected indent</div></div></div><div style="font-family: Tahoma; font-size: 10pt; ">=================</div><div><font class="Apple-style-span" face="Tahoma" size="4"><span class="Apple-style-span" style="font-size: 10pt;">I don't know what I changed which caused this error, but I didn't really change anything in the py file. I can still run the same py file without problem by double&nbsp;</span></font><font class="Apple-style-span" face="Tahoma" size="3"><span class="Apple-style-span" style="font-size: 13px;">clicking the py file and choose 'Run in Terminal' or 'Run'. It only happens when I run it by 'drag and drop'. Any clue how this happens?</span></font></div><div><font class="Apple-style-span" face="Tahoma" size="4"><span class="Apple-style-span" style="font-size: 10pt;"><br></span></font></div><div><font class="Apple-style-span" face="Tahoma" size="3"><span class="Apple-style-span" style="font-size: 13px;"></span></font><font class="Apple-style-span" face="Tahoma" size="4"><span class="Apple-style-span" style="font-size: 10pt;">The second problem is about the example start-easy.py script. When I ran this script, whatever option I chose (</span></font><span class="Apple-style-span" style="font-size: 13px; font-family: Tahoma; ">'Run in Terminal' or 'Run'</span><span class="Apple-style-span" style="font-size: 13px; font-family: Tahoma; ">), it gave me nothing - it looks like the program was run but no output was given (or maybe the new pop-up terminal window immediately closed after the program was run so that I couldn't see any output even if there was any?). But if I type the commands one by one into the terminal, everything is fine and after the 'print' command, the output message appeared in the terminal. How to solve this problem?</span></div><div><span class="Apple-style-span" style="font-size: 13px; font-family: Tahoma; "><br></span></div><div><span class="Apple-style-span" style="font-size: 13px; font-family: Tahoma; ">The third problem is about saving a py file. It should be a basic linux question but I couldn't find a proper answer on the internet. I created a new file named "test.py" and double clicked it. gedit automatically lauched and opened the empty file. I wrote some python commands in the file and click 'save'. But I got an error "Could not save the file...". What did I do wrong?</span></div><div><span class="Apple-style-span" style="font-size: 13px; font-family: Tahoma; "><br></span></div><div><font class="Apple-style-span" face="Tahoma" size="3"><span class="Apple-style-span" style="font-size: 13px;">Sorry for all these (probably very&nbsp;naive) questions and thanks very much for your time!</span></font></div><div><span class="Apple-style-span" style="font-size: 13px; font-family: Tahoma; "><br></span></div><div><span class="Apple-style-span" style="font-size: 13px; font-family: Tahoma; ">Meng</span></div>                                               </body>
</html>