Hi,<br><div class="gmail_quote"><br>Thank you for the suggestion. I used dependency walker and apparently there was a problem with the MATLAB mex. The libmx.dll couldn&#39;t be found because it was not in the path and also msvcr80.dll was required. For some reason, certain C++ classes in Qt could not be located as well, amongst which were QMapData,QVectorData and QPainter. This seems to be related to an issue which has already been posted (<a href="http://www.cmake.org/pipermail/paraview/2010-March/016338.html" target="_blank">http://www.cmake.org/pipermail/paraview/2010-March/016338.html</a>   ,   <a href="http://www.vtk.org/pipermail/vtkusers/2010-June/109514.html" target="_blank">http://www.vtk.org/pipermail/vtkusers/2010-June/109514.html</a>). <br>

<br>I have recompiled vtk with the VTK_USE_MATLAB_MEX option turned off and now I could import vtk in python. However I get an error when I try to create a vtkQtListView() object :<br><br>QWidget: Must construct a QApplication before a QPaintDevice<br>

<br>A related issue has been posted in the FAQ (<a href="http://www.vtk.org/Wiki/VTK/FAQ" target="_blank">http://www.vtk.org/Wiki/VTK/FAQ</a>), but from what I understood, this should only be a problem when you use vtk in debug while the release version is in your path. However, I only have installed the release-version of vtk, but I still get this error. Any idea where this error comes from and how I can fix it?<br>

<br>thanks,<br><font color="#888888">Hon Fai</font><div><div></div><div class="h5"><br>   <br><br><div class="gmail_quote">On Thu, Nov 3, 2011 at 3:08 PM, Brooke Steele <span dir="ltr">&lt;<a href="mailto:bnsteel@gmail.com" target="_blank">bnsteel@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">
if the module it is trying to load seems to exist (i.e. whichever one contains vtkGraphicsPython), use the dependency walker to make sure there is not a mismatch in machine type (32 vs 64) between any dlls that are loaded by the one that cannot be found<div>



<br></div><div><br><div><div class="gmail_quote"><div><div></div><div>On Thu, Nov 3, 2011 at 2:37 PM, Hon Fai Choi <span dir="ltr">&lt;<a href="mailto:honfai.choi@gmail.com" target="_blank">honfai.choi@gmail.com</a>&gt;</span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div>

Hi,<br><br>I am trying to build vtk 5.8.0 against Qt 4.7.4 with wrappings for python 2.7.2 on a windows XP system. I use MSVC 2010 as the native compiler.<br>I have build the MSVC vtk-solution in Release mode and updated the PATH and PYTHONPATH environment variables. I have installed the build in the following directory (by building the INSTALL project):<br>




<br>&quot;C:\SciComp\vtk-5.8.0\vtk-5.8.0-msvc2010&quot; ,<br><br>so I have added &quot;C:\SciComp\vtk-5.8.0\vtk-5.8.0-msvc2010\bin&quot; to PATH and PYTHONPATH and also added &quot;C:\SciComp\vtk-5.8.0\vtk-5.8.0-msvc2010\lib\site-packages&quot; to PYTHONPATH.<br>




<br>The build did not give any errors, but when I try to import vtk in python I get the following error message:<br><br>&quot;Traceback (most recent call last):<br>  File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;<br>




  File &quot;C:\SciComp\vtk-5.8.0\vtk-5.8.0-msvc2010\lib\site-packages\vtk-5.8.0-py2.7.egg\vtk\__init__.py&quot;, line 45, in &lt;module&gt;<br>    from vtkGraphicsPython import *<br> ImportError: DLL load failed: The specified module could not be found.&quot;<br>




<br>It seems that python cannot find the Graphics module. Does anyone know what I am doing wrong here? I have put the CMakeCache file in the attachment.<br><br><br>thanks,<br><font color="#888888">Hon Fai<br><br><br><br>



<br>
</font><br></div></div>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div></div>
</blockquote></div><br>
</div></div></div><br>