<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>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 class="Apple-style-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; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">------------------------------------------------------<br>Eric E Monson<br>Duke Visualization Technology Group<br></span>
</div>
<div><br></div><br><div><div>On Jun 8, 2010, at 12:30 AM, Kabir Soorya wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">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>
_______________________________________________<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>