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

./meson.py problem in installation

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 12, 2024, 17:06
Default ./meson.py problem in installation
  #1
Member
 
Ercan Umut
Join Date: Aug 2022
Posts: 43
Rep Power: 3
CleverBoy is on a distinguished road
Hello everybody,

I am trying to install SU2 to a computer via ssh connection which runs on CentOS. I am not an administrator so I am not able to use sudo command. Python version is 3.6.6.

When I try to configure I end up getting following error:

Code:
  File "./meson.py", line 39, in <module>
    preconfigure.run(own_meson=True)
  File "/t/home/s/programs/SU2/preconfigure.py", line 97, in run
    own_mlpcpp=own_mlpcpp,
  File "/t/home/s/programs/SU2/meson_scripts/init.py", line 112, in init_submodules
    submodule_status(alt_name_codi, sha_version_codi)
  File "/t/home/s/programs/SU2/meson_scripts/init.py", line 189, in submodule_status
    status = subprocess.run(
AttributeError: 'module' object has no attribute 'run'
What could be the reason for this and how can I solve it?
CleverBoy is offline   Reply With Quote

Old   May 16, 2024, 17:23
Default
  #2
Senior Member
 
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 545
Rep Power: 17
bigfootedrockmidget is on a distinguished road
Are you sure about the python version? Run() was introduced in Python 3.5, so this message usually means you are using an older version, probably python2. Probably the command "python" is coupled to python2, and you should use "python3", which links to python-3.6.6
bigfootedrockmidget is offline   Reply With Quote

Old   May 18, 2024, 14:05
Default
  #3
Member
 
Ercan Umut
Join Date: Aug 2022
Posts: 43
Rep Power: 3
CleverBoy is on a distinguished road
Quote:
Originally Posted by bigfootedrockmidget View Post
Are you sure about the python version? Run() was introduced in Python 3.5, so this message usually means you are using an older version, probably python2. Probably the command "python" is coupled to python2, and you should use "python3", which links to python-3.6.6

It was like you said at first but I changed the python version in .bashrc file using ALIAS command and when I type python in terminal it starts with python 3.6.6.
CleverBoy 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
[swak4Foam] [OpenFOAM plus] [v1612+] swak4Foam installation problem in Windows (Allwmake) LThomes OpenFOAM Community Contributions 7 October 6, 2020 13:36
[OpenFOAM.org] Installation problem for paraView 4.1 to go with OpenFOAM-2.4.0-MNF deepbandivadekar OpenFOAM Installation 2 October 25, 2017 08:45
[foam-extend.org] foam-extend-4.0 openSUSE Leap 42.1 Installation Problem icab OpenFOAM Installation 5 April 8, 2017 07:09
Installation problem - calling blockMesh - libblockMesh.so aylalisa OpenFOAM Installation 5 November 28, 2012 09:55
ParaView installation problem on Suse 11.4 victorz OpenFOAM Installation 4 February 6, 2012 17:26


All times are GMT -4. The time now is 15:55.