[vtkusers] install python wrapping on Mac 10.7
Shiyuan
gshy2014 at gmail.com
Fri Oct 26 18:07:47 EDT 2012
Hi David,
Thanks for replying. I got a similar error. But I did set up the
PYTHONPATH env variable and export it. But for some reason, it doesn't see
it. This is the error I got, the complete screen output for 'make install'
is also attached.
--------------------------------------------------
running cd "/Users/sgu/softwares/VTK/Wrapping/Python" &&
/opt/local/bin/python setup.py install --prefix="/Users/sgu/softwares" 2>&1
running install
Checking .pth file support in
/Users/sgu/softwares/lib/python2.7/site-packages/
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
-E -c pass
TEST FAILED: /Users/sgu/softwares/lib/python2.7/site-packages/ does NOT
support .pth files
error: bad install directory or PYTHONPATH
You are attempting to install a package to a directory that is not
on PYTHONPATH and which Python does not read ".pth" files from. The
installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:
/Users/sgu/softwares/lib/python2.7/site-packages/
and your PYTHONPATH environment variable currently contains:
''
On Fri, Oct 26, 2012 at 4:33 PM, David Gobbi <david.gobbi at gmail.com> wrote:
> Hi Shiyan,
>
> Did "make install" give an error, or did it just do nothing? I have seen
> the
> following error on some systems:
>
> "This directory does not currently exist. Please create it and try
> again,
> or choose a different installation directory (using the -d or
> --install-dir option)."
>
> If you get the error that I quoted above, then setup.py is telling you
> that it
> needs you to specify a site-packages directory that already exists and is
> in the python path.
>
> If "make install" didn't give any error, then your problem is something
> else.
>
> - David
>
>
> On Fri, Oct 26, 2012 at 2:01 PM, Shiyuan <gshy2014 at gmail.com> wrote:
> > Hi all,
> > I tried to install vtk 5.8.0 on my mac 10.7 with Xcode 4.2. The
> > `cmake` and `make` is successful but make install doesn't copy the python
> > module( eg. VTK/wrapping/Python/vtk/__init__.py) to the
> > $prefix-dir/lib/python2.7/site-packages. The values I set are
> > cmake -DCMAKE_INSTALL_PREFIX=$prefix-dir -DBUILD_SHARED_LIB=ON
> > -DVTK_WRAP_PYTHON=ON.
> >
> > Any step did I miss? Thanks.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20121026/51e5885d/attachment.htm>
More information about the vtkusers
mailing list