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