You are not logged in.

#1 2017-12-08 00:07:39

Registered: 2013-01-16
Posts: 29

No module named 'vtkOpenGLKitPython'

Hi there.

I hope this is the right place to ask this or else i kindly asks the moderators to move it where it should be.

So i'm in the need to make some 3D graphics for a robotic arm simulation and was considering to use VTK/python package to generate the graphics. How ever i ran in to some problems. 
As i prefer python3 before python2 i tried to get that to work first and used the vtk-py3-qt4 package from AUR. The installation went fine but when i try to import vtk i get the following error:

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/vtk/", line 5, in <module>
    from .vtkOpenGLKitPython import *
ImportError: cannot open shared object file: No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python3.6/site-packages/vtk/", line 46, in <module>
    from .vtkOpenGLKit import *
  File "/usr/lib/python3.6/site-packages/vtk/", line 9, in <module>
    from vtkOpenGLKitPython import *
ModuleNotFoundError: No module named 'vtkOpenGLKitPython'

I tried to fix that with installing mayavi from AUR but that didn't help.
So then i tough a f..k i have to use python 2.7 then and installed that with pacman -S vtk.
But no luck there ether.

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.7/site-packages/vtk/", line 127, in <module>
    from .vtkIOExport import *
  File "/usr/lib/python2.7/site-packages/vtk/", line 9, in <module>
    from vtkIOExportPython import *
ImportError: No module named vtkIOExportPython


Any one have any ideas how to work around this and preferably get it to work in python3?

Edit: changed subject to better reflect the problem.
Edit2: Fixed a language typo.

Last edited by r00tr4t (2017-12-08 09:56:03)


#2 2017-12-20 04:35:06

From: right here right now ℶ
Registered: 2013-04-23
Posts: 225

Re: No module named 'vtkOpenGLKitPython'

maybe similar to this problem?

export PYTHONPATH="/usr/share/glib-2.0"

to the PKGBUILD.


Board footer

Powered by FluxBB