MantisBT - VTK
View Issue Details
0007501VTK(No Category)public2008-08-19 11:202016-08-12 09:55
Paul Melis 
Kitware Robot 
normalminorhave not tried
closedmoved 
GNU/LinuxFedora Core 8
 
 
0007501: Error installing Python bindings
With the VTK 5.2 branch I get an error during "make install", after an otherwise successful build. The installation of the Python bindings fails, see the build output under "Additional Information".

The problem is that the setup.py script seems to try to copy stuff to $CMAKE_INSTALL_PREFIX/lib/python2.5/site-packages, but the python2.5 subdirectory does not even exist at that point, let alone the site-packages one.

Creating python2.5/site-packages by hand (AND setting the relevant directory on PYTHONPATH to get through the check) fixes this.

(Unrelated to the problem here, but, blegh, why does VTK default to using those stupid eggs...)
1. Run ccmake
2. If have set CMAKE_INSTALL_PREFIX to /home/stud/scivis/vtk5.2, and am building in a separate build directory (which is not a subdir of the source dir), and VTK_WRAP_PYTHON to ON, CMAKE_BUILD_TYPE is Release
3. press configure until generation is enabled, then generate makefiles
4. make
5. make install --> error as below

-- Installing /home/stud/scivis/vtk5.2/lib/vtk-5.2/tcl/vtkvolumerendering/vtkvolumerendering.tcl
-- Installing /home/stud/scivis/vtk5.2/lib/vtk-5.2/tcl/vtkrendering/vtkrendering.tcl
-- Installing /home/stud/scivis/vtk5.2/bin/vtkpython
running cd "/home/stud/scivis/vtk-5.2-build/Wrapping/Python" && /usr/bin/python2.5 setup.py install --prefix="/home/stud/scivis/vtk5.2" 2>&1
running install
Checking .pth file support in /home/stud/scivis/vtk5.2/lib/python2.5/site-packages/
error: can't create or remove files in install directory

The following error occurred while trying to add or remove files in the
installation directory:

    [Errno 2] No such file or directory: '/home/stud/scivis/vtk5.2/lib/python2.5/site-packages/test-easy-install-30864.pth'

The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

    /home/stud/scivis/vtk5.2/lib/python2.5/site-packages/

This directory does not currently exist. Please create it and try again, or
choose a different installation directory (using the -d or --install-dir
option).

-- Installing /home/stud/scivis/vtk5.2/lib/vtk-5.2/java/vtk/vtk.jar
-- Installing /home/stud/scivis/vtk5.2/lib/vtk-5.2/VTKConfig.cmake
No tags attached.
Issue History
2008-08-19 11:20Paul MelisNew Issue
2011-06-16 13:11Zack GalbreathCategory => (No Category)
2016-08-12 09:55Kitware RobotNote Added: 0037010
2016-08-12 09:55Kitware RobotStatusexpired => closed
2016-08-12 09:55Kitware RobotResolutionopen => moved
2016-08-12 09:55Kitware RobotAssigned To => Kitware Robot

Notes
(0037010)
Kitware Robot   
2016-08-12 09:55   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page.