<html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><meta name="Generator" content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Texte de bulles Car";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.TextedebullesCar
        {mso-style-name:"Texte de bulles Car";
        mso-style-priority:99;
        mso-style-link:"Texte de bulles";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:712653164;
        mso-list-type:hybrid;
        mso-list-template-ids:-1891627716 32548636 202113049 202113051 202113039 202113049 202113051 202113039 202113049 202113051;}
@list l0:level1
        {mso-level-text:%1-;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:18.0pt;
        text-indent:-18.0pt;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
--></style></head><body lang="FR-CA" link="blue" vlink="purple"><div class="WordSection1"><p class="MsoNormal"><span lang="EN-CA">Hello,</span></p><p class="MsoNormal"><span lang="EN-CA"> </span></p><p class="MsoNormal">
<span lang="EN-CA">I’m manipulating different dataset and for each of them I have a different setup (pipeline). I saved the state as a python file and plan to re-use the python state file to re-open the whole pipeline for each dataset. It seems that only *.psvm files can be loaded via  “File -&gt; Load state” in Paraview. Is there a way to load a python state file? </span></p>
<p class="MsoNormal"><span lang="EN-CA"> </span></p><p class="MsoNormal"><span lang="EN-CA">Here is what I tried to do so, but didn’t succeeded.</span></p><p class="MsoNormal"><span lang="EN-CA"> </span></p><p class="MsoListParagraph" style="margin-left:0cm">
<span lang="EN-CA">1- I followed the procedure for Paraview/Python scripting, and added PYTHONPATH in .bashrc:</span></p><p class="MsoNormal"><span lang="EN-CA">export PYTHONPATH=&quot;/home/david/ParaView-3.12.0-RC2-Linux-x86_64/lib/paraview-3.12/site-packages/:/home/david/ParaView-3.12.0-RC2-Linux-x86_64/bin&quot;</span></p>
<p class="MsoNormal"><span lang="EN-CA"> </span></p><p class="MsoNormal"><span lang="EN-CA">* The only thing I can’t do is adding the path to =&quot;/home/david/ParaView-3.12.0-RC2-Linux-x86_64/Utilities/VTKPythonWrapping/site-packages” since I don’t have any “Utilities” folder in my Paraview directory. I believe this is required, but don’t know what to install and where to get it to have it...</span></p>
<p class="MsoNormal"><span lang="EN-CA"> </span></p><p class="MsoNormal"><span lang="EN-CA"> 2- I tried to load the python state file via python with the setup described at step 1, but got the following error:</span></p><p class="MsoNormal">
<span lang="EN-CA"> </span></p><p class="MsoNormal"><span lang="EN-CA">&gt;&gt; python ./sta.py </span></p><p class="MsoNormal"><span lang="EN-CA">Traceback (most recent call last):</span></p><p class="MsoNormal"><span lang="EN-CA">  File &quot;/home/david/CADv2/Patients/P1/Prone/sta.py&quot;, line 2, in &lt;module&gt;</span></p>
<p class="MsoNormal"><span lang="EN-CA">    except: from paraview.simple import *</span></p><p class="MsoNormal"><span lang="EN-CA">  File &quot;/home/david/ParaView-3.12.0-RC2-Linux-x86_64/lib/paraview-3.12/site-packages/paraview/simple.py&quot;, line 39, in &lt;module&gt;</span></p>
<p class="MsoNormal"><span lang="EN-CA">    import servermanager</span></p><p class="MsoNormal"><span lang="EN-CA">  File &quot;/home/david/ParaView-3.12.0-RC2-Linux-x86_64/lib/paraview-3.12/site-packages/paraview/servermanager.py&quot;, line 43, in &lt;module&gt;</span></p>
<p class="MsoNormal"><span lang="EN-CA">    import paraview, re, os, os.path, new, sys, vtk</span></p><p class="MsoNormal"><span lang="EN-CA">  File &quot;/home/david/ParaView-3.12.0-RC2-Linux-x86_64/lib/paraview-3.12/site-packages/paraview/vtk/__init__.py&quot;, line 1, in &lt;module&gt;</span></p>
<p class="MsoNormal"><span lang="EN-CA">    from vtkCommonPython import *</span></p><p class="MsoNormal"><span lang="EN-CA">ImportError: No module named vtkCommonPython</span></p><p class="MsoNormal"><span lang="EN-CA"> </span></p>
<p class="MsoNormal"><span lang="EN-CA">I have taken a look and there is no vtkCommonPython module on my machine. Is it part of the VTKPythonWrapping in Utilities?</span></p><p class="MsoNormal"><span lang="EN-CA"> </span></p>
<p class="MsoNormal"><span lang="EN-CA">Thanks for helping me with this one.</span></p><p class="MsoNormal"><span lang="EN-CA">David</span></p><p class="MsoNormal"><span lang="EN-CA"> </span></p><p class="MsoNormal"><span lang="EN-CA"> </span></p>
<p class="MsoNormal"><span lang="EN-CA"> </span></p><p class="MsoNormal"><img width="216" height="86" id="Image_x0020_1" src="cid:image001.gif@01CC9872.08BC8CD0" alt="L_CadensImaging+rendering_C_gif"></p><p class="MsoNormal">
<span style="font-size:9.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"> </span></p><p class="MsoNormal"><span style="font-size:9.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">DAVID DUPUIS</span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Chef de produit | Product manager</span></p><p class="MsoNormal"><span style="font-size:9.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"> </span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">116 principale, suite 200 </span></p><p class="MsoNormal"><span style="font-size:9.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Granby (Qubec), J2G 2V2</span></p>
<p class="MsoNormal"><span lang="EN-CA" style="font-size:9.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">CANADA</span></p><p class="MsoNormal"><span lang="EN-CA" style="font-size:9.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"> </span></p>
<p class="MsoNormal"><span lang="EN-CA" style="font-size:9.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">T: 450.956.3456 I Ext: 5114</span></p><p class="MsoNormal"><span lang="EN-CA" style="font-size:9.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">F: 450.991.3456</span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"><a href="mailto:david.dupuis@cadensimaging.com">david.dupuis@cadensimaging.com</a></span></p><p class="MsoNormal"><span style="font-size:9.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"> </span></p>
<p class="MsoNormal"><b><span style="font-size:9.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Avis :</span></b><span style="font-size:9.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"> Ce message est confidentiel et est à l&#39;usage exclusif de son destinataire.  Il est strictement interdit à toute autre personne de le diffuser, le distribuer ou le reproduire.  Si le destinataire ne peut être joint ou vous est inconnu, veuillez informer l&#39;expéditeur par courrier électronique immédiatement et effacer ce message et en détruire toute copie. Les communications par Internet sont exposées au risque d&#39;altération des données,  d&#39;autres erreurs de transmission et  la perte de confidentialité. Si vous désirez que nous communiquions avec vous par un autre moyen, veuillez nous en aviser.</span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"> </span></p><p class="MsoNormal"><b><span lang="EN-CA" style="font-size:9.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Notice:</span></b><span lang="EN-CA" style="font-size:9.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"> This message is confidential and is intended for the exclusive use of the addressee.  Any other person is strictly prohibited from disclosing, distributing or reproducing it.  If the addressee cannot be reached or is unknown to you, please inform the sender by return e-mail immediately and delete this message and destroy all copies. Internet communications are subject to the risk of data corruption, other transmission errors and loss of confidentiality. Please advise if you wish us to use a different method when communicating with you.</span></p>
<p class="MsoNormal"><span lang="EN-CA"> </span></p></div></body></html>