<br><br><div class="gmail_quote">On Fri, Oct 26, 2012 at 5:10 PM, David Gobbi <span dir="ltr">&lt;<a href="mailto:david.gobbi@gmail.com" target="_blank">david.gobbi@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
So it didn&#39;t work when you typed this before &quot;make install&quot;?<br>
<br>
export PYTHONPATH=/Users/sgu/softwares/lib/python2.7/site-packages/<br>
<span class="HOEnZb"><font color="#888888"><br></font></span></blockquote><div>It doesn&#39;t work. Also I realize that  the following command is in the screen output and -E tells python to ignore the PYTHONPATH. Is it added in some CMake Variable? </div>
<div><br></div><div>opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -E -c pass</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class="HOEnZb"><font color="#888888">
 - David<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
On Fri, Oct 26, 2012 at 4:05 PM, Shiyuan &lt;<a href="mailto:gshy2014@gmail.com">gshy2014@gmail.com</a>&gt; wrote:<br>
&gt; Hi David,<br>
&gt;     Thanks for replying. I got a similar error. But I did set up the<br>
&gt; PYTHONPATH env variable and export it. But for some reason, it doesn&#39;t see<br>
&gt; it. This is the error I got, the  complete screen output for &#39;make install&#39;<br>
&gt; is also attached.<br>
&gt; --------------------------------------------------<br>
&gt; running cd &quot;/Users/sgu/softwares/VTK/Wrapping/Python&quot; &amp;&amp;<br>
&gt; /opt/local/bin/python setup.py install --prefix=&quot;/Users/sgu/softwares&quot;  2&gt;&amp;1<br>
&gt; running install<br>
&gt; Checking .pth file support in<br>
&gt; /Users/sgu/softwares/lib/python2.7/site-packages/<br>
&gt; /opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python<br>
&gt; -E -c pass<br>
&gt; TEST FAILED: /Users/sgu/softwares/lib/python2.7/site-packages/ does NOT<br>
&gt; support .pth files<br>
&gt; error: bad install directory or PYTHONPATH<br>
&gt;<br>
&gt; You are attempting to install a package to a directory that is not<br>
&gt; on PYTHONPATH and which Python does not read &quot;.pth&quot; files from.  The<br>
&gt; installation directory you specified (via --install-dir, --prefix, or<br>
&gt; the distutils default setting) was:<br>
&gt;<br>
&gt;     /Users/sgu/softwares/lib/python2.7/site-packages/<br>
&gt;<br>
&gt; and your PYTHONPATH environment variable currently contains:<br>
&gt;<br>
&gt;     &#39;&#39;<br>
&gt;<br>
&gt;<br>
&gt; On Fri, Oct 26, 2012 at 4:33 PM, David Gobbi &lt;<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hi Shiyan,<br>
&gt;&gt;<br>
&gt;&gt; Did &quot;make install&quot; give an error, or did it just do nothing?  I have seen<br>
&gt;&gt; the<br>
&gt;&gt; following error on some systems:<br>
&gt;&gt;<br>
&gt;&gt;   &quot;This directory does not currently exist.  Please create it and try<br>
&gt;&gt; again,<br>
&gt;&gt;   or choose a different installation directory (using the -d or<br>
&gt;&gt;   --install-dir option).&quot;<br>
&gt;&gt;<br>
&gt;&gt; If you get the error that I quoted above, then setup.py is telling you<br>
&gt;&gt; that it<br>
&gt;&gt; needs you to specify a site-packages directory that already exists and is<br>
&gt;&gt; in the python path.<br>
&gt;&gt;<br>
&gt;&gt; If &quot;make install&quot; didn&#39;t give any error, then your problem is something<br>
&gt;&gt; else.<br>
&gt;&gt;<br>
&gt;&gt;  - David<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Fri, Oct 26, 2012 at 2:01 PM, Shiyuan &lt;<a href="mailto:gshy2014@gmail.com">gshy2014@gmail.com</a>&gt; wrote:<br>
&gt;&gt; &gt; Hi all,<br>
&gt;&gt; &gt;        I tried to install vtk 5.8.0 on my mac 10.7 with Xcode 4.2. The<br>
&gt;&gt; &gt; `cmake` and `make` is successful but make install doesn&#39;t copy the<br>
&gt;&gt; &gt; python<br>
&gt;&gt; &gt; module( eg. VTK/wrapping/Python/vtk/__init__.py) to the<br>
&gt;&gt; &gt; $prefix-dir/lib/python2.7/site-packages.  The values I set are<br>
&gt;&gt; &gt; cmake -DCMAKE_INSTALL_PREFIX=$prefix-dir -DBUILD_SHARED_LIB=ON<br>
&gt;&gt; &gt; -DVTK_WRAP_PYTHON=ON.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Any step did I miss? Thanks.<br>
&gt;<br>
&gt;<br>
</div></div></blockquote></div><br>