import vtk fails because vtk<KITNAME>Python.so are missing

Bug #1404045 reported by Jean-Christophe Fillion-Robin
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
vtk6 (Ubuntu)
New
Undecided
Unassigned

Bug Description

First of all, thanks for working on packaging VTK6 on debian/ubuntu. This is very much appreciated.

Environment:

$ lsb_release -rd
Description: Ubuntu 14.04.1 LTS
Release: 14.04

$ apt-cache policy python-vtk6
python-vtk6:
  Installed: 6.0.0-6
  Candidate: 6.0.0-6
  Version table:
 *** 6.0.0-6 0
        500 http://us.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
        100 /var/lib/dpkg/status

How to reproduce:

$ python -c "import vtk"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/vtk/__init__.py", line 39, in <module>
    from vtkCommonCore import *
  File "/usr/lib/python2.7/dist-packages/vtk/vtkCommonCore.py", line 1, in <module>
    from vtkCommonCorePython import *
ImportError: No module named vtkCommonCorePython

Details about the problem:

More specifically, if you check the content of

   /usr/lib/python2.7/dist-packages,

you can see that the symbolic links of the form:

  vtk<KITNAME>Python.so -> ../../../x86_64-linux-gnu/libvtk<KITNAME>Python27D-6.0.so

are broken and incorrect.

* Broken because the working symbolic link would point to libvtk<KITNAME>Python27D-6.0.so.6.0

* incorrect because it should instead link to vtk<KITNAME>Python.so that is nowhere to be found.

Let me know how we should proceed, if it applies we could also submit a patch on VTK gerrit to get the problem fixed upstream. See http://www.vtk.org/Wiki/VTK/Git/Develop

Thanks for your help,
Jc

Revision history for this message
Ben Boeckel (mathstuf) wrote :

This was brought up to the ParaView developers as well by the Debian maintainer (Anton). The problem is that generate_links.sh is no longer necessary and should be removed from the VTK6 package (ParaView as well).

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.