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

"No module named libSU2" in py script

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 6, 2013, 19:25
Default "No module named libSU2" in py script
  #1
Senior Member
 
Cean
Join Date: Feb 2010
Posts: 128
Rep Power: 16
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 20:07.
shirazbj is offline   Reply With Quote

Old   February 7, 2013, 12:09
Default
  #2
Member
 
Trent Lukaczyk
Join Date: Feb 2011
Location: Stanford, CA
Posts: 75
Rep Power: 15
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, 14:28
Default
  #3
Member
 
Eduardo Molina
Join Date: Sep 2010
Location: Brazil
Posts: 35
Rep Power: 15
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, 09:12
Default
  #4
Member
 
Trent Lukaczyk
Join Date: Feb 2011
Location: Stanford, CA
Posts: 75
Rep Power: 15
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


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
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
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 12:10.