<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">&lt;<a href="mailto:akyrieleis@gmail.com" target="_blank">akyrieleis@gmail.com</a>&gt;</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(&quot;session_started&quot;);<br>
                        $(&quot;.clicktostart&quot;).html(&quot;Loading ...&quot;);<br>
<br>
                        var serviceURL = location.protocol + &quot;//&quot; +<br>
location.hostname +<br>
                            &quot;:&quot; + location.port + &quot;/paraview&quot;;<br>
<div class="im">                        var config = {<br>
                            sessionManagerURL: serviceURL,<br>
                            name: &quot;Live Articles&quot;,<br>
                            description: &quot;3D visualization with<br>
ParaView/Web&quot;,<br>
</div>                            application: &quot;file_loader&quot;<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(&quot;Connection failed.&quot;);<br>
<br>
                            var conn = {<br>
                                sessionURL: &quot;ws://&quot; + location.hostname +<br>
&quot;:&quot; + location.port + &quot;/ws&quot;<br>
                            };<br>
                            setupConnection(conn);<br>
                        }<br>
                    );<br>
<br>
then I get the following runtime error<br>
<br>
 File &quot;lib/paraview-4.0/site-packages/paraview/web/pv_web_file_loader.py&quot;,<br>
line 97, in initialize<br>
            _FileOpener.reader = simple.OpenDataFile(_FileOpener.fileToLoad)<br>
          File<br>
&quot;/home/.../ParaView-4.0.1-Linux-64bit/lib/paraview-4.0/site-packages/paraview/simple.py&quot;,<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>