|
[Sponsors] |
July 6, 2020, 17:28 |
Build SU2 v7.0.5 on Linux
|
#1 |
New Member
Join Date: May 2020
Posts: 7
Rep Power: 6 |
I am trying to build v7.0.5, after following the steps on the guide I received the following error:
Code:
$ ./meson.py build Traceback (most recent call last): File "./meson.py", line 85, in <module> sys.exit(mesonmain.main()) File "depot/data/SU2_v7/SU2_v7_source/externals/meson/mesonbuild/mesonmain.py", line 228, in main return run(sys.argv[1:], launcher) File "depot/data/SU2_v7/SU2_v7_source/externals/meson/mesonbuild/mesonmain.py", line 219, in run return CommandLineParser().run(args) File "depot/data/SU2_v7/SU2_v7_source/externals/meson/mesonbuild/mesonmain.py", line 44, in __init__ help_msg='Configure the project') File "depot/data/SU2_v7/SU2_v7_source/externals/meson/mesonbuild/mesonmain.py", line 82, in add_command p = self.subparsers.add_parser(name, help=help_msg, aliases=aliases, formatter_class=self.formatter) File "/apps/cent7/xalt/libexec/argparse.py", line 1085, in add_parser parser = self._parser_class(**kwargs) TypeError: __init__() got an unexpected keyword argument 'aliases' |
|
July 7, 2020, 06:58 |
|
#2 |
Senior Member
Pedro Gomes
Join Date: Dec 2017
Posts: 466
Rep Power: 14 |
What version of python do you have? I think you need 3.5 or later.
|
|
July 7, 2020, 10:10 |
|
#3 |
New Member
Join Date: May 2020
Posts: 7
Rep Power: 6 |
I'm using Python 3.6.8
|
|
July 7, 2020, 10:56 |
|
#4 |
Senior Member
Pedro Gomes
Join Date: Dec 2017
Posts: 466
Rep Power: 14 |
Hmm, googling this "got an unexpected keyword argument 'aliases'" points to python2 vs python3 problems, try running meson.py with python3 explicitly (python3 ./meson.py build) if that does not work maybe open an issue on SU2's github.
|
|
July 10, 2020, 04:34 |
|
#5 |
Member
Join Date: Mar 2017
Posts: 61
Rep Power: 9 |
In github says the safest version of python is >=3.7, you can get an error in ninja compilation in lower versions. Also, you don't forget to point correct version of python, you can write into your bash ie.
#python version default alias python='/usr/bin/python3.7' |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
SU2 V7.0.5 Hypersonic | GAB_STO | SU2 | 16 | March 16, 2021 06:15 |
SU2 paralllel Build from source ninja failed on ubuntu 18.04 | steadyman | SU2 Installation | 4 | July 4, 2020 19:21 |
The best Linux distro for SU2 | n.d.ageev@gmail.com | SU2 Installation | 0 | February 7, 2019 06:59 |
New SU2 Forum Opened at CFD Online | pete | Site News & Announcements | 0 | January 5, 2013 18:59 |
Cross-compiling OpenFOAM 1.7.0 on Linux for Windows 32 and 64bits with Mingw-w64 | wyldckat | OpenFOAM Announcements from Other Sources | 3 | September 8, 2010 07:25 |