[vtkusers] How to use built vtk with python

Jothybasu K Selvaraj jothybasu at gmail.com
Fri Apr 2 14:04:30 EDT 2010


Hi all,

Now I am able to compile vtk 5.7 with python wrapping and it work fine
with vtkpython.exe. But when I try import vtk in python editor

it throws

File "<interactive input>", line 1, in <module>
  File "C:\Program
Files\VTK\lib\site-packages\vtk-5.7.0-py2.6.egg\vtk\__init__.py", line
41, in <module>
    from common import *
  File "C:\Program
Files\VTK\lib\site-packages\vtk-5.7.0-py2.6.egg\vtk\common.py", line
9, in <module>
    from vtkCommonPython import *
ImportError: DLL load failed: The specified procedure could not be found.

I have path(sys var) to "C:\Python26;C:\Program Files\VTK\bin" and
pythonpath(user var) to "C:\Program Files\VTK\bin;C:\Program
Files\VTK\lib\site-packages."

Thanks,

Jothy

On Mon, Mar 29, 2010 at 3:32 PM, Jothybasu K Selvaraj
<jothybasu at gmail.com> wrote:
> Going through this interesting link
> http://www.viz.tamu.edu/courses/viza658/08spring/tutorials/WinVTKInstall.html.
>
> Let you know if it works.
>
> Thanks,
> Jothy
>
> On Mon, Mar 29, 2010 at 3:28 PM, David Doria <daviddoria+vtk at gmail.com>
> wrote:
>>
>> On Mon, Mar 29, 2010 at 10:19 AM, Charl Botha <c.p.botha at tudelft.nl>
>> wrote:
>>>
>>> On 29 March 2010 16:13, Eric E. Monson <emonson at cs.duke.edu> wrote:
>>> > Is there someone who uses VTK and Python on Windows who could summarize
>>> > the
>>> > necessary PATH and PYTHONPATH settings (and anything else required)?
>>> > Right now the Unix settings are up on the Tutorials Wiki that David
>>> > Doria
>>> > sent the link to, but if you search around for the Windows version it's
>>> > a
>>> > little hard to piece it together from a lot of old postings (and I only
>>> > have
>>> > experience on Linux and Mac).
>>>
>>> My binaries page has a short explanation at the end:
>>>
>>> http://cpbotha.net/2009/08/13/python-2-6-enabled-vtk-5-4-windows-binaries/
>>>
>>> You need to add VTK\bin to the PATH, and VTK\bin;VTK\lib\site-packages
>>> to the PYTHONPATH.
>>>
>>> Clever people use the DRE, this sets everything up for you:
>>> http://code.google.com/p/devide/wiki/HelpDRE :)
>>> _
>>
>>
>> Jothy,
>> If you figure it out from that, you should definitely add it as a "Windows
>> configuration" section of the wiki link I sent.
>> Thanks,
>>
>> David
>> _______________________________________________
>> 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
>>
>
>



More information about the vtkusers mailing list