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

No Module Named SU2

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 4, 2014, 06:52
Default No Module Named SU2
  #1
New Member
 
Join Date: Sep 2014
Posts: 8
Rep Power: 11
slashss4 is on a distinguished road
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
slashss4 is offline   Reply With Quote

Old   October 13, 2014, 13:32
Default
  #2
Member
 
Join Date: May 2013
Posts: 61
Rep Power: 12
novedevon is on a distinguished road
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?
novedevon is offline   Reply With Quote

Old   October 14, 2014, 18:44
Default
  #3
Member
 
Join Date: May 2013
Posts: 61
Rep Power: 12
novedevon is on a distinguished road
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.
novedevon is offline   Reply With Quote

Old   October 23, 2014, 10:13
Default
  #4
Member
 
Lukasz Miroslaw
Join Date: Dec 2009
Location: Poland
Posts: 66
Rep Power: 16
Lukasz is on a distinguished road
Send a message via Skype™ to Lukasz
Did you use Python 2.x or Python 3.x for these action.

After aplying it I get
No module named 'interface'
error.
Lukasz is offline   Reply With Quote

Old   October 23, 2014, 12:51
Default
  #5
Member
 
Join Date: May 2013
Posts: 61
Rep Power: 12
novedevon is on a distinguished road
Python 2.x
novedevon is offline   Reply With Quote

Old   October 24, 2014, 01:16
Default
  #6
Member
 
Lukasz Miroslaw
Join Date: Dec 2009
Location: Poland
Posts: 66
Rep Power: 16
Lukasz is on a distinguished road
Send a message via Skype™ to Lukasz
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?
Lukasz is offline   Reply With Quote

Old   November 6, 2014, 17:03
Default
  #7
New Member
 
Dimitar Baldzhiev
Join Date: Nov 2014
Posts: 4
Rep Power: 11
dbaldzhiev is on a distinguished road
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!
--------------------------------------------------------------------------
I assume it is a problem with openmpi?

windows7,Python 2.7
dbaldzhiev is offline   Reply With Quote

Old   November 7, 2014, 01:02
Default
  #8
Member
 
Lukasz Miroslaw
Join Date: Dec 2009
Location: Poland
Posts: 66
Rep Power: 16
Lukasz is on a distinguished road
Send a message via Skype™ to Lukasz
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.
Lukasz 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
y+ and u+ values with low-Re RANS turbulence models: utility + testcase florian_krause OpenFOAM 114 August 23, 2023 05:37
[OpenFOAM] Native ParaView Reader Bugs tj22 ParaView 270 January 4, 2016 11:39
[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 keepfit ParaView 60 September 18, 2013 03:23
Can someone PLEASE document the development version installation bernd OpenFOAM Installation 76 November 14, 2008 21:51
Problem with compile the setParabolicInlet ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 20:50


All times are GMT -4. The time now is 11:04.