Hi

I'm having a problem using mayavi on linux. I run Fedora Core 6 on my
machine and I installed vtk, vtk-python, tkinter and tcl-python using yum
(package manager for FC6) and then installed the Mayavi 1.5 rpm that I got
from your site.
After installing, I tried running it and got the following error message:

[EMAIL PROTECTED] ~]$ mayavi
   Traceback (most recent call last):
     File "/usr/bin/mayavi", line 296, in ?
       import Main
   ImportError: No module named Main

I had gone through the forum on the sourceforge site and found out about the
test_vtk.py file. I ran the file and got the following output:

[EMAIL PROTECTED] MayaVi-1.5]$ python test_vtk.py
Testing if Tkinter is available...
OK - you have Tkinter
TclVersion = 8.4, TkVersion = 8.4
Testing if your overall installation is OK ...
OK, your installation seems fine!
Testing if VTK can be imported ...
OK, vtk found.
Testing if vtkCubeAxesActor2D can be instantiated ...
OK, vtkCubeAxesActor2D can be instantiated.
Testing a sample vtk program.  You should see a 300x300
     pixel window with a black background and with a magenta coloured
     Cone.  You can interact with the cone using the mouse.  To quit
     the test press q on the window.  If this test is successful then
     the basic vtk installation is OK.
Testing if vtkTkRenderWidget can be imported...
OK, vtkTkRenderWidget found.

The program ran fine till here. The cone that appeared on screen wasn't
magenta but a violet-blue colour. After the next alert, no window was seen
and the following error messages were printed.

Testing a sample vtk program that uses the
     vtkTkRenderWidget.  You should see a 300x300 pixel window with a
     black background and with a magenta coloured Cone.  You can
     interact with the cone using the mouse.  To quit the test press q
     on the window.  If this test is successful then the vtk
     installation is OK.  You should be able to use Tkinter and VTK
     properly.
Traceback (most recent call last):
  File "test_vtk.py", line 211, in ?
    test_vtk(root)
  File "test_vtk.py", line 157, in test_vtk
    test_vtk_tk_render_widget(root)
  File "test_vtk.py", line 102, in test_vtk_tk_render_widget
    pane = vtkTkRenderWidget(t,width=300,height=300)
  File "/usr/lib/python2.4/site-packages/vtk/tk/vtkTkRenderWidget.py", line
81, in __init__
       vtkLoadPythonTkWidgets(master.tk)
  File "/usr/lib/python2.4/site-packages/vtk/tk/vtkLoadPythonTkWidgets.py",
line 63, in vtkLoadPythonTkWidgets
       interp.call('load', filename)
_tkinter.TclError: couldn't load file "libvtkRenderingPythonTkWidgets.so":
libvtkRenderingPythonTkWidgets.so: cannot open shared object file: No such
file or directory

I couldn't understand what the problem was. Can you please help? I didn't
have any problems installing VTK and Mayavi on Windows XP and it ran fine
there. Thanks.

Anush
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
MayaVi-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mayavi-users

Reply via email to