<div dir="ltr"><font size="2">Dear Patrick,</font><div><font size="2"><br></font></div><div><font size="2">Thanks for your reply.<br></font><div><font size="2"><br></font></div><div><font size="2">It returns:<br></font><div><font size="2"><br></font></div><div>




<style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 16.0px Menlo}
span.s1 {font-variant-ligatures: no-common-ligatures}
</style>


<p class="p1"><span class="s1"><font size="2">Discovering programs ...</font></span></p>
<p class="p1"><span class="s1"><font size="2">/home/xuzp/bin/packages/cp2k_ForZK/cp2k-5.1/makefiles/Makefile:42: /home/xuzp/bin/packages/cp2k_ForZK/cp2k-5.1/arch/local.sopt: No such file or directory</font></span></p>
<p class="p1"><span class="s1"><font size="2">make[2]: *** No rule to make target `/home/xuzp/bin/packages/cp2k_ForZK/cp2k-5.1/arch/local.sopt'.<span class="Apple-converted-space">  </span>Stop.</font></span></p>
<p class="p1"><span class="s1"><font size="2">make[1]: *** [sopt] Error 2</font></span></p>
<p class="p1"><span class="s1"><font size="2">make: *** [toolversions] Error 2</font></span></p><p class="p1"><span class="s1"><font size="2"><br></font></span></p><p class="p1"><font size="2"><span class="s1">I type: </span><span style="font-variant-ligatures: no-common-ligatures;">/usr/bin/env python -V </span></font></p><p class="p1"><span style="font-variant-ligatures: no-common-ligatures;"><font size="2">It returns: </font></span></p><p class="p1">




<style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 16.0px Menlo}
span.s1 {font-variant-ligatures: no-common-ligatures}
</style>


</p><p class="p1"><span class="s1"><font size="2">Python 2.4.3</font></span></p><p class="p1"><span class="s1"><font size="2"><br></font></span></p><p class="p1"><span class="s1"><font size="2">I type: python -V </font></span></p>




<style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 16.0px Menlo}
span.s1 {font-variant-ligatures: no-common-ligatures}
</style>


<p class="p1"><span style="font-variant-ligatures: no-common-ligatures;"><font size="2">It returns: </font></span></p><p class="p1"></p><p class="p1"><font size="2"><span class="s1"></span></font></p><p class="p1"><font size="2"><span class="s1">Python </span><span style="font-variant-ligatures: no-common-ligatures;">2.7.14</span></font></p><p class="p1"><span style="font-variant-ligatures: no-common-ligatures;"><font size="2"><br></font></span></p><p class="p1"><font size="2">Because I have no permission to change the python on the root. So I use <span style="font-variant-ligatures: no-common-ligatures;"><i>alias</i> to link python to the new one on my users files. </span></font></p><p class="p1"><font size="2"> </font></p>




<style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 16.0px Menlo}
span.s1 {font-variant-ligatures: no-common-ligatures}
</style>


<p class="p1"><font size="2"><span style="font-variant-ligatures: no-common-ligatures;">alias python='/home/xuzp/bin/packages/python/Python-2.7.14/python'</span><br></font></p><p class="p1"><span style="font-variant-ligatures: no-common-ligatures;"><font size="2"><br></font></span></p><p class="p1"><font size="2">I gauss that the python running when making is old version not the new one. </font></p><p class="p1"><font size="2">So I thinks If I specify the path for python, it may solve the problem. But I don't how to do it.</font></p><p class="p1"><font size="2"><br></font></p><p class="p1"><font size="2">Best, </font></p><p class="p1"><font size="2">Ke  </font></p><p class="p1"><span style="font-variant-ligatures: no-common-ligatures;"><br></span></p>在 2018年2月23日星期五 UTC+8下午10:19:15,Patrick Seewald写道:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir="ltr">It is rather strange that you get this syntax error from python since fypp should support python 2.7.14. If you type <i>make toolversions</i> on the cluster (in the same directory as CP2K makefile), what is the output for Python?<div><div><br></div><div>Patrick<div><br>Am Freitag, 23. Februar 2018 13:37:37 UTC+1 schrieb Ke Zhou:<blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><font size="2">Dear all, </font><div><font size="2"><br></font></div><div><font size="2">Now I am compiling the CP2K 2.5.1 on cluster. When I making, it returns:</font></div><div><font size="2"><br></font></div><div><font size="2"><br></font></div><div>







<p><span><font size="2">Discovering programs ...</font></span></p>
<p><span><font size="2">Removing stale archives for popt ...<span> </span></font></span></p>
<p><span><font size="2">Resolving dependencies for popt ...<span> </span></font></span></p>
<p><span style="font-size:small">...</span><br></p><p><span style="font-size:small">...  /cp2k-5.1/tools/build_utils/<wbr>fypp -n  ... /cp2k-5.1/src/dbcsr/mm/dbcsr_<wbr>mm_types.F dbcsr_mm_types.F90</span><br></p></div><div>







<p><span><font size="2">...  /cp2k-5.1/tools/build_utils/<wbr>fypp", line 705</font></span></p>
<p><span><font size="2"><span>    </span>except Exception as exc:</font></span></p>
<p><span><font size="2"><span>                      </span>^</font></span></p>
<p><span><font size="2">SyntaxError: invalid syntax</font></span></p><p><span><font size="2">make[3]: *** [kinds.o] Error 1</font></span></p><p><span><font size="2">








</font></span></p><p><span><font size="2">make[3]: *** Waiting for unfinished jobs....</font></span></p><p><span><font size="2"><br></font></span></p><p><span><font size="2">I thinks it's the problem from python.</font></span></p><p><span><font size="2"><br></font></span></p><p><span><font size="2">The version of python is:</font></span></p><p><span><font size="2"><br></font></span></p><p><font size="2"><span> </span><span>python -V</span></font></p>








<p><span><font size="2"> Python 2.7.14</font></span></p><p><span><font size="2"><br></font></span></p><p><span><font size="2">Here are my questions:</font></span></p><p><span><font size="2">1. Can I </font></span><font size="2"><span>directly specify the path of python on makefile?</span></font></p><p><font size="2"><span>2. Can I give up the build of tools?</span></font></p><p><font size="2"><span><br></span></font></p><p><font size="2"><span>Can you help me?</span></font></p><p><font size="2"><span><br></span></font></p><p><font size="2"><span>Justin </span></font></p><p><span><br></span></p><p><span><br></span></p><p><span><br></span></p><p><span><br></span></p></div></div></blockquote></div></div></div></div></blockquote></div></div></div></div>