Here's what I did: > set PATH=C:\Program Files\ParaView 3.6.1\bin;C:\Program Files\ParaView > 3.6.1\lib\paraview-3.6;%PATH% > set PYTHONPATH=C:\Program Files\ParaView 3.6.1\bin;C:\Program Files\ParaView > 3.6.1\lib\paraview-3.6; > python.exe >>> from paraview.simple import *
That worked for me, with no errors. Utkarsh On Tue, Sep 8, 2009 at 10:50 AM, Renato Elias<[email protected]> wrote: > nop, but the error message has changed to > >>>> from paraview.simple import * > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "C:\Program Files\ParaView > 3.6.1\lib\paraview-3.6\paraview\simple.py", li > ne 39, in <module> > import servermanager > File "C:\Program Files\ParaView > 3.6.1\lib\paraview-3.6\paraview\servermanager. > py", line 55, in <module> > from vtkPVServerManagerPython import * > ImportError: DLL load failed: The specified procedure could not be found. >>>> > > PATH = C:\Program Files\ParaView 3.6.1\bin;%CommonProgramFiles%\Microsoft > Shared\Windows Live;C:\Program Files\CMake 2.6\bin;C:\Program Files\ParaView > 3.6.1\lib\paraview-3.6\paraview;C:\Python25; > > PYTHONPATH = C:\Program Files\ParaView 3.6.1\lib\paraview-3.6\;C:\Program > Files\ParaView 3.6.1\lib\paraview-3.6\paraview > > -------------------------- > > Renato. > > > > On Tue, Sep 8, 2009 at 11:17 AM, Utkarsh Ayachit > <[email protected]> wrote: >> >> Try setting PYTHONPATH (as well as PATH) to the directories containing >> the simple.py as well the dlls. Does that not work? >> >> Utkarsh >> >> On Tue, Sep 8, 2009 at 10:10 AM, Renato Elias<[email protected]> wrote: >> > Thanks Utkarsh, indirectly you answered my question. >> > >> > Since vtkPythonWrapping is not present in the Kitware release, we must >> > build >> > ParaView from scratch before loading ParaView/Python module. >> > >> > Regards >> > >> > Renato. >> > >> > On Tue, Sep 8, 2009 at 10:53 AM, Utkarsh Ayachit >> > <[email protected]> wrote: >> >> >> >> Refer to: >> >> http://www.paraview.org/Wiki/ParaView/Python_Scripting#Getting_Started >> >> >> >> and ensure that PATH/PYTHONPATH are set correctly. >> >> >> >> Utkarsh >> >> >> >> >> >> >> >> On Tue, Sep 8, 2009 at 9:25 AM, Renato Elias<[email protected]> wrote: >> >> > Is it possible to load the Python module from the Kitware ParaView >> >> > releases >> >> > (outside the UI)? I've already tried but all that I've got was an >> >> > error >> >> > message like the following: >> >> > >> >> > Microsoft Windows [Version 6.1.7600] >> >> > Copyright (c) 2009 Microsoft Corporation. All rights reserved. >> >> > >> >> > C:\Users\Renato>python >> >> > Python 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit >> >> > (Intel)] >> >> > on >> >> > win32 >> >> > Type "help", "copyright", "credits" or "license" for more >> >> > information. >> >> >>>> from paraview.simple import * >> >> > Traceback (most recent call last): >> >> > File "<stdin>", line 1, in <module> >> >> > File "C:\Program Files\ParaView >> >> > 3.6.1\lib\paraview-3.6\paraview\simple.py", li >> >> > ne 39, in <module> >> >> > import servermanager >> >> > File >> >> > >> >> > >> >> > "C:/Kitware/ParaView-3-6-1/bin/Utilities/VTKPythonWrapping/paraview\serve >> >> > rmanager.py", line 55, in <module> >> >> > ImportError: DLL load failed: The specified procedure could not be >> >> > found. >> >> >>>> >> >> > >> >> > Are we forced to build ParaView from scratch, including Python >> >> > support, >> >> > in >> >> > order to do it? >> >> > >> >> > (Moreover, I can't understand why the simple.py module is looking for >> >> > something in C:/Kitware/ParaView-3-6-1/... since I have not specified >> >> > this >> >> > path in any environment variable...) >> >> > >> >> > Regards >> >> > >> >> > -- >> >> > Renato N. Elias >> >> > =================================== >> >> > High Performance Computing Center (NACAD) >> >> > Federal University of Rio de Janeiro (UFRJ) >> >> > Rio de Janeiro, Brazil >> >> > >> >> > >> >> > _______________________________________________ >> >> > 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://www.paraview.org/mailman/listinfo/paraview >> >> > >> >> > >> > >> > >> > >> > -- >> > Renato N. Elias >> > =================================== >> > High Performance Computing Center (NACAD) >> > Federal University of Rio de Janeiro (UFRJ) >> > Rio de Janeiro, Brazil >> > >> > > > > > -- > Renato N. Elias > =================================== > High Performance Computing Center (NACAD) > Federal University of Rio de Janeiro (UFRJ) > Rio de Janeiro, Brazil > > Sent from Rio De Janeiro, RJ, Brazil _______________________________________________ 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://www.paraview.org/mailman/listinfo/paraview
