<div dir="ltr">Is that path valid ../Data/cyl.pvsm ?</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Nov 5, 2013 at 3:16 AM, kyr <span dir="ltr"><<a href="mailto:akyrieleis@gmail.com" target="_blank">akyrieleis@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
can I really open a state file (.pvsm) using the pv_web_file_loader ? In the<br>
documentation it seems the --file-to-load option allows to load only vtk<br>
files.<br>
<br>
I specify the pv_web_file_loader in the Jetty config file like:<br>
<br>
# ==================================================<br>
# Process command: pv_web_file_loader.py | file_loader<br>
# ==================================================<br>
pw.file_loader.cmd=./bin/pvpython<br>
lib/paraview-4.0/site-packages/paraview/web/pv_web_file_loader.py --data-dir<br>
../Data --file-to-load cyl.pvsm --port PORT --authKey SECRET<br>
pw.file_loader.cmd.run.dir=/../Paraw/ParaView-4.0.1-Linux-64bit/<br>
pw.file_loader.cmd.map=PORT:getPort|SECRET:secret<br>
<br>
<br>
and start in paraview (in the embed file of the LiveArticles app) as<br>
<br>
if (!pv.connection) {<br>
$(this).addClass("session_started");<br>
$(".clicktostart").html("Loading ...");<br>
<br>
var serviceURL = location.protocol + "//" +<br>
location.hostname +<br>
":" + location.port + "/paraview";<br>
<div class="im"> var config = {<br>
sessionManagerURL: serviceURL,<br>
name: "Live Articles",<br>
description: "3D visualization with<br>
ParaView/Web",<br>
</div> application: "file_loader"<br>
};<br>
<br>
// Start a new ParaView/Web instance.<br>
vtkWeb.start(config,<br>
function (conn) {<br>
setupConnection(conn);<br>
},<br>
function (err) {<br>
//console.log("Connection failed.");<br>
<br>
var conn = {<br>
sessionURL: "ws://" + location.hostname +<br>
":" + location.port + "/ws"<br>
};<br>
setupConnection(conn);<br>
}<br>
);<br>
<br>
then I get the following runtime error<br>
<br>
File "lib/paraview-4.0/site-packages/paraview/web/pv_web_file_loader.py",<br>
line 97, in initialize<br>
_FileOpener.reader = simple.OpenDataFile(_FileOpener.fileToLoad)<br>
File<br>
"/home/.../ParaView-4.0.1-Linux-64bit/lib/paraview-4.0/site-packages/paraview/simple.py",<br>
line 600, in OpenDataFile<br>
raise RuntimeError, msg<br>
exceptions.RuntimeError: File not readable: cyl.pvsm<br>
<br>
I have created the pvsm file by building a cylinder source in Paraview and<br>
then saving the state. Does this mean I cannot open a state file ? Do I miss<br>
something ?<br>
<br>
Many thanks<br>
k.<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://the-unofficial-paraview-developers-forum.34153.x6.nabble.com/load-pvsm-file-in-LiveArticles-tp2573p2579.html" target="_blank">http://the-unofficial-paraview-developers-forum.34153.x6.nabble.com/load-pvsm-file-in-LiveArticles-tp2573p2579.html</a><br>
<div class="HOEnZb"><div class="h5">Sent from the The Unofficial ParaView Developers Forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Paraview-developers mailing list<br>
<a href="mailto:Paraview-developers@paraview.org">Paraview-developers@paraview.org</a><br>
<a href="http://public.kitware.com/mailman/listinfo/paraview-developers" target="_blank">http://public.kitware.com/mailman/listinfo/paraview-developers</a><br>
</div></div></blockquote></div><br></div>