Ah, your config also worked for me. The problem was that I was configuring PATH and PYTHONPATH in my *user* environment instead of changing the *system* variables.<br><br>Thanks a lot<br><br>Renato.<br><br><div class="gmail_quote">
On Tue, Sep 8, 2009 at 12:13 PM, Utkarsh Ayachit <span dir="ltr"><<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Here's what I did:<br>
<br>
> set PATH=C:\Program Files\ParaView 3.6.1\bin;C:\Program Files\ParaView 3.6.1\lib\paraview-3.6;%PATH%<br>
> set PYTHONPATH=C:\Program Files\ParaView 3.6.1\bin;C:\Program Files\ParaView 3.6.1\lib\paraview-3.6;<br>
> python.exe<br>
>>> from paraview.simple import *<br>
<br>
That worked for me, with no errors.<br>
<font color="#888888"><br>
Utkarsh<br>
</font><div><div></div><div class="h5"><br>
On Tue, Sep 8, 2009 at 10:50 AM, Renato Elias<<a href="mailto:rnelias@gmail.com">rnelias@gmail.com</a>> wrote:<br>
> nop, but the error message has changed to<br>
><br>
>>>> from paraview.simple import *<br>
> Traceback (most recent call last):<br>
> File "<stdin>", line 1, in <module><br>
> File "C:\Program Files\ParaView<br>
> 3.6.1\lib\paraview-3.6\paraview\simple.py", li<br>
> ne 39, in <module><br>
> import servermanager<br>
> File "C:\Program Files\ParaView<br>
> 3.6.1\lib\paraview-3.6\paraview\servermanager.<br>
> py", line 55, in <module><br>
> from vtkPVServerManagerPython import *<br>
> ImportError: DLL load failed: The specified procedure could not be found.<br>
>>>><br>
><br>
> PATH = C:\Program Files\ParaView 3.6.1\bin;%CommonProgramFiles%\Microsoft<br>
> Shared\Windows Live;C:\Program Files\CMake 2.6\bin;C:\Program Files\ParaView<br>
> 3.6.1\lib\paraview-3.6\paraview;C:\Python25;<br>
><br>
> PYTHONPATH = C:\Program Files\ParaView 3.6.1\lib\paraview-3.6\;C:\Program<br>
> Files\ParaView 3.6.1\lib\paraview-3.6\paraview<br>
><br>
> --------------------------<br>
><br>
> Renato.<br>
><br>
><br>
><br>
> On Tue, Sep 8, 2009 at 11:17 AM, Utkarsh Ayachit<br>
> <<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>> wrote:<br>
>><br>
>> Try setting PYTHONPATH (as well as PATH) to the directories containing<br>
>> the simple.py as well the dlls. Does that not work?<br>
>><br>
>> Utkarsh<br>
>><br>
>> On Tue, Sep 8, 2009 at 10:10 AM, Renato Elias<<a href="mailto:rnelias@gmail.com">rnelias@gmail.com</a>> wrote:<br>
>> > Thanks Utkarsh, indirectly you answered my question.<br>
>> ><br>
>> > Since vtkPythonWrapping is not present in the Kitware release, we must<br>
>> > build<br>
>> > ParaView from scratch before loading ParaView/Python module.<br>
>> ><br>
>> > Regards<br>
>> ><br>
>> > Renato.<br>
>> ><br>
>> > On Tue, Sep 8, 2009 at 10:53 AM, Utkarsh Ayachit<br>
>> > <<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>> wrote:<br>
>> >><br>
>> >> Refer to:<br>
>> >> <a href="http://www.paraview.org/Wiki/ParaView/Python_Scripting#Getting_Started" target="_blank">http://www.paraview.org/Wiki/ParaView/Python_Scripting#Getting_Started</a><br>
>> >><br>
>> >> and ensure that PATH/PYTHONPATH are set correctly.<br>
>> >><br>
>> >> Utkarsh<br>
>> >><br>
>> >><br>
>> >><br>
>> >> On Tue, Sep 8, 2009 at 9:25 AM, Renato Elias<<a href="mailto:rnelias@gmail.com">rnelias@gmail.com</a>> wrote:<br>
>> >> > Is it possible to load the Python module from the Kitware ParaView<br>
>> >> > releases<br>
>> >> > (outside the UI)? I've already tried but all that I've got was an<br>
>> >> > error<br>
>> >> > message like the following:<br>
>> >> ><br>
>> >> > Microsoft Windows [Version 6.1.7600]<br>
>> >> > Copyright (c) 2009 Microsoft Corporation. All rights reserved.<br>
>> >> ><br>
>> >> > C:\Users\Renato>python<br>
>> >> > Python 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit<br>
>> >> > (Intel)]<br>
>> >> > on<br>
>> >> > win32<br>
>> >> > Type "help", "copyright", "credits" or "license" for more<br>
>> >> > information.<br>
>> >> >>>> from paraview.simple import *<br>
>> >> > Traceback (most recent call last):<br>
>> >> > File "<stdin>", line 1, in <module><br>
>> >> > File "C:\Program Files\ParaView<br>
>> >> > 3.6.1\lib\paraview-3.6\paraview\simple.py", li<br>
>> >> > ne 39, in <module><br>
>> >> > import servermanager<br>
>> >> > File<br>
>> >> ><br>
>> >> ><br>
>> >> > "C:/Kitware/ParaView-3-6-1/bin/Utilities/VTKPythonWrapping/paraview\serve<br>
>> >> > rmanager.py", line 55, in <module><br>
>> >> > ImportError: DLL load failed: The specified procedure could not be<br>
>> >> > found.<br>
>> >> >>>><br>
>> >> ><br>
>> >> > Are we forced to build ParaView from scratch, including Python<br>
>> >> > support,<br>
>> >> > in<br>
>> >> > order to do it?<br>
>> >> ><br>
>> >> > (Moreover, I can't understand why the simple.py module is looking for<br>
>> >> > something in C:/Kitware/ParaView-3-6-1/... since I have not specified<br>
>> >> > this<br>
>> >> > path in any environment variable...)<br>
>> >> ><br>
>> >> > Regards<br>
>> >> ><br>
>> >> > --<br>
>> >> > Renato N. Elias<br>
>> >> > ===================================<br>
>> >> > High Performance Computing Center (NACAD)<br>
>> >> > Federal University of Rio de Janeiro (UFRJ)<br>
>> >> > Rio de Janeiro, Brazil<br>
>> >> ><br>
>> >> ><br>
>> >> > _______________________________________________<br>
>> >> > Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>> >> ><br>
>> >> > Visit other Kitware open-source projects at<br>
>> >> > <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>> >> ><br>
>> >> > Please keep messages on-topic and check the ParaView Wiki at:<br>
>> >> > <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
>> >> ><br>
>> >> > Follow this link to subscribe/unsubscribe:<br>
>> >> > <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
>> >> ><br>
>> >> ><br>
>> ><br>
>> ><br>
>> ><br>
>> > --<br>
>> > Renato N. Elias<br>
>> > ===================================<br>
>> > High Performance Computing Center (NACAD)<br>
>> > Federal University of Rio de Janeiro (UFRJ)<br>
>> > Rio de Janeiro, Brazil<br>
>> ><br>
>> ><br>
><br>
><br>
><br>
> --<br>
> Renato N. Elias<br>
> ===================================<br>
> High Performance Computing Center (NACAD)<br>
> Federal University of Rio de Janeiro (UFRJ)<br>
> Rio de Janeiro, Brazil<br>
><br>
> Sent from Rio De Janeiro, RJ, Brazil<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Renato N. Elias<br>===================================<br>High Performance Computing Center (NACAD)<br>Federal University of Rio de Janeiro (UFRJ)<br>Rio de Janeiro, Brazil<br>
<br>Sent from Rio De Janeiro, RJ, Brazil