Hi Eric,<br><div class="gmail_quote"><br>Running <font face="courier new,monospace">cd "/Users/kabir/Downloads/VTK-BUILD/Wrapping/Python" && /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;">>>> 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;"> File "<stdin>", line 1, in <module></span><br style="font-family: courier new,monospace;"></div><span style="font-family: courier new,monospace;"> File "/Library/Python/2.5/site-packages/VTK-5.6.0-py2.5.egg/vtk/__init__.py", line 41, in <module></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> from common import *</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> File "/Library/Python/2.5/site-packages/VTK-5.6.0-py2.5.egg/vtk/common.py", line 7, in <module></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> 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;"> 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;"> Reason: image not found</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">>>> </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"><<a href="mailto:emonson@cs.duke.edu" target="_blank">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 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> [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> /usr/local/lib/python2.5/site-packages/<br><br>This directory does not currently exist. 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">>>> import vtk<br>Traceback (most recent call last):<br> File "<stdin>", line 1, in <module><br> File "/Users/kabir/Downloads/VTK-BUILD/Wrapping/Python/vtk/__init__.py", line 41, in <module><br>
from common import *<br> File "/Users/kabir/Downloads/VTK-BUILD/Wrapping/Python/vtk/common.py", line 7, in <module><br> 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>