Hi Eric,<br><br>I have done the `make install` but for some reason the LD_LIBRARY_PATH was set.<br>I just managed to set it manually myself and it worked.<br><br>thanks<br><br>Wendel B Silva<br><br><div class="gmail_quote">
On Wed, Sep 22, 2010 at 1:35 PM, Eric E. Monson <span dir="ltr"><<a href="mailto:emonson@cs.duke.edu">emonson@cs.duke.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div style="word-wrap: break-word;">Hey Wendel,<div><br></div><div>Do you have your LD_LIBRARY_PATH set to the directory where the .so libraries are located? If you haven't done a "make install" the VTK/Wrapping/Python/README.txt file has this entry:</div>
<div><br></div><div><div> (2) Using the package from the source build without installing it</div><div> system wide and without using `vtkpython`. This is most</div><div> useful when you build VTK off a CVS checkout and do not want</div>
<div> to install it system wide and still want to use the vanilla</div><div> Python interpreter. This is also useful if you are not the</div><div> administrator of the machine you are using/building VTK on.</div>
<div><br></div><div> Unix/Linux</div><div> Under Unix the way to do this is to set the `LD_LIBRARY_PATH`</div><div> (or equivalent) to the directory that contains the libvtk*.so</div><div> libraries. You must also set your `PYTHONPATH` to *both* the</div>
<div> directory that contains all the `libvtk*Python.so` files *and*</div><div> the `Wrapping/Python` directory. Under bash/sh something like</div><div> so needs to be done::</div><div><br></div><div> $ export LD_LIBRARY_PATH=$LIBRARY_OUTPUT_PATH</div>
<div> $ export PYTHONPATH=$VTK_ROOT/Wrapping/Python:${LIBRARY_OUTPUT_PATH}</div><div><br></div><div> and under csh::</div><div><br></div><div> $ setenv LD_LIBRARY_PATH ${LIBRARY_OUTPUT_PATH}</div><div> $ setenv PYTHONPATH ${VTK_ROOT}/Wrapping/Python:${LIBRARY_OUTPUT_PATH}</div>
<div><br></div><div> where VTK_ROOT is the directory where VTK is being built</div><div> (`VTK_BINARY_DIR`) and `LIBRARY_OUTPUT_PATH` (this variable is</div><div> set in `CMakeCache.txt`) is where the libraries are built.</div>
<div> Change this to suit your configuration.</div><div><br></div><div><br></div>-Eric</div><div><br><div>
<span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div>
------------------------------------------------------</div><div>Eric E Monson</div><div>Duke Visualization Technology Group</div><div><span style="font-size: medium;"><br></span></div></span>
</div>
<br><div><div><div></div><div class="h5"><div>On Sep 22, 2010, at 3:28 PM, Wendel Silva wrote:</div><br></div></div><blockquote type="cite"><div><div></div><div class="h5">Hi,<br><br>I just compiled the last VTK version with the Wrapping for Python, but it doesnt seems to work here.<br>
I didnt get errors during the compilation. I checked the access permission in the folders/files and looks fine. I checked the PYTHONPATH and everything seems right.<br>
<br>Im getting the following error:<br><br><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote">Traceback (most recent call last):<br> File "test.py", line 1, in <module><br>
import vtk<br> File "/home/wendel/Desktop/vtk-build/Wrapping/Python/vtk/__init__.py", line 41, in <module><br> from common import *<br> File "/home/wendel/Desktop/vtk-build/Wrapping/Python/vtk/common.py", line 7, in <module><br>
from libvtkCommonPython import *<br>ImportError: libvtkCommonPythonD.so.5.7: cannot open shared object file: No such file or directory<br></blockquote><br>Im using vtk on Ubuntu 10.04 LTS.<br><br>Thanks,<br><br>Wendel B Silva<br>
</div></div>
_______________________________________________<br>Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br><br>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br></div></div></blockquote></div><br>