'f' key (focus shift) causes exception when using mayavi2
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mayavi2 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Normally, you can press 'f' while focused on a mayavi window and then click to change the focus point (the point about which rotations occur). However, when I do that in my version (see attached data added by ubuntu-bug), I get an uncaught exception:
ipython -wthread
In [1]: from mayavi import mlab
In [2]: mlab.figure(
In [3]: mlab.points3d(
In [4]: -------
TypeError Traceback (most recent call last)
/usr/lib/
482 x = event.GetX()
483 y = self._vtk_
--> 484 data = self.picker.
485 coord = data.coordinate
486 if coord is not None:
/usr/lib/
376
377 # Use the cell picker to get the data that needs to be probed.
--> 378 self.cellpicker
379
380 wp = self.worldpicker
/usr/lib/
151 """
152 my_args = [deref_vtk(x) for x in args]
--> 153 ret = self._wrap_
154 return ret
155
/usr/lib/
521 self._in_set += 1
522 mtime = self._wrapped_
--> 523 ret = vtk_method(*args)
524 self._in_set -= 1
525 if self._wrapped_
TypeError: function takes exactly 4 arguments (2 given)
The function wrapped here was given a tuple containing the click coordinates, but expected three individual coordinates.
See /usr/share/
# Use the cell picker to get the data that needs to be probed.
If I remove the parentheses, converting the first tuple into a set of three args in the first two lines of that function:
# Use the cell picker to get the data that needs to be probed.
this problem goes away.
Could this possibly be due to some sort of version mismatch between components (tvtk and mayavi for example)? Or is this just an isolated bug. I don't know.
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: mayavi2 4.0.0-1ubuntu1
ProcVersionSign
Uname: Linux 3.0.0-15-
NonfreeKernelMo
ApportVersion: 1.23-0ubuntu4
Architecture: i386
Date: Mon Feb 6 10:12:55 2012
InstallationMedia: Xubuntu 11.10 "Oneiric Ocelot" - Release i386 (20111012)
ProcEnviron:
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: mayavi2
UpgradeStatus: No upgrade log present (probably fresh install)