From: Arnold Moene <arnold.moene@wu...> - 2004-03-04 08:31:52
I encountered a strange error (which I now remember was there already in
version 0.50). When I run (for example) the mathtext_demo.py, I get the
line 504, in points_to_pixels
TypeError: unsupported operand type(s) for /: 'array' and 'float'
When I replace that line 504 with (note the parentheses)
python is happy.
I don't understand why python doesn't like the present construct.
Possibly an odd combination of versions:
-> Python 2.3 (#2, Aug 31 2003, 17:27:29) [GCC 3.3.1 (Mandrake Linux 9.2
3.3.1-1mdk)] on linux2
-> Numeric 22.0
-> scipy cvs_version = (1,196,1591,4120)
PS: the mathtext-option was a very pleasant surprise to me (hadn't seen
any discussion on it on the mailing list).
From: John Hunter <jdhunter@ac...> - 2004-03-04 21:12:42
>>>>> "Arnold" == Arnold Moene <arnold.moene@...> writes:
Arnold> unsupported operand type(s) for /: 'array' and 'float'
This is a known bug with older versions of Numeric (eg 22.0) combined
with "from __future__ import division". It also affects current
versions of numarray. If you upgrade to the latest Numeric it will go
away. I try and code around it; in this case I forgot. I'll add the
Arnold> PS: the mathtext-option was a very pleasant surprise to me
Arnold> (hadn't seen any discussion on it on the mailing list).
Glad to hear it - there was some discussion on the matplotlib-devel
list. I'm sure you'll encounter strangeness and some parse errors
since it is not widely tested, so please alert me when you do (check
the KNOWN ISSUES section of
Get latest updates about Open Source Projects, Conferences and News.