<div dir="ltr">Hi Ong,<div><br></div><div>I remember being mystified the first time I encountered that archaic "diamond operator."</div><div><br></div><div>The easiest solutions are:</div><div>1. Use the latest FLASH, where they updated the python code to be compatible with python3</div><div>2. Use python2 if you need to use an old version of FLASH (like me :))</div><div><br></div><div>Or, you can replace "<>" with "!=", although there will be many more issues you'll subsequently need to convert.</div><div><br></div><div>Best,<br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr">--------<div>Ryan</div></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, May 28, 2021 at 8:33 AM Ong Jian Fuh <<a href="mailto:jianfuh.ong@eli-np.ro">jianfuh.ong@eli-np.ro</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<p>Dear all,</p>
<p>Good afternoon. I am trying to install the FLASH python tools for
the plotting. <br>
</p>
<p>Doing <i>python setup.py install --user <br>
</i></p>
<p>return<i> <br>
</i></p>
<blockquote>
<p><i>running install</i><i><br>
</i><i>running build</i><i><br>
</i><i>running build_py</i><i><br>
</i><i>copying python/metadata.json -> build/lib/flash</i><i><br>
</i><i>running build_scripts</i><i><br>
</i><i>running install_lib</i><i><br>
</i><i>copying build/lib/flash/metadata.json ->
/home/ong/.local/lib/python3.8/site-packages/flash</i><i><br>
</i><i>byte-compiling
/home/ong/.local/lib/python3.8/site-packages/flash/flmake/utils.py
to utils.cpython-38.pyc</i><i><br>
</i><i> File
"/home/ong/.local/lib/python3.8/site-packages/flash/flmake/utils.py",
line 423</i><i><br>
</i><i> if len(parts) <> 2:</i><i><br>
</i><i> ^</i><i><br>
</i><i>SyntaxError: invalid syntax</i></p>
</blockquote>
<p>I am using python3.8. What can I do to fix this or use it with
new python? Thanks. <i><br>
</i></p>
<pre cols="72">--
Regards,
Dr. Ong Jian Fuh
Extreme Light Infrastructure - Nuclear Physics
"Horia Hulubei" National Institute for Physics and Nuclear Engineering
30 Reactorului Street, 077125 Magurele (Ilfov), Romania
<a href="http://www.eli-np.ro" target="_blank">www.eli-np.ro</a></pre>
</div>
</blockquote></div>