[wxPython-users] Re: Incomprehensible Plot Error (?)

Telly Williams TWilliams001 at elp.rr.com
Fri May 11 05:57:36 PDT 2007


Christian K. wrote:
> Telly Williams wrote:
>> Hi,
>>
>>     I just migrated to Linux (Debian) and when I try to run my script
>> that ran under Windows I get the following error message:
>>
>> -----------------------------------------
>>
>> Traceback (most recent call last):
>>   File "DJSuite.py", line 265, in ?
>>     frame = TestFrame(None, -1, 'DJ Suite')
>>   File "DJSuite.py", line 199, in __init__
>>     client.Draw(gc, xAxis=(0,40), yAxis=(0,200))
>>   File
>> "/usr/lib/python2.4/site-packages/wx-2.6-gtk2-unicode/wx/lib/plot.py",
>> li ne 984, in Draw
>>     self._adjustScrollbars()
>>   File
>> "/usr/lib/python2.4/site-packages/wx-2.6-gtk2-unicode/wx/lib/plot.py",
>> li ne 1454, in _adjustScrollbars
>>     r_max = list(self.GetXMaxRange())
>>   File
>> "/usr/lib/python2.4/site-packages/wx-2.6-gtk2-unicode/wx/lib/plot.py",
>> li ne 845, in GetXMaxRange
>>     p1, p2 = graphics.boundingBox()     # min, max points of graphics
>>   File
>> "/usr/lib/python2.4/site-packages/wx-2.6-gtk2-unicode/wx/lib/plot.py",
>> li ne 357, in boundingBox
>>     p1, p2 = self.objects[0].boundingBox()
>>   File
>> "/usr/lib/python2.4/site-packages/wx-2.6-gtk2-unicode/wx/lib/plot.py",
>> li ne 142, in boundingBox
>>     minXY= _Numeric.minimum.reduce(self.points)
>> TypeError: function not supported for these types, and can't coerce to
>> supported  types
>
> Could you put a
> print type(self.points)
> before that line and tell us what it says?
>
> Which numeric package are you using? Numpy? Numeric? Which Version?
>
> Christian

Everyone (Christian),

    My apologies.  I installed Numeric but not Numpy.  The problem is
solved.  Thank you Christian.

VR

T Williams





More information about the wxpython-users mailing list