CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   SU2 Installation (https://www.cfd-online.com/Forums/su2-installation/)
-   -   "No module named libSU2" in py script (https://www.cfd-online.com/Forums/su2-installation/112878-no-module-named-libsu2-py-script.html)

shirazbj February 6, 2013 19:25

"No module named libSU2" in py script
 
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

rktchip February 7, 2013 12:09

1 Attachment(s)
Hello Cean!
This file was missed while updating the windows installer. Please add this file to your install directory. <Attachment 18851>
-Trent

EMolina February 8, 2013 14:28

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$

rktchip February 9, 2013 09:12

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


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