CFD Online Discussion Forums

CFD Online Discussion Forums (
-   SU2 (
-   -   Error when parallel (

zkdkeen June 17, 2014 04:44

Error when parallel
Hello everyone, I am a new SU2 user. After finishing parallel installation on a cluster, I run the m6 example which yields the following error:
$ -f inv_ONERAM6.cfg -p 4
Traceback ...
File "usr/local/bin/" line27
Import SU2
File "usr/local/bin/SU2/" line 3
from . Import run
SyntaxError : invalid syntax

And I am sure that I have done the parallel config right. So, is there any other possible reason for this?

Any suggestion will be appreciated. June 17, 2014 22:30

I install the V3.2 in win7,but when paralleling,facing an similar error:
D:\>cd naca0012

D:\naca0012> -f inv_NACA0012.cfg -p 2
Traceback (most recent call last):
File "C:\SU2\", line 26, in <module>
import SU2
ImportError: No module named SU2


I am looking forward to your rely

Doriris June 18, 2014 05:33

Simply copy the folder "SU2" from the folder "SU2_PY/" from the source files to the folder where the is located. June 18, 2014 06:12


Originally Posted by Doriris (Post 497535)
Simply copy the folder "SU2" from the folder "SU2_PY/" from the source files to the folder where the is located.

it is thesame as the before,I look the code,in the""file:

import os, sys, shutil, copy
from optparse import OptionParser
import SU2

# -------------------------------------------------------------------
# Main
# -------------------------------------------------------------------

The error is coming the "import SU2",I want to know why the "import SU2" is here and why the error is ImportError: No module named SU2
After I install the SU2 V3.2,I set the "SU2_CFD" and "SU2_RUN" as the "path" in environment variable like V3.1,Do I need do something else?
Look forward to your reply.

Doriris June 18, 2014 07:49

When I installed the 3.2 version, I went to C:\SU2 and it did not have any folders. The python script tries to import a folder called SU2, but it does not exist, nor are the require files present. What I did, was simply download the source code, and within that source code there is a folder called "SU2_PY". In that folder, there is a folder called "SU2", which is the folder that is missing in the windows installer. Copy that folder into your C:\SU2, such that there is a folder called SU2, including the file contents in folder C:\SU2.

To summarize:

Download the source code here:

Copy the folder /SU2_PY/SU2 to C:\SU2

The folder C:\SU2 looks like:


Good luck!

All times are GMT -4. The time now is 10:51.