[vtkusers] VTK Python Wrapper on OSX

Eric E. Monson emonson at cs.duke.edu
Tue Jun 8 07:10:04 EDT 2010


Hey Kabir,

I don't remember seeing those particular errors, but have you tried running "sudo python setup.py install" from the [build]/Wrapping/Python directory? "sudo make install" from the [build] directory always fails to do the proper thing for my Python wrappers on OS X, but the former command works well for me.

If this doesn't help, then be sure to pass along to the list what versions of VTK and OS X you are dealing with, too.

Talk to you later,
-Eric

------------------------------------------------------
Eric E Monson
Duke Visualization Technology Group


On Jun 8, 2010, at 12:30 AM, Kabir Soorya wrote:

> Hi,
> 
> In trying to run make install for VTK, I get the following error:
> 
> Checking .pth file support in /usr/local/lib/python2.5/site-packages/
> error: can't create or remove files in install directory
> 
> The following error occurred while trying to add or remove files in the
> installation directory:
> 
>     [Errno 2] No such file or directory: '/usr/local/lib/python2.5/site-packages/test-easy-install-53618.pth'
> 
> The installation directory you specified (via --install-dir, --prefix, or
> the distutils default setting) was:
> 
>     /usr/local/lib/python2.5/site-packages/
> 
> 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).
> 
> I've tried googling, editing CMakeCache.txt (to remove the --prefix for Python installs), and just running the command manually. The first two failed, and the latter results in:
> 
> >>> import vtk
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "/Users/kabir/Downloads/VTK-BUILD/Wrapping/Python/vtk/__init__.py", line 41, in <module>
>     from common import *
>   File "/Users/kabir/Downloads/VTK-BUILD/Wrapping/Python/vtk/common.py", line 7, in <module>
>     from libvtkCommonPython import *
> ImportError: No module named libvtkCommonPython
> 
> 
> I'd be grateful if someone could point me in the right direction.
> 
> Thanks,
> 
> ~ K
> 
> _______________________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
> 
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100608/469bf8d3/attachment.htm>


More information about the vtkusers mailing list