Empty or error streamline demo

13 views
Skip to first unread message

Дмитрий Долгов

unread,
Sep 29, 2012, 12:11:56 PM9/29/12
to scit...@googlegroups.com
I have installed scitools on gentoo (with vtk,matplotlib and etc.)
When i run streamline_demo1.py with matplotlib backend, i'd got empty result.
When i run streamline_demo1.py with vtk backend, i'd got error:
 
Traceback (most recent call last):
  File "streamline_demo1.py", line 27, in <module>
    streamline(x, y, z, u, v, w, sx, sy, sz,view=3, axis=[60,140,10,60,-5,20])
  File "/usr/lib64/python2.7/site-packages/scitools/easyviz/common.py", line 3799, in streamline
    self._replot()
  File "/usr/lib64/python2.7/site-packages/scitools/easyviz/vtk_.py", line 1177, in _replot
    self._create_vtk_data()
  File "/usr/lib64/python2.7/site-packages/scitools/easyviz/vtk_.py", line 1031, in _create_vtk_data
    sgrid = self._get_2d_structured_grid(item, vectors=True)
  File "/usr/lib64/python2.7/site-packages/scitools/easyviz/vtk_.py", line 540, in _get_2d_structured_grid
    sgrid.SetDimensions(item.getp('dims'))
TypeError: argument 1: expected a sequence of 3 values, got 1 values
 
With other streamline demo and vtk backend is there dark screen as result. What is the error cause? How i can fix this error?

Дмитрий Долгов

unread,
Sep 30, 2012, 11:39:49 AM9/30/12
to scit...@googlegroups.com
I found the cause of the error - i compiled vtk without tk support.

суббота, 29 сентября 2012 г., 16:11:56 UTC пользователь Дмитрий Долгов написал:
Reply all
Reply to author
Forward
0 new messages