[vtkusers] Installation vtk 5.2.0 on OS X and PYTHONPATH

Dan White white at mpi-cbg.de
Thu Sep 18 12:24:51 EDT 2008


Hi Antoine

sometimes you might need to set
LD_LIBRARY_PATH
to point at the vtkWhateverPythonD.so
I just had to do that on ubuntu linux 64 bit with vtk 5.2
and have had to do it on OSX in the past also.




Begin forwarded message:

> Message: 2
> Date: Wed, 17 Sep 2008 11:05:18 -0600
> From: Antoine Dechaume <boolegue at gmail.com>
> Subject: [vtkusers] Installation vtk 5.2.0 on OS X and PYTHONPATH
> To: vtkusers <vtkusers at vtk.org>
> Message-ID: <ADBF0097-C07E-4D83-AE7A-F82DC5E6CA79 at gmail.com>
> Content-Type: text/plain; charset="us-ascii"; Format="flowed";
> 	DelSp="yes"
>
> Hello,
>
> I compiled and tested successfully vtk 5.2.0 on OS X 10.5 intel, with
> python wrapping on.
> At installation step, I got the following problem
>
> running cd "/Users/tonio/Downloads/Science/VTK/build/Wrapping/Python"
> && /usr/bin/python2.5 setup.py install --prefix="/usr/local"  2>&1
> running install
> Checking .pth file support in /usr/local/lib/python2.5/site-packages/
> /System/Library/Frameworks/Python.framework/Versions/2.5/Resources/
> Python.app/Contents/MacOS/Python -E -c pass
> TEST FAILED: /usr/local/lib/python2.5/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:
>
>     /usr/local/lib/python2.5/site-packages/
>
> and your PYTHONPATH environment variable currently contains:
>
>     ''
>
> Here are some of your options for correcting the problem:
>
> * You can choose a different installation directory, i.e., one that is
>   on PYTHONPATH or supports .pth files
>
> * You can add the installation directory to the PYTHONPATH environment
>   variable.  (It must then also be on PYTHONPATH whenever you run
>   Python and want to use the package(s) you are installing.)
>
> * You can set up the installation directory to support ".pth" files by
>   using one of the approaches described here:
>
>   http://peak.telecommunity.com/EasyInstall.html#custom-installation-locations
>
> Please make the appropriate changes for your system and try again.
>
>
> But I do have PYTHONPATH=/usr/local/lib/python2.5/site-packages !!!
>
> Thanks for any help.
>
> Antoine.

Dr. Daniel James White BSc. (Hons.) PhD
Senior Microscopist / Image Processing and Analysis
Light Microscopy Facility
Max Planck Institute of Molecular Cell Biology and Genetics
Pfotenhauerstrasse 108
01307 DRESDEN
Germany


New Mobile Number!!!

+49 (0)15114966933 (German Mobile)
+49  (0)351 210 2627 (Work phone at MPI-CBG)
+49  (0)351 210 1078 (Fax MPI-CBG LMF)

http://www.bioimagexd.net
http://www.chalkie.org.uk
dan at chalkie.org.uk
( white at mpi-cbg.de )








More information about the vtkusers mailing list