I'd suggest asking the question on OpenFoam mailing lists/forums. They must have some mechanism to build with Python enabled.
On Thu, Oct 2, 2014 at 11:06 AM, James Feng <[email protected]> wrote: > Hi, > > I'm using paraview (4.1.0) with OpenFOAM 2.3.0 and "parafoam". I noticed > my "python shell" under my parafoam "tool" menu is not activated (with an > appearance "gray"). I wonder if you can tell me what I need to do to > turn the python shell on. I tried with "makeParaView -python" and it > didn't go through the "make". So I guess that is not a legitimate syntax. > > > Many thanks. > > James > > -----Original Message----- > From: ParaView [mailto:[email protected]] On Behalf Of Utkarsh > Ayachit > Sent: Thursday, October 02, 2014 7:19 AM > To: Livia Barazzetti > Cc: ParaView > Subject: Re: [Paraview] problem wirh python shell in Paraview 4.2.0 > > Thanks for reporting. We'll test it out. BTW, do you have any plugins > loaded when you're trying to one the Python shell? > Utkarsh > > On Thu, Oct 2, 2014 at 8:15 AM, <[email protected]> wrote: >> Hi all, >> >> I just downloaded the new version of Paraview, and I am very curious >> about the new features. Unfortunately I cannot use the new python >> trace, because as soon I click ok in the trace window, the application > crashes. >> >> Actually, the problem is already at startup, opening a python shell I >> get this error: >> >> >> >> Python 2.7.3 (default, Sep 23 2014, 20:23:11) [MSC v.1500 64 bit >> (AMD64)] on >> win32 >> >>>>> from paraview.simple import * >> >> Traceback (most recent call last): >> >> File "<console>", line 1, in <module> >> >> File "C:\Program Files (x86)\ParaView >> 4.2.0\lib\paraview-4.2\site-packages\paraview\simple.py", line 39, in >> <module> >> >> import servermanager >> >> File "C:\Program Files (x86)\ParaView >> 4.2.0\lib\paraview-4.2\site-packages\paraview\servermanager.py", line >> 3184, in <module> >> >> __initialize() >> >> File "C:\Program Files (x86)\ParaView >> 4.2.0\lib\paraview-4.2\site-packages\paraview\servermanager.py", line >> 3175, in __initialize >> >> c = Connection(iter.GetCurrentSessionId(), iter.GetCurrentSession()) >> >> File "C:\Program Files (x86)\ParaView >> 4.2.0\lib\paraview-4.2\site-packages\paraview\servermanager.py", line >> 1932, in __init__ >> >> _createModules(self.Modules) >> >> File "C:\Program Files (x86)\ParaView >> 4.2.0\lib\paraview-4.2\site-packages\paraview\servermanager.py", line >> 2564, in _createModules >> >> m.filters = createModule('filters') >> >> File "C:\Program Files (x86)\ParaView >> 4.2.0\lib\paraview-4.2\site-packages\paraview\servermanager.py", line >> 2626, in createModule >> >> if (prop.GetInformationOnly() and propName != "TimestepValues" ) \ >> >> AttributeError: 'NoneType' object has no attribute 'GetInformationOnly' >> >> >> >> I am working on Windows 7, 64 bit (with paraview 4.2.0 64 bit) >> >> Regards, >> >> Livia >> >> >> >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the ParaView Wiki at: >> http://paraview.org/Wiki/ParaView >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/paraview >> > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the ParaView Wiki at: > http://paraview.org/Wiki/ParaView > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/paraview _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
