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:
$ parallel_computation.py -f inv_ONERAM6.cfg -p 4 Traceback ... File "usr/local/bin/parallel_computation.py" line27 Import SU2 File "usr/local/bin/SU2/___init___.py" 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. |
I install the V3.2 in win7,but when paralleling,facing an similar error:
D:\>cd naca0012 D:\naca0012>parallel_computation.py -f inv_NACA0012.cfg -p 2 Traceback (most recent call last): File "C:\SU2\parallel_computation.py", line 26, in <module> import SU2 ImportError: No module named SU2 D:\naca0012> I am looking forward to your rely |
Simply copy the folder "SU2" from the folder "SU2_PY/" from the source files to the folder where the parallel_computation.py is located.
|
Quote:
....... import os, sys, shutil, copy from optparse import OptionParser sys.path.append(os.environ['SU2_RUN']) 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. |
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: https://github.com/su2code/SU2/archive/v3.2.0.zip Copy the folder /SU2_PY/SU2 to C:\SU2 The folder C:\SU2 looks like: Code:
2DChannel.py |
All times are GMT -4. The time now is 02:40. |