[Bug 425957] [NEW] type mismatch causes chaco examples to fail
Evan Jeffrey
ejeffrey at gmail.com
Mon Sep 7 21:30:46 UTC 2009
Public bug reported:
Binary package hint: python-enable
Running the chaco examples, such as /usr/share/doc/python-
chaco/examples/basic/traits_editor.py fails to display properly and
produces error messages:
Traceback (most recent call last):
File "/usr/lib/python2.6/dist-packages/enthought/enable/abstract_window.py", line 340, in _paint
self.component.draw(gc, view_bounds=(0, 0, size[0], size[1]))
File "/usr/lib/python2.6/dist-packages/enthought/enable/component.py", line 416, in draw
self._draw(gc, view_bounds, mode)
File "/usr/lib/python2.6/dist-packages/enthought/enable/component.py", line 718, in _draw
self._dispatch_draw(layer, bb, view_bounds, mode)
File "/usr/lib/python2.6/dist-packages/enthought/enable/container.py", line 326, in _dispatch_draw
component._dispatch_draw(layer, gc, new_bounds, mode)
File "/usr/lib/python2.6/dist-packages/enthought/enable/component.py", line 747, in _dispatch_draw
handler(gc, view_bounds, mode)
File "/usr/lib/python2.6/dist-packages/enthought/enable/component.py", line 844, in _draw_underlay
underlay.overlay(self, gc, view_bounds, mode)
File "/usr/lib/python2.6/dist-packages/enthought/chaco/axis.py", line 204, in overlay
self._draw_component(gc, view_bounds, mode, component)
File "/usr/lib/python2.6/dist-packages/enthought/chaco/axis.py", line 241, in _draw_component
self._draw_axis_line(gc, self._origin_point, self._end_axis_point)
File "/usr/lib/python2.6/dist-packages/enthought/chaco/axis.py", line 291, in _draw_axis_line
gc.move_to(*around(startpoint))
File "/usr/lib/python2.6/dist-packages/enthought/kiva/agg/agg.py", line 864, in move_to
def move_to(*args): return _agg.GraphicsContextArray_move_to(*args)
TypeError: in method 'GraphicsContextArray_move_to', argument 2 of type 'double'
According to some other bug reports I found, this is due to a bug in
code generated by swig, and some confusion between C 'float' and
'double' types. It shows up when python-enable is built under
python2.6.
Here is the upstream bug report:
https://svn.enthought.com/enthought/ticket/1776
That report suggests a work-around by editing /usr/lib/python2.6/dist-
packages/enthought/kiva/agg/agg.py which appears to work correctly for
me.
** Affects: python-enable (Ubuntu)
Importance: Undecided
Status: New
--
type mismatch causes chaco examples to fail
https://bugs.launchpad.net/bugs/425957
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
More information about the universe-bugs
mailing list