[Paraview] ParaviewWeb Examples | Python Libraries | Import Error

Léo Pessanha leonardopessanha74 at gmail.com
Tue Aug 29 15:48:21 EDT 2017


Hi!

I am trying to build the example:

> https://kitware.github.io/paraviewweb/examples/RemoteRenderer.html
>

I can't get past the python script that serves ParaView as server

The errors I have encountered are:

'No module named wslink found' that I managed to fix installing wslink
trough pip with 'pip install wslink' and copying the wslink folder to one
of  the folders in the path of pvpython

Then the following one showed up to me

from paraview.web import wslink      as pv_wslink
> ImportError: cannot import name wslink
>

At first I tought it was a circular dependencie problem and tried

import paraview.web.pv_wslink
>

But got:

File "/home/leo/remoteRenderer/pv_server.py", line 10, in <module>
>     import paraview.web.pv_wslink
>   File "/opt/pv52/lib/python2.7/site-packages/paraview/web/pv_wslink.py",
> line 6, in <module>
>     from vtk.web import wslink as vtk_wslink
> ImportError: cannot import name wslink
>


I believe I am missing an important step needed to code with pvpython
without problems.

Something like a 'build_essentials' package or 'paraview.web'/'vtk.web'
ones

How can I manage the *sys.path* of pvpython in order for it to find those
modules(pv_wslink and vtk_wslink) that are missing? (Installing trough pip
adds the modules to python executable and not to the pvpython one)

Can someone help me with this?

Thanks in advance!

Leonardo Pessanha
Laboratory of Computational Methods in Engineering
Federal University of Rio de Janeiro - COPPE
Rio de Janeiro, RJ, Brasil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20170829/ffffdc9e/attachment.html>


More information about the ParaView mailing list