<div dir="ltr">Hi Andrea.<div class="gmail_extra"><br><div class="gmail_quote">On 18 August 2016 at 10:33, Andrea Borsic <span dir="ltr"><<a href="mailto:aborsic@ne-scientific.com" target="_blank">aborsic@ne-scientific.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<p>Hi Andrea,</p>
<p>In my experience this is not uncommon on (modern) Windows
computers if many installed applications have added their paths to
the system path in front of the VTK DLLs path. Windows will test
many directories searching for the DLLs it needs to load. <br>
</p>
<p>Typing "SET" from command line should show you where VTK is in
the path. Windows adds the user path at the end of the system
path, so if VTK was manually added to the user path, it might be
likely at the very end of a long list of other paths.</p>
<p>The utility Process Monitor
(<a href="https://technet.microsoft.com/en-us/sysinternals/bb896645" target="_blank">https://technet.microsoft.<wbr>com/en-us/sysinternals/<wbr>bb896645</a>) can
also be used to see all the tests/searches the system will perform
during "import vtk"</p>
<p>I hope this might help,<br>
</p>
<p>Best Regards,</p>
<p>Andrea<br>
</p><div><div class="h5">
<p><br></p></div></div></div></blockquote><div><br></div><div>Thank you so very much for this suggestion: I have added the VTK DLL path in front of everything in my user PATH variable and now I get:</div><div><br></div><div><div>D:\MyProjects>python -m cProfile test_import.py</div><div> 101 function calls in 0.793 seconds</div></div><div> </div><div><br></div><div>:-D :-D :-D</div><div><br></div><div><br></div><div>Andrea.</div><div><br></div></div></div></div>