[vtkusers] about vtk python bindings and Qt

Nicola Creati ncreati at inogs.it
Thu Sep 16 12:42:33 EDT 2010


Thx,
the workaround work.

Nicola


Clinton Stimpson 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
>
>   


-- 
Nicola Creati
Istituto Nazionale di Oceanografia e di Geofisica Sperimentale - OGS www.inogs.it Dipartimento di Geofisica della Litosfera Geophysics of Lithosphere Department CARS (Cartography and Remote Sensing) Research Group http://www.inogs.it/Cars/ Borgo Grotta Gigante 42/c 34010 Sgonico - Trieste - ITALY ncreati at ogs.trieste.it
off.   +39 040 2140 213
fax.   +39 040 327307

_____________________________________________________________________
This communication, that may contain confidential and/or legally privileged information, is intended solely for the use of the intended addressees. Opinions, conclusions and other information contained in this message, that do not relate to the official business of OGS, shall be considered as not given or endorsed by it. Every opinion or advice contained in this communication is subject to the terms and conditions provided by the agreement governing the engagement with such a client. Any use, disclosure, copying or distribution of the contents of this communication by a not-intended recipient or in violation of the purposes of this communication is strictly prohibited and may be unlawful. For Italy only: Ai sensi del D.Lgs.196/2003 - "T.U. sulla Privacy" si precisa che le informazioni contenute in questo messaggio sono riservate ed a uso esclusivo del destinatario.
_____________________________________________________________________ 




More information about the vtkusers mailing list