<div dir="ltr"><div><span style="font-family:"Lucida Grande",Arial,sans-serif;font-size:16px">Python 3.9 and 3.10, are not compatible with FLASHX.X.X/bin/setup.py</span><span style="font-family:"Lucida Grande",Arial,sans-serif;font-size:16px"><br></span></div><div><span style="font-family:"Lucida Grande",Arial,sans-serif;font-size:16px"><br></span></div><div><span style="font-family:"Lucida Grande",Arial,sans-serif;font-size:16px">You could use an older version of Python or replace the offending functions as I did below:</span></div><div><span style="font-family:"Lucida Grande",Arial,sans-serif;font-size:16px"><br></span></div><div><div><span style="font-family:"Lucida Grande",Arial,sans-serif;font-size:16px">The </span><code style="background-color:rgb(236,240,243);padding:0px 1px;font-size:15.44px;font-family:"monospace",monospace;border-radius:3px">sys.getcheckinterval()</code><span style="font-family:"Lucida Grande",Arial,sans-serif;font-size:16px"> and </span><code style="background-color:rgb(236,240,243);padding:0px 1px;font-size:15.44px;font-family:"monospace",monospace;border-radius:3px">sys.setcheckinterval()</code><span style="font-family:"Lucida Grande",Arial,sans-serif;font-size:16px"> functions have been removed from Python. They were deprecated since Python 3.2 (and don't work after 3.7 or 3.8 at all). Use </span><a href="https://docs.python.org/3/library/sys.html#sys.getswitchinterval" title="sys.getswitchinterval" style="color:rgb(0,114,170);text-decoration-line:none;font-family:"Lucida Grande",Arial,sans-serif;font-size:16px" target="_blank"><code style="background-color:transparent;padding:0px 1px;font-size:15.44px;font-family:"monospace",monospace;border-radius:3px">sys.getswitchinterval()</code></a><span style="font-family:"Lucida Grande",Arial,sans-serif;font-size:16px"> and </span><a href="https://docs.python.org/3/library/sys.html#sys.setswitchinterval" title="sys.setswitchinterval" style="color:rgb(0,114,170);text-decoration-line:none;font-family:"Lucida Grande",Arial,sans-serif;font-size:16px" target="_blank"><code style="background-color:transparent;padding:0px 1px;font-size:15.44px;font-family:"monospace",monospace;border-radius:3px">sys.<span>setswitchinterval</span>()</code></a><span style="font-family:"Lucida Grande",Arial,sans-serif;font-size:16px"> instead. </span></div></div><div><br></div><div><span style="font-family:"Lucida Grande",Arial,sans-serif;font-size:16px">If you run into problems with the setup command in FLASH find and replace </span><span style="background-color:rgb(236,240,243);font-family:"monospace",monospace;font-size:15.44px">sys.setcheckinterval(10000) with </span><a href="https://docs.python.org/3/library/sys.html#sys.setswitchinterval" title="sys.setswitchinterval" style="color:rgb(0,114,170);text-decoration-line:none;font-family:"Lucida Grande",Arial,sans-serif;font-size:16px" target="_blank"><code style="background-color:transparent;padding:0px 1px;font-size:15.44px;font-family:"monospace",monospace;border-radius:3px">sys.<span>setswitchinterval</span>(</code></a>10000)</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jan 16, 2023 at 11:26 AM kiyarash Taghiniyarami <<a href="mailto:kiyarash.niyarami@gmail.com" target="_blank">kiyarash.niyarami@gmail.com</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 dir="ltr">Dear all FLASH users,<br><br>I tried to setup simple sedov problem with the command of<br>./setup Sedov -auto<br>but I got the following error:<br><br><b>A setup internal error has occured, if possible please email the following<br>debugging info to <a href="mailto:flash-bugs@flash.uchicago.edu" target="_blank">flash-bugs@flash.uchicago.edu</a><br>Arguments: ['/home/ubuntu/FLASH/FLASH4.6.2/bin/setup.py', 'Sedov', '-auto']<br>Python Version: 3.10.6<br>Platform Details: linux<br>Traceback (most recent call last):<br> File "/home/ubuntu/FLASH/FLASH4.6.2/bin/setup.py", line 315, in <module><br> raise e<br> File "/home/ubuntu/FLASH/FLASH4.6.2/bin/setup.py", line 300, in <module><br> main()<br> File "/home/ubuntu/FLASH/FLASH4.6.2/bin/setup.py", line 16, in main<br> sys.setcheckinterval(10000) # this is not threaded application<br>AttributeError: module 'sys' has no attribute 'setcheckinterval'. Did you mean: 'setswitchinterval'?<br></b><br>could anyone help what causes the error?<br><br>best,<br>Kiya</div>
_______________________________________________<br>
flash-users mailing list<br>
<a href="mailto:flash-users@flash.rochester.edu" target="_blank">flash-users@flash.rochester.edu</a><br>
<br>
For list info, including unsubscribe:<br>
<a href="https://flash.rochester.edu/mailman/listinfo/flash-users" rel="noreferrer" target="_blank">https://flash.rochester.edu/mailman/listinfo/flash-users</a><br>
</blockquote></div>