[vtkusers] new to vtk / python - some probs
David Gobbi
david.gobbi at gmail.com
Fri Apr 1 14:34:06 EDT 2011
>From the error that was reported, python seems to have located
vtkCommonPython.pyd but was not able to load vtkCommon.dll.
The VTK python install assumes that VTK itself has already been
installed, i.e. that the VTK DLLs are somewhere in the PATH.
You can copy the DLLsl into site-packages/vtk if you want the
python install of VTK to be fully self-contained.
Let me know what your experiences are when you try VTK/wxpython.
I'm not sure if it still works.
- David
On Fri, Apr 1, 2011 at 11:51 AM, Dean Inglis <dean.inglis at camris.ca> wrote:
> I am exploring use of python and wxWidgets with VTK.
> I have downloaded and installed Python 2.6 and wxWidgets 2.83 on Win7
> with the following installers:
>
> python-2.6.4.msi
> numpy-1.3.0-win32-superpack-python2.6.exe
> scipy-0.7.1-win32-superpack-python2.6.exe
> wxPython2.8-win32-ansi-2.8.10.1-py26.exe
>
> I have compiled VTK latest git shared build, debug,
> 32 bit with VS 2010. In my build dir, vtk/Wrapping/Python
> I ran
> python setup.py install --prefix=C:\Python26 BUILD_TYPE=Debug
> swtiched to my source dir
> VTK/Examples/Tutorial/Step1/Python
> ran
> python Cone.py
> and I get the following
> Traceback (most recent call last):
> File "Cone.py", line 13, in <module>
> import vtk
> File "C:\Python26\lib\site-packages\vtk\__init__.py", line 41, in <module>
> from vtkCommonPython import *
> ImportError: DLL load failed: The specified module could not be found.
>
> are there other path or envars that need setting?
> _______________________________________________
> 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