Glad it works and thanks for sharing your success on having ParaViewWeb on Windows.
Seb On Fri, May 22, 2015 at 4:03 AM, Yu Yu <[email protected]> wrote: > Thanks Sebastien for the suggestion ! Yes, it works now. The final setting > that make it works is this: > > set PYTHONPATH=C:\Python27\Lib\site-packages\win32; > C:\Python27\Lib\site-packages\win32\lib; > > Thanks for your help > > > On Tue, May 19, 2015 at 9:49 PM, Sebastien Jourdain < > [email protected]> wrote: > >> Try to add that path to the following environment variable: >> >> set PATH=%PATH%;C:\Python27\Lib\site-packages\win32 >> set PYTHONPATH=C:\Python27\Lib\site-packages\win32 >> >> If that doesn't work, you will have to search on the net on how to make >> Twisted works on Windows. >> >> Good luck, >> >> Seb >> >> On Tue, May 19, 2015 at 5:16 AM, Yu Yu <[email protected]> wrote: >> >>> Hi Sebastien, >>> >>> Sorry, please ignore the previous error. I finally found the correct >>> combination in cmake and successfully build ParaViewWeb without error. >>> >>> However, when I launch ParaViewWeb with the following command: >>> >>> pvpython.exe >>> ..\lib\paraview-4.3\site-packages\paraview\web\pv_web_visualizer.py >>> --content ..\share\www --port 8088 --data-dir \data >>> >>> The following error occur. >>> >>> Traceback (most recent call last): >>> File >>> "..\lib\paraview-4.3\site-packages\paraview\web\pv_web_visualizer.py", line >>> 78, in <module> >>> from vtk.web import server >>> File >>> "D:\ParaView-4.3.1-Windows-64bit\ParaView-4.3.1-Windows-64bit\lib\paraview-4.3\site-packages\ >>> vtk\web\server.py", line 27, in <module> >>> from twisted.internet.endpoints import serverFromString >>> File >>> "D:\ParaView-4.3.1-Windows-64bit\ParaView-4.3.1-Windows-64bit\lib\paraview-4.3\site-packages\ >>> twisted\internet\endpoints.py", line 44, in <module> >>> from twisted.internet import stdio >>> File >>> "D:\ParaView-4.3.1-Windows-64bit\ParaView-4.3.1-Windows-64bit\lib\paraview-4.3\site-packages\ >>> twisted\internet\stdio.py", line 28, in <module> >>> from twisted.internet import _win32stdio >>> File >>> "D:\ParaView-4.3.1-Windows-64bit\ParaView-4.3.1-Windows-64bit\lib\paraview-4.3\site-packages\ >>> twisted\internet\_win32stdio.py", line 7, in <module> >>> import win32api >>> ImportError: No module named win32api >>> >>> Can I know how to point it to win32api I installed ? The file for >>> win32api.pyd is in >>> C:\Python27\Lib\site-packages\win32 >>> >>> Thanks for your help. >>> >>> >>> On Tue, May 19, 2015 at 5:59 PM, Yu Yu <[email protected]> wrote: >>> >>>> Thanks for the info. I make the change (comment out that line) and >>>> rebuild. This time i can see WebApplication, vtkWebApps, vtkWebCore... and >>>> etc in the Solution Explorer in VS 2013. And when I build all solutions, >>>> everything compile properly except 2 errors: >>>> >>>> Error 7064 error LNK2019: unresolved external symbol >>>> "__declspec(dllimport) public: static class vtkAVIWriter * __cdecl >>>> vtkAVIWriter::New(void)" (__imp_?New@vtkAVIWriter@@SAPEAV1@XZ) >>>> referenced in function "protected: bool __cdecl >>>> vtkSMAnimationSceneImageWriter::CreateWriter(void)" >>>> (?CreateWriter@vtkSMAnimationSceneImageWriter@@IEAA_NXZ) >>>> D:\Files\ParaView431\build11\ParaViewCore\Animation\vtkSMAnimationSceneImageWriter.obj >>>> vtkPVAnimation >>>> Error 7065 error LNK1120: 1 unresolved externals >>>> D:\Files\ParaView431\build11\bin\Release\vtkPVAnimation-pv4.3.dll >>>> vtkPVAnimation >>>> >>>> Do I need vtkPVAnimation ? I only interested in ParaViewWeb, how can I >>>> turn that off from cmake (if ParaViewWeb do not require vtkPVAnimation). >>>> >>>> Thanks for your help. >>>> >>>> On Mon, May 18, 2015 at 10:28 PM, Sebastien Jourdain < >>>> [email protected]> wrote: >>>> >>>>> Replace the following CMake lines >>>>> >>>>> # ParaViewWeb on Windows needs win32api which is not provided by >>>>> default >>>>> # For now the default behavior would be to disable it on Windows build >>>>> if (WIN32) >>>>> set(PARAVIEW_ENABLE_WEB OFF CACHE BOOL "" FORCE) >>>>> else() >>>>> cmake_dependent_option(PARAVIEW_ENABLE_WEB "Enable/Disable web >>>>> support" ON >>>>> "PARAVIEW_ENABLE_PYTHON" OFF) >>>>> endif() >>>>> >>>>> with the following ===== >>>>> >>>>> # ParaViewWeb on Windows needs win32api which is not provided by >>>>> default >>>>> # For now the default behavior would be to disable it on Windows build >>>>> if (WIN32) >>>>> # set(PARAVIEW_ENABLE_WEB OFF CACHE BOOL "" FORCE) >>>>> else() >>>>> cmake_dependent_option(PARAVIEW_ENABLE_WEB "Enable/Disable web >>>>> support" ON >>>>> "PARAVIEW_ENABLE_PYTHON" OFF) >>>>> endif() >>>>> >>>>> Then you should be good to go. >>>>> >>>>> Seb >>>>> >>>>> On Mon, May 18, 2015 at 3:09 AM, Yu Yu <[email protected]> wrote: >>>>> >>>>>> Hi, >>>>>> >>>>>> I want to build ParaViewWeb on windows (64-but), I have install >>>>>> win32api for python in my machine. I am using cmake-gui, and every time I >>>>>> click ParaView_Enable_Python" to ON, and ParaView_Enable_Web to ON, cmake >>>>>> will turn ParaView_Enable_Web to off. Is there a way to make it on ? >>>>>> >>>>>> I found this in the cmake text: >>>>>> # ParaViewWeb on Windows needs win32api which is not provided by >>>>>> default >>>>>> # For now the default behavior would be to disable it on Windows build >>>>>> >>>>>> Can I know how to enable ParaViewWeb for windows build ? >>>>>> >>>>>> Thanks for your help. >>>>>> >>>>>> _______________________________________________ >>>>>> 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 >>>>>> >>>>>> Search the list archives at: http://markmail.org/search/?q=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 Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
