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

Python Shell button is diabled

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

Like Tree1Likes
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Display Modes
Old   July 19, 2012, 09:11
Default How to enable Python Shell
  #1
JPW
New Member
 
James Walker
Join Date: Jul 2012
Posts: 6
Rep Power: 5
JPW is on a distinguished road
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

Last edited by JPW; July 19, 2012 at 10:45.
JPW is offline   Reply With Quote

Old   July 20, 2012, 05:13
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,215
Blog Entries: 35
Rep Power: 94
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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
sharonyue likes this.
__________________
___
I'll be at OFW11 in Portugal
wyldckat is offline   Reply With Quote

Old   July 23, 2012, 08:44
Default
  #3
JPW
New Member
 
James Walker
Join Date: Jul 2012
Posts: 6
Rep Power: 5
JPW is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
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.
JPW is offline   Reply With Quote

Old   November 5, 2015, 02:36
Default hi
  #4
Senior Member
 
Baris (Heewa)
Join Date: Jan 2013
Location: Japan
Posts: 123
Rep Power: 5
shipman is on a distinguished road
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.
shipman is offline   Reply With Quote

Old   November 8, 2015, 15:51
Default
  #5
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,215
Blog Entries: 35
Rep Power: 94
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Quick answers:
Quote:
Originally Posted by shipman View Post
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 View Post
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.
wyldckat 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
How to get Python Shell into ParaView 3.8.1? blaise OpenFOAM Installation 3 July 24, 2012 04:58
paraView in shell mode (python script running) Prosiaczek OpenFOAM 2 March 19, 2012 08:54
shell conduction ezabille FLUENT 2 December 15, 2010 18:42
ParaView 33 Python Shell error and fix mschoenberg OpenFOAM Bugs 1 August 21, 2008 04:43
ParaView 33 Python Shell error mschoenberg OpenFOAM Paraview & paraFoam 2 August 20, 2008 10:42


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