[Python-modules-team] Bug#477953: python-enthought-chaco2: Example fails to run
Y. Wei
yichunwe at usc.edu
Fri Apr 25 21:54:59 UTC 2008
Package: python-enthought-chaco2
Version: 2.0.4-2
Severity: normal
One example in the examples/chaco2 fails to run and complains about font
initialization. I am actually running python2.5 as the default python but
reportbug list python2.4.
~$ python scales_test.py
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/enthought/enable2/abstract_window.py", line 283, in _paint
self.component.draw(gc, view_bounds=(0, 0, size[0], size[1]))
File "/usr/lib/python2.5/site-packages/enthought/chaco2/plot_component.py", line 89, in draw
self._draw(gc, view_bounds, mode)
File "/usr/lib/python2.5/site-packages/enthought/enable2/component.py", line 638, in _draw
self._dispatch_draw(layer, bb, view_bounds, mode)
File "/usr/lib/python2.5/site-packages/enthought/enable2/container.py", line 457, in _dispatch_draw
component._dispatch_draw(layer, gc, new_bounds, mode)
File "/usr/lib/python2.5/site-packages/enthought/enable2/component.py", line 667, in _dispatch_draw
handler(gc, view_bounds, mode)
File "/usr/lib/python2.5/site-packages/enthought/enable2/component.py", line 763, in _draw_underlay
underlay.overlay(self, gc, view_bounds, mode)
File "/usr/lib/python2.5/site-packages/enthought/chaco2/scales_axis.py", line 229, in overlay
self._draw_component(gc, view_bounds, mode, component)
File "/usr/lib/python2.5/site-packages/enthought/chaco2/scales_axis.py", line 253, in _draw_component
self._compute_tick_positions(gc, component)
File "/usr/lib/python2.5/site-packages/enthought/chaco2/scales_axis.py", line 442, in _compute_tick_positions
screenlow, screenhigh)
File "/usr/lib/python2.5/site-packages/enthought/chaco2/scales_tick_generator.py", line 34, in get_ticks_and_labels
charsize = metrics.get_full_text_extent(test_str)[0] / len(test_str)
File "/usr/lib/python2.5/site-packages/enthought/kiva/agg/agg.py", line 744, in get_full_text_extent
leading, descent, w, h = self.get_text_extent(text)
File "/usr/lib/python2.5/site-packages/enthought/kiva/agg/agg.py", line 728, in get_text_extent
raise RuntimeError, "Font not loaded/initialized."
RuntimeError: Font not loaded/initialized.
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/enthought/enable2/abstract_window.py", line 283, in _paint
self.component.draw(gc, view_bounds=(0, 0, size[0], size[1]))
File "/usr/lib/python2.5/site-packages/enthought/chaco2/plot_component.py", line 89, in draw
self._draw(gc, view_bounds, mode)
File "/usr/lib/python2.5/site-packages/enthought/enable2/component.py", line 638, in _draw
self._dispatch_draw(layer, bb, view_bounds, mode)
File "/usr/lib/python2.5/site-packages/enthought/enable2/container.py", line 457, in _dispatch_draw
component._dispatch_draw(layer, gc, new_bounds, mode)
File "/usr/lib/python2.5/site-packages/enthought/enable2/component.py", line 667, in _dispatch_draw
handler(gc, view_bounds, mode)
File "/usr/lib/python2.5/site-packages/enthought/enable2/component.py", line 763, in _draw_underlay
underlay.overlay(self, gc, view_bounds, mode)
File "/usr/lib/python2.5/site-packages/enthought/chaco2/scales_axis.py", line 229, in overlay
self._draw_component(gc, view_bounds, mode, component)
File "/usr/lib/python2.5/site-packages/enthought/chaco2/scales_axis.py", line 253, in _draw_component
self._compute_tick_positions(gc, component)
File "/usr/lib/python2.5/site-packages/enthought/chaco2/scales_axis.py", line 442, in _compute_tick_positions
screenlow, screenhigh)
File "/usr/lib/python2.5/site-packages/enthought/chaco2/scales_tick_generator.py", line 34, in get_ticks_and_labels
charsize = metrics.get_full_text_extent(test_str)[0] / len(test_str)
File "/usr/lib/python2.5/site-packages/enthought/kiva/agg/agg.py", line 744, in get_full_text_extent
leading, descent, w, h = self.get_text_extent(text)
File "/usr/lib/python2.5/site-packages/enthought/kiva/agg/agg.py", line 728, in get_text_extent
raise RuntimeError, "Font not loaded/initialized."
RuntimeError: Font not loaded/initialized.
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (500, 'testing'), (300, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.22-3-vserver-k7 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=zh_CN.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages python-enthought-chaco2 depends on:
ii libc6 2.7-4 GNU C Library: Shared libraries
ii libfreetype6 2.3.5-1+b1 FreeType 2 font engine, shared lib
ii libgcc1 1:4.3.0-1 GCC support library
ii libstdc++6 4.3.0-1 The GNU Standard C++ Library v3
ii libx11-6 2:1.0.3-7 X11 client-side library
ii python 2.4.4-6 An interactive high-level object-o
ii python-central 0.6.1 register and build utility for Pyt
ii python-enthought-traits-ui 2.0.4-2 User interface related modules for
ii python-numpy 1:1.0.4-7 Numerical Python adds a fast array
ii python-pkg-resources 0.6c8-3 Package Discovery and Resource Acc
ii python-wxgtk2.6 2.6.3.2.2-2 wxWidgets Cross-platform C++ GUI t
python-enthought-chaco2 recommends no packages.
-- no debconf information
More information about the Python-modules-team
mailing list