|
[Sponsors] |
September 4, 2014, 07:52 |
No Module Named SU2
|
#1 |
New Member
Join Date: Sep 2014
Posts: 8
Rep Power: 12 |
Hi everyone,
I have a problem about shape optimization. I use Windows 7 and I installed NumPY SciPy and Python 2.7. When I want to use any Python file in cmd I get a error like Traceback( most recent call last): File "C:\SU2\shape_optimization.py", line 26, in <module> import SU2 ImportError: No module named SU2 How can I solve this problem? Kind Regards |
|
October 13, 2014, 14:32 |
|
#2 |
Member
Join Date: May 2013
Posts: 61
Rep Power: 13 |
I seem to be getting the same exact error. I have SU2_RUN set to the path, I ran the case successfully just using SU2_CFD. I'm not 100% sure numpy and sipy are installed, however this seems to be a problem with SU2. Any ideas?
|
|
October 14, 2014, 19:44 |
|
#3 |
Member
Join Date: May 2013
Posts: 61
Rep Power: 13 |
Ok, I've gotten further along. Posting solution for those to come.
The primary problem was that the SU2 python folder was missing with the __init__.py and such from the windows pre built version. To solve download the source code and copy the ..\SU2\SU2_PY\SU2 folder to the fully installed location. My next step was to install numpy and scipy. |
|
October 23, 2014, 11:13 |
|
#4 |
Member
|
Did you use Python 2.x or Python 3.x for these action.
After aplying it I get No module named 'interface' error. |
|
October 23, 2014, 13:51 |
|
#5 |
Member
Join Date: May 2013
Posts: 61
Rep Power: 13 |
Python 2.x
|
|
October 24, 2014, 02:16 |
|
#6 |
Member
|
You are right. I reinstalled python to 2.7.x and it worked.
Now I am getting the following error: PS C:\cygwin64\home\lmir\su2\optimization_euler\ rotating_naca0012> python.exe c:\SU2\shape_optimization.py -f .\rot ating_NACA0012.cfg found: mesh_NACA0012_rot.su2 New Project: ./ Warning, removing old designs... now New Design: DESIGNS/DSN_001 ./DESIGNS/DSN_001 ./DESIGNS/DSN_001 Evaluate Inequality Constraints Max_Thickness... SU2 process was terminated by signal '125' -------------------------------------------------------------------------- Sorry! You were supposed to get help about: orterun:exe-not-accessible But I couldn't open the help file: C:\DBD\pvs-x64\install\share\openmpi\help-orterun.txt: No such file or directory. Sorry! ------ Any hint how to tackle this? |
|
November 6, 2014, 18:03 |
|
#7 |
New Member
Dimitar Baldzhiev
Join Date: Nov 2014
Posts: 4
Rep Power: 12 |
I'm sorry did you find solution to the last error. I have the same thing.
Code:
PS C:\SU2> python parallel_computation.py -f test/inv_NACA0012.cfg 2 total processes failed to start SU2 process was terminated by signal '125' -------------------------------------------------------------------------- Sorry! You were supposed to get help about: orterun:exe-not-accessible But I couldn't open the help file: C:\DBD\pvs-x64\install\share\openmpi\help-orterun.txt: No such file or directory. Sorry! -------------------------------------------------------------------------- windows7,Python 2.7 |
|
November 7, 2014, 02:02 |
|
#8 |
Member
|
Yes. The problem is with OpenMPI you don't have. Try to execute with mpiexec, instead of with mpirun. Before doing that check that your MS MPI is installed.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
y+ and u+ values with low-Re RANS turbulence models: utility + testcase | florian_krause | OpenFOAM | 114 | August 23, 2023 06:37 |
[OpenFOAM] Native ParaView Reader Bugs | tj22 | ParaView | 270 | January 4, 2016 12:39 |
[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 | keepfit | ParaView | 60 | September 18, 2013 04:23 |
Can someone PLEASE document the development version installation | bernd | OpenFOAM Installation | 76 | November 14, 2008 22:51 |
Problem with compile the setParabolicInlet | ivanyao | OpenFOAM Running, Solving & CFD | 6 | September 5, 2008 21:50 |