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

"No module named libSU2" in py script

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 6, 2013, 20:25
Default "No module named libSU2" in py script
  #1
Senior Member
 
Cean
Join Date: Feb 2010
Posts: 128
Rep Power: 7
shirazbj is on a distinguished road
Hi,

After install Python2.6.6, NumPy and SciPy on Win7@32, I am trying the new Tutorial 13.

When I run the command: "mesh_adaptation.py -f adapt_NACA0012.cfg", I got an error saying in mesh_adaptation.py

line 24 : import ..., libSU2, libSU2_run,...

ImportError: No module named libSU2_run.

can't find libsu2_run.py under the SU2py folder. This folder is in my PATH.

What can I do now?

Regards,

Cean

Last edited by shirazbj; February 6, 2013 at 21:07.
shirazbj is offline   Reply With Quote

Old   February 7, 2013, 13:09
Default
  #2
Member
 
Trent Lukaczyk
Join Date: Feb 2011
Location: Stanford, CA
Posts: 75
Rep Power: 6
rktchip is on a distinguished road
Hello Cean!
This file was missed while updating the windows installer. Please add this file to your install directory. <libSU2_run.zip>
-Trent
rktchip is offline   Reply With Quote

Old   February 8, 2013, 15:28
Default
  #3
New Member
 
Eduardo Molina
Join Date: Sep 2010
Location: Brazil
Posts: 27
Rep Power: 6
EMolina is on a distinguished road
Hi Trent...

I am getting the following error after running the mesh adaption tutorial. I replaced the files on SU2_RUN including also the one you posted on the optimization topic (libsu2.py). It seems to me that it is an error on SU2_MAC application, as you can see I have tried to run it alone and the problem persists.

Just in case, I compiled the SU2 code with MPI and Metis options.

Do you have any idea of what is happeing?

Thanks in advance

Eduardo.

------------------------- Exit Success (SU2_CFD) ------------------------

*** The MPI_Comm_rank() function was called before MPI_INIT was invoked.
*** This is disallowed by the MPI standard.
*** Your MPI job will now abort.
[Desktop-Molina:4611] Abort before MPI_INIT completed successfully; not able to guarantee that all other processes were killed!
Traceback (most recent call last):
File "mesh_adaptation.py", line 387, in <module>
main()
File "mesh_adaptation.py", line 59, in main
options.save_all )
File "mesh_adaptation.py", line 354, in mesh_adaptation
libSU2_run.SU2_MAC( Config_MAC_filename, partitions )
File "/home/molina/Documentos/Programas/SU2v2.0/TestCases/mesh_adaptation/libSU2_run.py", line 37, in SU2_MAC
run_command( the_Command )
File "/home/molina/Documentos/Programas/SU2v2.0/TestCases/mesh_adaptation/libSU2_run.py", line 106, in run_command
raise Exception , "SU2 process returned error '%s'" % return_code
Exception: SU2 process returned error '1'
molina@Desktop-Molina:~/Documentos/Programas/SU2v2.0/TestCases/mesh_adaptation$ SU2_MAC adapt_NACA0012.cfg
*** The MPI_Comm_rank() function was called before MPI_INIT was invoked.
*** This is disallowed by the MPI standard.
*** Your MPI job will now abort.
[Desktop-Molina:4619] Abort before MPI_INIT completed successfully; not able to guarantee that all other processes were killed!

molina@Desktop-Molina:~/Documentos/Programas/SU2v2.0/TestCases/mesh_adaptation$ SU2_MAC adapt_NACA0012.cfg
*** The MPI_Comm_rank() function was called before MPI_INIT was invoked.
*** This is disallowed by the MPI standard.
*** Your MPI job will now abort.
[Desktop-Molina:4631] Abort before MPI_INIT completed successfully; not able to guarantee that all other processes were killed!
molina@Desktop-Molina:~/Documentos/Programas/SU2v2.0/TestCases/mesh_adaptation$
EMolina is offline   Reply With Quote

Old   February 9, 2013, 10:12
Default
  #4
Member
 
Trent Lukaczyk
Join Date: Feb 2011
Location: Stanford, CA
Posts: 75
Rep Power: 6
rktchip is on a distinguished road
Hi Eduardo,
You might have an older version of SU2v2.0, can you please download a new copy and try to recompile it? You won't need to copy libSU2 again.
Let me know if you still have trouble.
-Trent
ps - this question probably should have gone on its own thread
rktchip is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Native ParaView Reader Bugs tj22 OpenFOAM Paraview & paraFoam 266 July 1, 2015 02:00
y+ and u+ values with low-Re RANS turbulence models: utility + testcase florian_krause OpenFOAM 108 June 9, 2015 08:13
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 20:50
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51


All times are GMT -4. The time now is 19:26.