[PYTHON MATRIX-SIG] Errors when importing the Numeric module

Fredrik Lundh fredrik_lundh@ivab.se
Wed, 3 Apr 1996 11:07:26 +0200


Just built Python 1.3 with NumericPython 0.31.

Can anyone explain the following... (ok, the first two lines are
obviously test stuff left in UserArray.py, but the exception)?

Python 1.3 (Apr  2 1996) [C]
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> import Numeric
UserArray([1,2,3], 'l')
UserArray([0.841470956802,0.909297406673,0.141120001674], 'f')
Traceback (innermost last):
  File "<stdin>", line 1, in ?
  File "/usr/local/lib/python/numeric/Numeric.py", line 9, in ?
    import string, types, math
  File "/usr/local/lib/python/types.py", line 12, in ?
    if vars(__builtins__).has_key('complex'):
TypeError: vars() argument must have __dict__ attribute

When importing it again, everything works fine.

BTW, it seems as if a Matrix<->PIL interface consists of ~2 lines of
code for each direction.  Watch this space for info.

	/F

=================
MATRIX-SIG  - SIG on Matrix Math for Python

send messages to: matrix-sig@python.org
administrivia to: matrix-sig-request@python.org
=================