[vtkusers] Errors in "vtkpython" interpretor (vtkpython 6.3.0.rc1 and pyQt5.2.1 )

David Gobbi david.gobbi at gmail.com
Tue Aug 11 08:20:57 EDT 2015


Hi Manjunath,

Get a list of the paths within "python" and "vtkpython" to see what the
differences are:

    import sys
    for p in sys.path: print p

  - David

On Tue, Aug 11, 2015 at 5:40 AM, Manjunath K E <ke.manjunath at gmail.com>
wrote:

> I have installed vtkpython 6.3.0.rc1 and pyQt5.2.1 manually.
>
> If I run a python script then it is working well without any error.
>
> But, if i run in "vtkpython" interpretor mode, i have following errors.
>
> I have set the *$PYTHONHOME *to contain *PyQt5 *but still problem exists.
>
>
> *export
> PYTHONPATH=/usr/lib/python2.7:/usr/lib/python2.7/dist-packages:/usr/local/lib/python2.7/:/usr/local/lib/python2.7/site-packages/usr/lib/python2.7/lib-dynload:$PYTHONPATH*
> manju at iiitb-gvcl-Z800:~/manju/qt$vtkpython
> vtk version 6.3.0
>
>
>
> *Could not find platform independent libraries <prefix>Could not find
> platform dependent libraries <exec_prefix>Consider setting $PYTHONHOME to
> <prefix>[:<exec_prefix>]*Python 2.7.2 (default, Feb 12 2015, 18:30:44)
> [GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>>
> *>>> from PyQt5.QtWidgets import **
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> ImportError: /usr/lib/python2.7/dist-packages/sip.so: undefined symbol:
> PyUnicodeUCS4_DecodeUTF8
> *>>> from PyQt5.QtWidgets import QApplication, QDialog*
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> ImportError: cannot import name QApplication
>
> *No error for below code*
> >>> from PyQt5 import *
> >>>
>
> Please help.
>
>  Thanks and Regards,
>  Manjunath K E
>  Help Ever Hurt Never
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150811/9057e78f/attachment.html>


More information about the vtkusers mailing list