[FLASH-USERS] Setup error
Matthew Trantham
mtrantha at umich.edu
Mon Jan 16 11:41:31 EST 2023
Python 3.9 and 3.10, are not compatible with FLASHX.X.X/bin/setup.py
You could use an older version of Python or replace the offending functions
as I did below:
The sys.getcheckinterval() and sys.setcheckinterval() 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 sys.getswitchinterval()
<https://docs.python.org/3/library/sys.html#sys.getswitchinterval> and sys.
setswitchinterval()
<https://docs.python.org/3/library/sys.html#sys.setswitchinterval> instead.
If you run into problems with the setup command in FLASH find and
replace sys.setcheckinterval(10000)
with sys.setswitchinterval(
<https://docs.python.org/3/library/sys.html#sys.setswitchinterval>10000)
On Mon, Jan 16, 2023 at 11:26 AM kiyarash Taghiniyarami <
kiyarash.niyarami at gmail.com> wrote:
> Dear all FLASH users,
>
> I tried to setup simple sedov problem with the command of
> ./setup Sedov -auto
> but I got the following error:
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *A setup internal error has occured, if possible please email the
> followingdebugging info to flash-bugs at flash.uchicago.edu
> <flash-bugs at flash.uchicago.edu>Arguments:
> ['/home/ubuntu/FLASH/FLASH4.6.2/bin/setup.py', 'Sedov', '-auto']Python
> Version: 3.10.6Platform Details: linuxTraceback (most recent call last):
> File "/home/ubuntu/FLASH/FLASH4.6.2/bin/setup.py", line 315, in <module>
> raise e File "/home/ubuntu/FLASH/FLASH4.6.2/bin/setup.py", line 300, in
> <module> main() File "/home/ubuntu/FLASH/FLASH4.6.2/bin/setup.py", line
> 16, in main sys.setcheckinterval(10000) # this is not threaded
> applicationAttributeError: module 'sys' has no attribute
> 'setcheckinterval'. Did you mean: 'setswitchinterval'?*
> could anyone help what causes the error?
>
> best,
> Kiya
> _______________________________________________
> flash-users mailing list
> flash-users at flash.rochester.edu
>
> For list info, including unsubscribe:
> https://flash.rochester.edu/mailman/listinfo/flash-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20230116/3f56a978/attachment-0001.htm>
More information about the flash-users
mailing list