IndexError: Unexpected SeqBase<T> length.

Hi all,

If I run the attached test I obtain an

IndexError: Unexpected SeqBase<T> length

python -i test_struve.py --verbose-helpful
$HOME=/home/nwagner
CONFIGDIR=/home/nwagner/.matplotlib
matplotlib data path /usr/local/lib64/python2.5/site-packages/matplotlib/mpl-data
loaded rc file /home/nwagner/.matplotlib/matplotlibrc
matplotlib version 0.98.0
verbose.level helpful
interactive is False
units is False
platform is linux2
Using fontManager instance from /home/nwagner/.matplotlib/fontManager.cache
numerix numpy 1.2.0.dev5264
backend GTKAgg version 2.10.3
Found dvipng version 1.5
Traceback (most recent call last):
   File "/usr/local/lib64/python2.5/site-packages/matplotlib/backends/backend_gtk.py", line 331, in expose_event
     self._render_figure(self._pixmap, w, h)
   File "/usr/local/lib64/python2.5/site-packages/matplotlib/backends/backend_gtkagg.py", line 75, in _render_figure
     FigureCanvasAgg.draw(self)
   File "/usr/local/lib64/python2.5/site-packages/matplotlib/backends/backend_agg.py", line 256, in draw
     self.figure.draw(self.renderer)
   File "/usr/local/lib64/python2.5/site-packages/matplotlib/figure.py", line 825, in draw
     for a in self.axes: a.draw(renderer)
   File "/usr/local/lib64/python2.5/site-packages/matplotlib/axes.py", line 1502, in draw
     a.draw(renderer)
   File "/usr/local/lib64/python2.5/site-packages/matplotlib/axis.py", line 674, in draw
     tick.draw(renderer)
   File "/usr/local/lib64/python2.5/site-packages/matplotlib/axis.py", line 173, in draw
     self.label1.draw(renderer)
   File "/usr/local/lib64/python2.5/site-packages/matplotlib/text.py", line 764, in draw
     Text.draw(self, renderer)
   File "/usr/local/lib64/python2.5/site-packages/matplotlib/text.py", line 298, in draw
     bbox, info = self._get_layout(renderer)
   File "/usr/local/lib64/python2.5/site-packages/matplotlib/text.py", line 198, in _get_layout
     line, self._fontproperties, ismath=self.is_math_text(line))
   File "/usr/local/lib64/python2.5/site-packages/matplotlib/backends/backend_agg.py", line 128, in get_text_width_height_descent
     Z = texmanager.get_grey(s, size, self.dpi)
   File "/usr/local/lib64/python2.5/site-packages/matplotlib/texmanager.py", line 367, in get_grey
     X = read_png(os.path.join(self.texcache, pngfile))
IndexError: Unexpected SeqBase<T> length.

Any idea ?

Nils

test_struve.py (169 Bytes)

Probably related to my recent PNG refactoring. (That silly error message is related to a different number of arguments being provided than expected). I'll look into it.

Cheers,
Mike

Nils Wagner wrote:

···

Hi all,

If I run the attached test I obtain an

IndexError: Unexpected SeqBase<T> length

python -i test_struve.py --verbose-helpful
$HOME=/home/nwagner
CONFIGDIR=/home/nwagner/.matplotlib
matplotlib data path /usr/local/lib64/python2.5/site-packages/matplotlib/mpl-data
loaded rc file /home/nwagner/.matplotlib/matplotlibrc
matplotlib version 0.98.0
verbose.level helpful
interactive is False
units is False
platform is linux2
Using fontManager instance from /home/nwagner/.matplotlib/fontManager.cache
numerix numpy 1.2.0.dev5264
backend GTKAgg version 2.10.3
Found dvipng version 1.5
Traceback (most recent call last):
  File "/usr/local/lib64/python2.5/site-packages/matplotlib/backends/backend_gtk.py", line 331, in expose_event
    self._render_figure(self._pixmap, w, h)
  File "/usr/local/lib64/python2.5/site-packages/matplotlib/backends/backend_gtkagg.py", line 75, in _render_figure
    FigureCanvasAgg.draw(self)
  File "/usr/local/lib64/python2.5/site-packages/matplotlib/backends/backend_agg.py", line 256, in draw
    self.figure.draw(self.renderer)
  File "/usr/local/lib64/python2.5/site-packages/matplotlib/figure.py", line 825, in draw
    for a in self.axes: a.draw(renderer)
  File "/usr/local/lib64/python2.5/site-packages/matplotlib/axes.py", line 1502, in draw
    a.draw(renderer)
  File "/usr/local/lib64/python2.5/site-packages/matplotlib/axis.py", line 674, in draw
    tick.draw(renderer)
  File "/usr/local/lib64/python2.5/site-packages/matplotlib/axis.py", line 173, in draw
    self.label1.draw(renderer)
  File "/usr/local/lib64/python2.5/site-packages/matplotlib/text.py", line 764, in draw
    Text.draw(self, renderer)
  File "/usr/local/lib64/python2.5/site-packages/matplotlib/text.py", line 298, in draw
    bbox, info = self._get_layout(renderer)
  File "/usr/local/lib64/python2.5/site-packages/matplotlib/text.py", line 198, in _get_layout
    line, self._fontproperties, ismath=self.is_math_text(line))
  File "/usr/local/lib64/python2.5/site-packages/matplotlib/backends/backend_agg.py", line 128, in get_text_width_height_descent
    Z = texmanager.get_grey(s, size, self.dpi)
  File "/usr/local/lib64/python2.5/site-packages/matplotlib/texmanager.py", line 367, in get_grey
    X = read_png(os.path.join(self.texcache, pngfile))
IndexError: Unexpected SeqBase<T> length.

Any idea ?

Nils
------------------------------------------------------------------------

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
------------------------------------------------------------------------

_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA

This should now be fixed in SVN.

Michael Droettboom wrote:

···

Probably related to my recent PNG refactoring. (That silly error message is related to a different number of arguments being provided than expected). I'll look into it.

Cheers,
Mike

Nils Wagner wrote:
  

Hi all,

If I run the attached test I obtain an

IndexError: Unexpected SeqBase<T> length

python -i test_struve.py --verbose-helpful
$HOME=/home/nwagner
CONFIGDIR=/home/nwagner/.matplotlib
matplotlib data path /usr/local/lib64/python2.5/site-packages/matplotlib/mpl-data
loaded rc file /home/nwagner/.matplotlib/matplotlibrc
matplotlib version 0.98.0
verbose.level helpful
interactive is False
units is False
platform is linux2
Using fontManager instance from /home/nwagner/.matplotlib/fontManager.cache
numerix numpy 1.2.0.dev5264
backend GTKAgg version 2.10.3
Found dvipng version 1.5
Traceback (most recent call last):
  File "/usr/local/lib64/python2.5/site-packages/matplotlib/backends/backend_gtk.py", line 331, in expose_event
    self._render_figure(self._pixmap, w, h)
  File "/usr/local/lib64/python2.5/site-packages/matplotlib/backends/backend_gtkagg.py", line 75, in _render_figure
    FigureCanvasAgg.draw(self)
  File "/usr/local/lib64/python2.5/site-packages/matplotlib/backends/backend_agg.py", line 256, in draw
    self.figure.draw(self.renderer)
  File "/usr/local/lib64/python2.5/site-packages/matplotlib/figure.py", line 825, in draw
    for a in self.axes: a.draw(renderer)
  File "/usr/local/lib64/python2.5/site-packages/matplotlib/axes.py", line 1502, in draw
    a.draw(renderer)
  File "/usr/local/lib64/python2.5/site-packages/matplotlib/axis.py", line 674, in draw
    tick.draw(renderer)
  File "/usr/local/lib64/python2.5/site-packages/matplotlib/axis.py", line 173, in draw
    self.label1.draw(renderer)
  File "/usr/local/lib64/python2.5/site-packages/matplotlib/text.py", line 764, in draw
    Text.draw(self, renderer)
  File "/usr/local/lib64/python2.5/site-packages/matplotlib/text.py", line 298, in draw
    bbox, info = self._get_layout(renderer)
  File "/usr/local/lib64/python2.5/site-packages/matplotlib/text.py", line 198, in _get_layout
    line, self._fontproperties, ismath=self.is_math_text(line))
  File "/usr/local/lib64/python2.5/site-packages/matplotlib/backends/backend_agg.py", line 128, in get_text_width_height_descent
    Z = texmanager.get_grey(s, size, self.dpi)
  File "/usr/local/lib64/python2.5/site-packages/matplotlib/texmanager.py", line 367, in get_grey
    X = read_png(os.path.join(self.texcache, pngfile))
IndexError: Unexpected SeqBase<T> length.

Any idea ?

Nils
------------------------------------------------------------------------

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
------------------------------------------------------------------------

_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
    
--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA