CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > SU2

Build SU2 v7.0.5 on Linux

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 6, 2020, 17:28
Default Build SU2 v7.0.5 on Linux
  #1
New Member
 
Join Date: May 2020
Posts: 7
Rep Power: 6
BrianB is on a distinguished road
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'
BrianB is offline   Reply With Quote

Old   July 7, 2020, 06:58
Default
  #2
pcg
Senior Member
 
Pedro Gomes
Join Date: Dec 2017
Posts: 466
Rep Power: 14
pcg is on a distinguished road
What version of python do you have? I think you need 3.5 or later.
pcg is offline   Reply With Quote

Old   July 7, 2020, 10:10
Default
  #3
New Member
 
Join Date: May 2020
Posts: 7
Rep Power: 6
BrianB is on a distinguished road
I'm using Python 3.6.8
BrianB is offline   Reply With Quote

Old   July 7, 2020, 10:56
Default
  #4
pcg
Senior Member
 
Pedro Gomes
Join Date: Dec 2017
Posts: 466
Rep Power: 14
pcg is on a distinguished road
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.
pcg is offline   Reply With Quote

Old   July 10, 2020, 04:34
Default
  #5
Member
 
atelcikti1's Avatar
 
Join Date: Mar 2017
Posts: 61
Rep Power: 9
atelcikti1 is on a distinguished road
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'
atelcikti1 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 12:41.