Problems with mayavi, pyvtk
Lemniscate
d_blade8 at hotmail.com
Thu Jun 20 14:46:10 EDT 2002
Hey, thanks for the info. Here's the only problem... I still get
errors. Here is what happens when I try to import vtkpython...
>>> import vtkpython
Traceback (most recent call last):
File "<interactive input>", line 1, in ?
File "C:\Python22\Lib\site-packages\VTK\vtkpython.py", line 29, in ?
exec "from "+kit_name+" import *"
File "<string>", line 1, in ?
ImportError: DLL load failed: The specified procedure could not be
found.
>>> import sys
>>> sys.path
['', 'C:\\py22', 'C:\\vtk4', 'C:\\Python22\\Lib\\site-packages\\VTK',
'C:\\Program Files\\MayaVi'...
The main problem, though, is that I just want MayaVi to work from
inside python, here is one of the errors I get when I try to import it
(per the manual). I have pyvtk and it imports with absolutely no
problems, i can generate vtk files that open in the MayaVi.exe
program, I just can't use python to interface with MayaVi (I have the
MayaVi modules, not just the binary version, btw). I think it has
something to do with the vtk installations. I looked and it wants
'vtk'+kit+'Python' but all the zip files on the page you gave me (for
Python 2.2) don't have the files. I was willing to go back to Python
2.1 (his file list for those files showed the files I needed) but the
Python2.1 link is no longer valid. I also downloaded the vtkcore and
the vtkpython from the vtk page
(http://public.kitware.com/VTK/files/release/4.0/). Also, I added the
following to my PythonPath (in order to access the dlls): C:\Program
Files\vtk40\bin
Thanks a bunch,
Lem
>>> import mayavi
Traceback (most recent call last):
File "<interactive input>", line 1, in ?
File "C:\Python22\Lib\site-packages\mayavi\__init__.py", line 5, in
?
import Common, Base.Objects
File "C:\Python22\Lib\site-packages\mayavi\Base\__init__.py", line
19, in ?
import Objects
File "C:\Python22\Lib\site-packages\mayavi\Base\Objects.py", line
20, in ?
import Tkinter, vtkpython, math, tkColorChooser
File "C:\Python22\Lib\site-packages\VTK\vtkpython.py", line 29, in ?
exec "from "+kit_name+" import *"
File "<string>", line 1, in ?
ImportError: DLL load failed: The specified procedure could not be
found.
Fernando Pérez <fperez528 at yahoo.com> wrote in message news:<aeqme8$avd$1 at peabody.colorado.edu>...
> Lemniscate wrote:
>
> >
> > I just downloaded and installed the latest versions of pyvtk and
> > mayavi. However, when I try to follow the instructions at
> > http://mayavi.sourceforge.net/docs/guide/c827.html#VIZ-DATA for using
> > mayavi, I get the ImportError as below. For the like of me, I can't
> > seem to figure out why I don't have any vtkpython modules anywhere
> > (doing searches on the internet for the module hasn't been a big help
> > so far
>
> Well, google's second hit on 'vtkpython' is
> http://basic.netmeg.net/godzilla/, which sounds like what you want. At least
> it should be a good start.
>
> Cheers,
>
> f
More information about the Python-list
mailing list