Common stuff:
alias bash-isolate='env -i HOME=$HOME DISPLAY=$DISPLAY SHELL=$SHELL TERM=$TERM USER=$USER PATH=/usr/local/bin:/usr/bin:/bin bash --norc'
Kuni's computer
$ bazel run //tools:drake_visualizer
$ python -c 'import vtk; print(vtk.vtkVersion.GetVTKVersion())'
6.2.0
$ bash-isolate
bash-4.3$ export PYTHONPATH=/home/kunimatsu/.cache/bazel/_bazel_kunimatsu/22e52fcb27f0bef31f487471754d13db/execroot/drake/bazel-out/k8-opt/bin/tools/drake_visualizer.runfiles/drake/external/vtk/lib/python2.7/site-packages
bash-4.3$ export LD_LIBRARY_PATH=/home/kunimatsu/.cache/bazel/_bazel_kunimatsu/22e52fcb27f0bef31f487471754d13db/execroot/drake/bazel-out/k8-opt/bin/tools/drake_visualizer.runfiles/drake/external/vtk/lib/
bash-4.3$ python -c 'import vtk; print(vtk.__file__)'
/usr/lib/python2.7/dist-packages/vtk/__init__.pyc
bash-4.3$ python -c '
import sys
sys.path.insert(0, "/home/kunimatsu/.cache/bazel/_bazel_kunimatsu/22e52fcb27f0bef31f487471754d13db/execroot/drake/bazel-out/k8-opt/bin/tools/drake_visualizer.runfiles/drake/external/vtk/lib/python2.7/site-packages")
import vtk
print(vtk.__file__)'
Traceback (most recent call last):
File "<string>", line 4, in <module>
File "/home/kunimatsu/.cache/bazel/_bazel_kunimatsu/22e52fcb27f0bef31f487471754d13db/execroot/drake/bazel-out/k8-opt/bin/tools/drake_visualizer.runfiles/drake/external/vtk/lib/python2.7/site-packages/vtk/__init__.py", line 7, in <module>
...
ImportError: No module named vtkCommonCorePython
Eric's computer:
$ python -c 'import vtk; print(vtk.vtkVersion.GetVTKVersion())'
6.2.0
$ bazel build //tools:drake_visualizer
$ bash-isolate
bash-4.3$ export PYTHONPATH=/home/eacousineau/.cache/bazel/_bazel_eacousineau/b2e564e32f8ad0fdcd9d9d860a1def41/execroot/drake/bazel-out/k8-opt/bin/tools/drake_visualizer.runfiles/drake/external/vtk/lib/python2.7/site-packages
bash-4.3$ export LD_LIBRARY_PATH=/home/eacousineau/.cache/bazel/_bazel_eacousineau/b2e564e32f8ad0fdcd9d9d860a1def41/execroot/drake/bazel-out/k8-opt/bin/tools/drake_visualizer.runfiles/drake/external/vtk/lib
bash-4.3$ python -c 'import vtk; print(vtk.__file__)'
/home/eacousineau/.cache/bazel/_bazel_eacousineau/b2e564e32f8ad0fdcd9d9d860a1def41/execroot/drake/bazel-out/k8-opt/bin/tools/drake_visualizer.runfiles/drake/external/vtk/lib/python2.7/site-packages/vtk/__init__.pyc
bash-4.3$ python -c '
import sys
sys.path.insert(0, "/home/eacousineau/.cache/bazel/_bazel_eacousineau/b2e564e32f8ad0fdcd9d9d860a1def41/execroot/drake/bazel-out/k8-opt/bin/tools/drake_visualizer.runfiles/drake/external/vtk/lib/python2.7/site-packages")
import vtk
print(vtk.__file__)'
Traceback (most recent call last):
File "<string>", line 4, in <module>
File "/home/eacousineau/.cache/bazel/_bazel_eacousineau/b2e564e32f8ad0fdcd9d9d860a1def41/execroot/drake/bazel-out/k8-opt/bin/tools/drake_visualizer.runfiles/drake/external/vtk/lib/python2.7/site-packages/vtk/__init__.py", line 7, in <module>
...
ImportError: No module named vtkCommonCorePython