<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hey Kabir,<div><br></div><div>Did you build VTK with VTK_USE_RPATH: OFF? If you build VTK with that ON (which I would recommend on OS X unless you are trying to package some things that require it OFF), then the Python libraries should automatically contain the correct path to find&nbsp;libvtkCommonPythonD.5.6.dylib</div><div><br></div><div>You can check this by running:</div><div><br></div><div>otool -L&nbsp;/Library/Python/2.5/site-packages/VTK-5.6.0-py2.5.egg/vtk/libvtkCommonPython.so</div><div><br></div><div>to see where it's looking for the VTK libraries. If you see that&nbsp;libvtkCommonPythonD.5.6.dylib is listed without an absolute path to where your VTK libraries are, then that's the problem.</div><div><br></div><div>-Eric</div><div><br></div><div><br><div><div>On Jun 8, 2010, at 11:24 AM, Kabir Soorya wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi Eric,<br><div class="gmail_quote"><br>Running&nbsp; <font face="courier new,monospace">cd "/Users/kabir/Downloads/VTK-BUILD/Wrapping/Python" &amp;&amp; /usr/bin/python2.5 setup.py install </font>installs OK, but gives me the following error:<br>

<br><div style="margin-left: 40px;"><div class="im"><span style="font-family: courier new,monospace;">&gt;&gt;&gt; import vtk</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Traceback (most recent call last):</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">&nbsp; File "&lt;stdin&gt;", line 1, in &lt;module&gt;</span><br style="font-family: courier new,monospace;"></div><span style="font-family: courier new,monospace;">&nbsp; File "/Library/Python/2.5/site-packages/VTK-5.6.0-py2.5.egg/vtk/__init__.py", line 41, in &lt;module&gt;</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; from common import *</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp; File "/Library/Python/2.5/site-packages/VTK-5.6.0-py2.5.egg/vtk/common.py", line 7, in &lt;module&gt;</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; from libvtkCommonPython import *</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">ImportError: dlopen(/Library/Python/2.5/site-packages/VTK-5.6.0-py2.5.egg/vtk/libvtkCommonPython.so, 10): Library not loaded: libvtkCommonPythonD.5.6.dylib</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">&nbsp; Referenced from: /Library/Python/2.5/site-packages/VTK-5.6.0-py2.5.egg/vtk/libvtkCommonPython.so</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp; Reason: image not found</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">&gt;&gt;&gt; </span><br><br></div>I'm compiling VTK 5.6.0 on OSX 10.5.8<br><br>Thanks,<br><font color="#888888"><br>~K</font><div><div></div><div class="h5"><br><br><div class="gmail_quote">
On Tue, Jun 8, 2010 at 12:10 PM, Eric E. Monson <span dir="ltr">&lt;<a href="mailto:emonson@cs.duke.edu" target="_blank">emonson@cs.duke.edu</a>&gt;</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 Kabir,<div><br></div><div>I don't remember seeing those particular errors, but have you tried running "sudo python setup.py install" from the [build]/Wrapping/Python directory? "sudo make install" from the [build] directory always fails to do the proper thing for my Python wrappers on OS X, but the former command works well for me.</div>

<div><br></div><div>If this doesn't help, then be sure to pass along to the list what versions of VTK and OS X you are dealing with, too.</div><div><br></div><div>Talk to you later,</div><div>-Eric</div><div><br><div>


<span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; 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;">------------------------------------------------------<br>

Eric E Monson<br>Duke Visualization Technology Group<br></span>
</div>
<div><br></div><br><div><div><div></div><div><div>On Jun 8, 2010, at 12:30 AM, Kabir Soorya wrote:</div><br></div></div><blockquote type="cite"><div><div></div><div>Hi,<br><br>In trying to run make install for VTK, I get the following error:<br>

<br><div style="margin-left: 40px; font-family: courier new,monospace;">Checking .pth file support in /usr/local/lib/python2.5/site-packages/<br>
error: can't create or remove files in install directory<br><br>The following error occurred while trying to add or remove files in the<br>installation directory:<br><br>&nbsp;&nbsp;&nbsp; [Errno 2] No such file or directory: '/usr/local/lib/python2.5/site-packages/test-easy-install-53618.pth'<br>


<br>The installation directory you specified (via --install-dir, --prefix, or<br>the distutils default setting) was:<br><br>&nbsp;&nbsp;&nbsp; /usr/local/lib/python2.5/site-packages/<br><br>This directory does not currently exist.&nbsp; Please create it and try again, or<br>


choose a different installation directory (using the -d or --install-dir<br>option).<br></div><br>I've tried googling, editing CMakeCache.txt (to remove the --prefix for Python installs), and just running the command manually. The first two failed, and the latter results in:<br>


<br><div style="margin-left: 40px;"><font face="courier new,monospace">&gt;&gt;&gt; import vtk<br>Traceback (most recent call last):<br>&nbsp; File "&lt;stdin&gt;", line 1, in &lt;module&gt;<br>&nbsp; File "/Users/kabir/Downloads/VTK-BUILD/Wrapping/Python/vtk/__init__.py", line 41, in &lt;module&gt;<br>


&nbsp;&nbsp;&nbsp; from common import *<br>&nbsp; File "/Users/kabir/Downloads/VTK-BUILD/Wrapping/Python/vtk/common.py", line 7, in &lt;module&gt;<br>&nbsp;&nbsp;&nbsp; from libvtkCommonPython import *<br>ImportError: No module named libvtkCommonPython<br>


<br><br></font></div><font face="arial,helvetica,sans-serif">I'd be grateful if someone could point me in the right direction.<br><br>Thanks,<br><br>~ K<br></font><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:<div><br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br></div></blockquote></div><br></div></div></blockquote></div><br>
</div></div></div><br>
_______________________________________________<br>Powered by <a href="http://www.kitware.com">www.kitware.com</a><br><br>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">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">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">http://www.vtk.org/mailman/listinfo/vtkusers</a><br></blockquote></div><br></div></body></html>