[vtkusers] about vtk python bindings and Qt

Yuanming SUO yuanming.suo at gmail.com
Thu Sep 16 12:43:29 EDT 2010


Hi, guys,

  I am sorry to jump in your discussion. But I really wish to get some
expertise here to help me with a problem of "Extension GL_VERSION_1_2 could
not be loaded."

I am trying to install a VTK extension for MATLAB - matVTK. When I am
displaying the volume data, MATLAB crashes.

The error message is in display window as follow,
"ERROR: In E:\Download\vtk-5.6.0\Rendering\vtkOpenGLExtensionManager.cxx,
line 341
vtkOpenGLExtensionManager (051B91B8): Extension GL_VERSION_1_2 could not be
loaded."

I think this is a problem of building VTK but I really don't know how to fix
it. How should I link it with OpenGL in Visual Studio? I tried to rebuild it
several times and upgrade the graphics card driver but it doesn't help.

I really wish you could give me some suggestions on this. Thank you and
sorry for interupting your discussion.

On Thu, Sep 16, 2010 at 12:34 PM, Clinton Stimpson <clinton at elemtech.com>wrote:

>
> Ok, I see that it is installing libvtkQtPython to the wrong location.
> As a workaround until it is fixed, you can add /usr/local/lib/vtk-5.7/ to
> your
> PYTHONPATH.
>
> Clint
>
> On Thursday, September 16, 2010 10:07:11 am Nicola Creati wrote:
> > This is the error:
> >
> > Traceback (most recent call last):
> >   File "<stdin>", line 1, in <module>
> >   File
> > "/usr/local/lib/python2.6/dist-packages/VTK-5.7.0-py2.6.egg/vtk/qvtk.py",
> > line 8, in <module>
> >     from libvtkQtPython import *
> > ImportError: No module named libvtkQtPython
> >
> >
> > My libvtkQtPython.so and  libvtkQtPythonD.so are located in
> > /usr/local/lib/vtk-5.7/.
> >
> > Nicola
> >
> > Clinton Stimpson wrote:
> > > Can you try
> > > import vtk.qvtk
> > > to see if there are any errors?
> > >
> > > Clint
> > >
> > > On Thursday, September 16, 2010 09:51:24 am Nicola Creati wrote:
> > >> Python:  2.6.4
> > >> PyQt :    4.7.5
> > >> Qt:         4.5.2
> > >>
> > >> Ubuntu 10.04 64 bit
> > >>
> > >> Clinton Stimpson wrote:
> > >>> Then we need some more information to help you.
> > >>> What platform?
> > >>> What version of Qt, PyQt, Python?
> > >>>
> > >>> Clint
> > >>>
> > >>> On Thursday, September 16, 2010 09:33:37 am Nicola Creati wrote:
> > >>>> VTK_USE_GUISUPPORT is ON in my configuration.
> > >>>>
> > >>>> Nicola
> > >>>>
> > >>>> Clinton Stimpson wrote:
> > >>>>> Also be sure VTK_USE_GUISUPPORT is on.
> > >>>>>
> > >>>>> Clint
> > >>>>>
> > >>>>> On Thursday, September 16, 2010 08:20:35 am Nicola Creati wrote:
> > >>>>>> Hello,
> > >>>>>> I got today the last VTK by git and compiled using the
> > >>>>>> VTK_WRAP_PYTHON_SIP, VTK_WRAP_PYTHON, VTK_USE_QT but none of the
> > >>>>>> GUISupport Python test works (TestQVTKWidget.py and
> > >
> > >>>>>> TestQVTKWidget2.py):
> > >
> ======================================================================
> > >
> > >>>>>> ERROR: testQVTKWidget (__main__.TestQVTKWidget)
> > >>>>>>
> --------------------------------------------------------------------
> > >>>>>> --
> > >>>>>>
> > >>>>>> Traceback (most recent call last):
> > >>>>>>   File "TestQVTKWidget.py", line 13, in testQVTKWidget
> > >>>>>>
> > >>>>>>     w2 = vtk.QVTKWidget()
> > >>>>>>
> > >>>>>> AttributeError: 'module' object has no attribute 'QVTKWidget'
> > >>>>>>
> > >>>>>>
> --------------------------------------------------------------------
> > >>>>>> --
> > >>>>>>
> > >>>>>> QVTKWidget is missing.
> > >>>>>> Is there some other particular switch I have to set in the
> > >>>>>> compilation? Thanks.
> > >>>>>>
> > >>>>>> Nicola
> > >>>>>>
> > >>>>>> Clinton Stimpson wrote:
> > >>>>>>> I've not tried it, but it should work because the ParentChanged
> > >>>>>>> notification is implemented, whereas it isn't for
> > >>>>>>> QVTKRenderWindowInteractor.
> > >>>>>>>
> > >>>>>>> Clint
> > >>>>>>>
> > >>>>>>> On Sep 16, 2010, at 8:02 AM, Lic. José M. Rodriguez Bacallao
> wrote:
> > >>>>>>>> one pronlem that I have had with the QVTKRenderWindowInteractor
> is
> > >>>>>>>> that I can't use it with an MDI application in PyQt4, this is
> > >>>>>>>> solved with this bindings?
> > >>>>>>>>
> > >>>>>>>> On 9/15/10, Clinton Stimpson <clinton at elemtech.com> wrote:
> > >>>>>>>>> Feel free to keep it on the list.
> > >>>>>>>>>
> > >>>>>>>>> The pyqt+vtk bindings are quite light.
> > >>>>>>>>> As for stability, it looks OK to me when using the examples and
> > >>>>>>>>> tests that are
> > >>>>>>>>> already in VTK.
> > >>>>>>>>>
> > >>>>>>>>> Clint
> > >>>>>>>>>
> > >>>>>>>>> On Wednesday, September 15, 2010 02:42:12 pm Lic. José M.
> > >>>>>>>>> Rodriguez Bacallao
> > >>>>>>>>>
> > >>>>>>>>> wrote:
> > >>>>>>>>>> so, I will mail to Clinton Stimpson  to some questions, thanks
> > >>>>>>>>>> for all.
> > >>>>>>>>>>
> > >>>>>>>>>> On 9/15/10, David Gobbi <david.gobbi at gmail.com> wrote:
> > >>>>>>>>>>> On Wed, Sep 15, 2010 at 2:20 PM, Lic. José M. Rodriguez
> > >>>>>>>>>>> Bacallao
> > >>>>>>>>>>>
> > >>>>>>>>>>> <jmrbcu at gmail.com> wrote:
> > >>>>>>>>>>>> ok, thanks, for all, one last question before I leave, how
> > >>>>>>>>>>>> stable are the pyqt+vtk bindings, how is memory consumption,
> > >>>>>>>>>>>> etc?
> > >>>>>>>>>>>
> > >>>>>>>>>>> It's new code, so YMMV.  I've built it but I haven't used it
> > >>>>>>>>>>> yet. Clinton Stimpson is the author.
> > >>>>>>>>>>>
> > >>>>>>>>>>>   David
> > >>>>>>>>
> > >>>>>>>> Recuerda: El arca de Noe fue construida por aficionados, el
> > >>>>>>>> titanic por profesionales
> > >>>>>>>>
> -----------------------------------------------------------------
> > >>>>>>>
> > >>>>>>> _______________________________________________
> > >>>>>>> Powered by www.kitware.com
> > >>>>>>>
> > >>>>>>> Visit other Kitware open-source projects at
> > >>>>>>> http://www.kitware.com/opensource/opensource.html
> > >>>>>>>
> > >>>>>>> Please keep messages on-topic and check the VTK FAQ at:
> > >>>>>>> http://www.vtk.org/Wiki/VTK_FAQ
> > >>>>>>>
> > >>>>>>> Follow this link to subscribe/unsubscribe:
> > >>>>>>> http://www.vtk.org/mailman/listinfo/vtkusers
> > >>>>>
> > >>>>> _______________________________________________
> > >>>>> Powered by www.kitware.com
> > >>>>>
> > >>>>> Visit other Kitware open-source projects at
> > >>>>> http://www.kitware.com/opensource/opensource.html
> > >>>>>
> > >>>>> Please keep messages on-topic and check the VTK FAQ at:
> > >>>>> http://www.vtk.org/Wiki/VTK_FAQ
> > >>>>>
> > >>>>> Follow this link to subscribe/unsubscribe:
> > >>>>> http://www.vtk.org/mailman/listinfo/vtkusers
> > >>>
> > >>> _______________________________________________
> > >>> Powered by www.kitware.com
> > >>>
> > >>> Visit other Kitware open-source projects at
> > >>> http://www.kitware.com/opensource/opensource.html
> > >>>
> > >>> Please keep messages on-topic and check the VTK FAQ at:
> > >>> http://www.vtk.org/Wiki/VTK_FAQ
> > >>>
> > >>> Follow this link to subscribe/unsubscribe:
> > >>> http://www.vtk.org/mailman/listinfo/vtkusers
> > >
> > > _______________________________________________
> > > Powered by www.kitware.com
> > >
> > > Visit other Kitware open-source projects at
> > > http://www.kitware.com/opensource/opensource.html
> > >
> > > Please keep messages on-topic and check the VTK FAQ at:
> > > http://www.vtk.org/Wiki/VTK_FAQ
> > >
> > > Follow this link to subscribe/unsubscribe:
> > > http://www.vtk.org/mailman/listinfo/vtkusers
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>



-- 

Yuanming Suo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100916/a4f8f42d/attachment.htm>


More information about the vtkusers mailing list