Hi Eric,<br><div class="gmail_quote"><br>Running  <font face="courier new,monospace">cd &quot;/Users/kabir/Downloads/VTK-BUILD/Wrapping/Python&quot; &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;">  File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;</span><br style="font-family: courier new,monospace;"></div><span style="font-family: courier new,monospace;">  File &quot;/Library/Python/2.5/site-packages/VTK-5.6.0-py2.5.egg/vtk/__init__.py&quot;, line 41, in &lt;module&gt;</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 &quot;/Library/Python/2.5/site-packages/VTK-5.6.0-py2.5.egg/vtk/common.py&quot;, line 7, in &lt;module&gt;</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;">&gt;&gt;&gt; </span><br><br></div>I&#39;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&#39;t remember seeing those particular errors, but have you tried running &quot;sudo python setup.py install&quot; from the [build]/Wrapping/Python directory? &quot;sudo make install&quot; 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&#39;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&#39;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: &#39;/usr/local/lib/python2.5/site-packages/test-easy-install-53618.pth&#39;<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&#39;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>  File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;<br>  File &quot;/Users/kabir/Downloads/VTK-BUILD/Wrapping/Python/vtk/__init__.py&quot;, line 41, in &lt;module&gt;<br>


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


<br><br></font></div><font face="arial,helvetica,sans-serif">I&#39;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>