|
[Sponsors] |
SU2 build from source on WSL (invalid syntax in mesonmain.py) |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
Join Date: Mar 2022
Posts: 2
Rep Power: 0 ![]() |
Hi,
I am new to SU2 and I am trying to install and build from the source code of SU2 on WSL Ubuntu 16.04. However, I kept getting errors in the meson build process on the website. It might be something stupid but I would appreciate it if anyone could help me with it. I firstly cloned the GitHub repo to the local directory by: git clone https://github.com/su2code/SU2.git then I run the meson file ./meson.py build The code seems to be running for a while, downloading something (I assume they are prerequisites) in subprojects/ folder. Then I got this error in the following: $ ./meson.py ./build ...... ...... Checking connectivity... done. Submodule path 'externals/mel': checked out '2484cd3258ef800a10e361016cb341834ee7930b' ninja executable not found. Building ... bootstrapping ninja... warning: A compatible version of re2c (>= 0.11.3) was not found; changes to src/*.in.cc will not affect your build. wrote build.ninja. bootstrap complete. rebuilding... [29/29] LINK ninja Traceback (most recent call last): File "./meson.py", line 83, in <module> from mesonbuild import mesonmain File "/mnt/c/Users/NAME/Work/Code/SU2/externals/meson/mesonbuild/mesonmain.py", line 191 mlog.error(f'Error in {script_name} helper script:') ^ SyntaxError: invalid syntax I am not sure what is happening here. Could anyone please help with me? Thank you very much. |
|
![]() |
![]() |
![]() |
![]() |
#2 |
New Member
Join Date: Mar 2022
Posts: 2
Rep Power: 0 ![]() |
Thanks guys I just figured it out. It is the python version's issue. I was using Python3.5 but meson requires at least Python 3.7. Apologies for the confusions.
|
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Other] Adding solvers from DensityBasedTurbo to foam-extend 3.0 | Seroga | OpenFOAM Community Contributions | 9 | June 12, 2015 18:18 |
SparceImage v1.7.x Issue on MAC OS X | rcarmi | OpenFOAM Installation | 4 | August 14, 2014 07:42 |
Problem compiling a custom Lagrangian library | brbbhatti | OpenFOAM Programming & Development | 2 | July 7, 2014 12:32 |
Trouble compiling utilities using source-built OpenFOAM | Artur | OpenFOAM Programming & Development | 14 | October 29, 2013 11:59 |
error while compiling the USER Sub routine | CFD user | CFX | 3 | November 25, 2002 16:16 |