Public bug reported:
Binary package hint: python-chaco
I am trying to use Enthought Chaco under Ubuntu but nothing works. From
all the examples in the /usr/share/doc/python-chaco/examples/ directory
only one (simple_polar.py) works. All others have unmet module
requirements, give errors and lots of deprecation warnings.
Versions (all from the Ubuntu repositories):
* Xubuntu 9.10 (Karmic Koala)
* python-chaco 3.1.0-1
* python2.6 2.6.4-0ubuntu3
Examples of unmet module requirements:
* from scipy.special import jn
ImportError: No module named scipy.special
* from pyparsing import (Literal, Word, CaselessLiteral,
ImportError: No module named pyparsing
* from configobj import ConfigObj
ImportError: No module named configobj
(python-scipy should probably be at least a recommended dependency.)
Minimal example that doesn't work (test.py):
from numpy import *
from enthought.chaco.shell import *
x = linspace(-2*pi, 2*pi, 100)
y = sin(x)
plot(x, y, 'r-')
title("First plot")
ytitle("sin(x)")
show()
This gives similar errors to examples above:
$ python test.py
/usr/lib/python2.6/dist-packages/enthought/kiva/agg/plat_support.py:126:
DeprecationWarning: PyArray_FromDimsAndDataAndDescr: use PyArray_NewFromDescr.
self.bmp_array = pixel_map_as_unowned_array(self)
/usr/lib/python2.6/dist-packages/enthought/kiva/fonttools/font_manager.py:1064:
UserWarning: Could not match sans-serif, normal, normal. Returning
/usr/share/fonts/truetype/thai/Purisa-BoldOblique.ttf
warnings.warn('Could not match %s, %s, %s. Returning %s' % (name, style,
variant, self.defaultFont))
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
310, in _dispatch_draw
my_handler(gc, view_bounds, mode)
File "/usr/lib/python2.6/dist-packages/enthought/enable/container.py", line
352, in _draw_container_underlay
self._draw_underlay(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/scales_axis.py", line
187, in overlay
self._draw_component(gc, view_bounds, mode, component)
File "/usr/lib/python2.6/dist-packages/enthought/chaco/scales_axis.py", line
215, in _draw_component
self._draw_axis_line(gc, self._origin_point, self._end_axis_point)
File "/usr/lib/python2.6/dist-packages/enthought/chaco/scales_axis.py", line
261, 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'
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
310, in _dispatch_draw
my_handler(gc, view_bounds, mode)
File "/usr/lib/python2.6/dist-packages/enthought/enable/container.py", line
352, in _draw_container_underlay
self._draw_underlay(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/scales_axis.py", line
187, in overlay
self._draw_component(gc, view_bounds, mode, component)
File "/usr/lib/python2.6/dist-packages/enthought/chaco/scales_axis.py", line
215, in _draw_component
self._draw_axis_line(gc, self._origin_point, self._end_axis_point)
File "/usr/lib/python2.6/dist-packages/enthought/chaco/scales_axis.py", line
261, 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'
$
** Affects: python-chaco (Ubuntu)
Importance: Undecided
Status: New
--
python-chaco package completely broken
https://bugs.launchpad.net/bugs/560111
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs