[vtkusers] make install failure on OSX10.2.6? python import error
Karl Garsha
garsha at itg.uiuc.edu
Thu Sep 18 10:24:34 EDT 2003
Hello Daniel,
It is important that you download the CVS version of VTK for OS X with
Python2.3. Python2.3 nessecitated some changes to the way VTK creates
the Python wrappers. This should fix the problem you are experiencing.
To accomplish this, make sure you are connected to the internet and open
a terminal. Type:
cvs -d :pserver:anonymous at public.kitware.com:/cvsroot/VTK login
(respond with password vtk)
next, check out the source code:
cvs -d :pserver:anonymous at public.kitware.com:/cvsroot/VTK checkout VTK
You should probably make sure you have the most recent version of CMake
as well.
Regards,
Karl G.
Dr. Daniel James White PhD wrote:
> Hi all,
>
> After some effort with cmake and CMakeCache.txt editing I have
> managed to compile and link vtk using carbon windowing interface with
> python and tcl wrapping. The make install step gave no errors.
> I then ran the setup.py install script for the python wrapping (
> VTK/Wrapping/Python/setup.py )
> No problems there.
>
> However when attempting to import vtk within the python interpreter,
> I get an import error, eg
>
> [danwhites-ibook:/Applications/Mayavi/mayavi] danwhite% pythonw
> Python 2.3 (#2, Jul 30 2003, 11:45:28)
> [GCC 3.1 20020420 (prerelease)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import vtk
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> File
> "/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
> packages/vtk_python/vtk/__init__.py", line 27, in ?
> from common import *
> File
> "/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
> packages/vtk_python/vtk/common.py", line 7, in ?
> from libvtkCommonPython import *
> ImportError: Failure linking new module: libvtkCommonPythonD.dylib:
> dyld:
> /Library/Frameworks/Python.framework/Versions/2.3/Resources/Python.app/
> Contents/MacOS/Python can't open library: libvtkCommonPythonD.dylib
> (No such file or directory, errno = 2)
>
> >>>
>
> I am trying to run mayavi and of course this problem prevents it from
> working.
>
> The file libvtkCommonPythonD.dylib was built in the make process
> (in VTK/Common/libvtkCommonPython.dylib),
> But maybe it wasn't installed to the location it is being looked for
> in? This is the only copy on my system.
>
> Do I need to specify something extra in my CMakeCache.txt file to get
> this file (and maybe others) installed in the right place?
>
> The test programs in the VTK/bin directory, eg TimeRenderer work fine.
>
> any ideas anyone?
>
> I'd love to get Mayavi working on my iBook, so I can show off the
> great new volume rendering module at the ELSO conference in Germany
> this weekend....
>
> cheers
>
> Dan
>
>
>
> Dr. Daniel James White BSc. (Hons.) PhD
> Cell Biology
> Department of biological and environmental science
> PO Box 35
> University of Jyväskylä
> Jyväskylä FIN 40014
> Finland
> +358 (0)14 260 4183 (work)
> +358 (0)414740463 (mob)
>
> http://www.chalkie.org.uk
> dan at chalkie.org.uk
> white at cc.jyu.fi
> _______________________________________________
> This is the private VTK discussion list. Please keep messages
> on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
--
Karl Garsha
Light Microscopy Specialist
Imaging Technology Group
Beckman Institute for Advanced Science and Technology
University of Illinois at Urbana-Champaign
405 North Mathews Avenue
Urbana, IL 61801
Office: B650J
Phone: 217.244.6292
Fax: 217.244.6219
Mobile: 217.390.1874
www.itg.uiuc.edu
More information about the vtkusers
mailing list