<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Dear Ryan,</p>
<p>Thanks for your reply. I am using FLASH4.6.2 and I believe this
is the latest version. I still need to replace <i>print msg</i>
to <i>print(msg)</i>, which is still in python2.7. Fixing the
symbol with "!=" then many more issues exist as you suggested.
Such as <br>
</p>
<p><font size="-2"> File
"/home/ong/.local/lib/python3.8/site-packages/flash/flmake/setup_globals.py",
line 204, in set<br>
if type(value) != types.StringType:<br>
AttributeError: module 'types' has no attribute 'StringType'</font></p>
<p>Then I try using python2.7. and return the following error</p>
<p><font size="-2">Writing
/home/ong/.local/lib/python2.7/site-packages/flash-0.1.egg-info<br>
Traceback (most recent call last):<br>
File "setup.py", line 207, in <module><br>
run_setup()<br>
File "setup.py", line 199, in run_setup<br>
make_bash_completion()<br>
File "setup.py", line 118, in make_bash_completion<br>
import flash.flmake.__init__<br>
ImportError: No module named flash.flmake.__init__</font></p>
<p>Is there any update from FLASH's python tools to python3? I am
using jupyter notebook which run on python3.8.8. Switching from
one version to another would be quite troublesome. <br>
</p>
<p>In addition, I am not clear what the following lines in the
user's guide do and how it relate to the simulation<br>
</p>
<pre style="overflow: auto hidden; padding: 5px; background-color: rgb(246, 252, 252); border-style: solid; border-color: rgb(128, 133, 138); border-image: initial; border-width: 1px 1px 1px 4px; color: rgb(0, 0, 0); line-height: 15.6px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">$ mkdir temp
$ cd temp
$ flmake setup -auto Sedov
$ flmake build -j 20
$ flmake run -n 20</pre>
<pre class="moz-signature" 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 class="moz-txt-link-abbreviated" href="http://www.eli-np.ro">www.eli-np.ro</a></pre>
<div class="moz-cite-prefix">On 28/05/2021 6:06 pm, Ryan Farber
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAF9W8=1YWefz6h1br79=njHTR51JQAJFikUqBMqSUc=Bdk=NSA@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<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"
moz-do-not-send="true">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" moz-do-not-send="true">www.eli-np.ro</a></pre>
</div>
</blockquote>
</div>
</blockquote>
</body>
</html>