CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ParaView (https://www.cfd-online.com/Forums/paraview/)
-   -   [General] Python Shell button is diabled (https://www.cfd-online.com/Forums/paraview/104951-python-shell-button-diabled.html)

JPW July 19, 2012 10:11

Python Shell button is diabled
 
I am new to ParaView, I am using ParaView 3.14.0. I want to create some scripts for batch processing, but I can't even open up the Python console window.

When I go to: Tools -> Python Shell the button is disabled.

When I try running ParaView from the terminal with a script (using --script) I get:
Python support not enabled. Cannot run python scripts.



Does anyone know how I can enable it?


Thanks.
James

wyldckat July 20, 2012 06:13

Greetings JPW and welcome to the forum!

Depends on how you installed ParaView! The Python functionality is only available if ParaView is built with it.
I believe that the official binary installation provides this functionality out-of-the-box: http://www.paraview.org/

Best regards,
Bruno

JPW July 23, 2012 09:44

Quote:

Originally Posted by wyldckat (Post 372550)
Greetings JPW and welcome to the forum!

Depends on how you installed ParaView! The Python functionality is only available if ParaView is built with it.
I believe that the official binary installation provides this functionality out-of-the-box: http://www.paraview.org/

Best regards,
Bruno

Thanks.
I have installed the version from the ParaView website, and it working fine now.

shipman November 5, 2015 02:36

hi
 
Hi Bruno,

So, as far as I understood from your words that the installed paraview during openfoam installation is different than paraview explained web page directly. Because, I had same problem that I could not execute the python script with the installed paraview with openfoam.

On the other hand, I would like to ask one more question that I am doing a large scale simulation (first time I try) on a super computer. I have already the python script which gives automatic post processing data. Do you have any idea how can I get post processing data using python script in Super Computer? Should I have also same version of paraview in Super computer and execute the python script there? or is there any other way?

thank you in advance.

wyldckat November 8, 2015 15:51

Quick answers:
Quote:

Originally Posted by shipman (Post 571955)
So, as far as I understood from your words that the installed paraview during openfoam installation is different than paraview explained web page directly. Because, I had same problem that I could not execute the python script with the installed paraview with openfoam.

Depends on the OpenFOAM version and/or what installation instructions you followed.

Quote:

Originally Posted by shipman (Post 571955)
On the other hand, I would like to ask one more question that I am doing a large scale simulation (first time I try) on a super computer. I have already the python script which gives automatic post processing data. Do you have any idea how can I get post processing data using python script in Super Computer? Should I have also same version of paraview in Super computer and execute the python script there? or is there any other way?

A few details come into mind:
  1. You must use the same version of ParaView, if you connect graphically.
  2. If the case is decomposed, you must use a data reader that supports parallel data loading. For example, for OpenFOAM, you can use the built-in reader: https://openfoamwiki.net/index.php/F...29_in_ParaView
  3. If you want to purely script things, you can imply use pvpython instead of paraview.


All times are GMT -4. The time now is 17:15.