[FLASH-USERS] Setup error when requiring nuclear reaction network
Klaus Weide
klaus at flash.uchicago.edu
Fri Apr 24 15:46:35 EDT 2020
On Fri, 24 Apr 2020, Mathieu Renzo wrote:
> A setup internal error has occured, if possible please email the following
> debugging info toflash-bugs at flash.uchicago.edu
> Arguments: ['/mnt/home/mrenzo/codes/FLASH/FLASH4.6.2/bin/setup.py',
> 'PPISN_mathieu', '-auto', '-objdir', 'PPISN']
> Python Version: 3.7.4
...
> in getLibFlags
> libFlags = __import__("libinfo").libinfo(absLibDir=libDir,
> File "/mnt/home/mrenzo/codes/FLASH/FLASH4.6.2/lib/ma28/libinfo.py", line 20
> os.chmod(buildScript, 0744)
> ^
> SyntaxError: invalid token
This looks like an error caused by your Python version, in connection with
some code in lib/ma28/libinfo.py that works properly only with Python2.
The simplest workaround would be to ensure that the ./setup command uses
python2, if that is available on the system. Fixing the syntax in
libinfo.py so that it works with Python 2 and 3 also should not be hard.
Klaus
More information about the flash-users
mailing list