[Numpy-discussion] numarray on Cygwin
Jochen Küpper
jochen at unc.edu
Mon May 6 15:38:02 EDT 2002
I am trying to run numarray on Cygwin.
(Where Numeric seems to work fine.)
In order to compile it I had to change the use of round to rint, as
Cygwin's C library (newlib) doesn't have round. The patch is
attached.
When I use it I don't get far, though:
,----
| > python
| Python 2.2 (#1, Dec 31 2001, 15:21:18)
| [GCC 2.95.3-5 (cygwin special)] on cygwin
| Type "help", "copyright", "credits" or "license" for more information.
| >>> import numarray as na
| >>> x = na.array([1.0, 2.0])
| >>> x
| Traceback (most recent call last):
| File "<stdin>", line 1, in ?
| File "/usr/lib/python2.2/site-packages/numarray/numarray.py", line 591, in __repr__
| MAX_LINE_WIDTH, PRECISION, SUPPRESS_SMALL, ', ', 1)
| File "/usr/lib/python2.2/site-packages/numarray/arrayprint.py", line 86, in array2string
| format, item_length = _floatFormat(data, precision, suppress_small)
| File "/usr/lib/python2.2/site-packages/numarray/arrayprint.py", line 140, in _floatFormat
| non_zero = numarray.abs(numarray.compress(numarray.not_equal(data, 0), data))
| File "/usr/lib/python2.2/site-packages/numarray/ufunc.py", line 474, in __call__
| cfunc, ufargs, scalar)
| File "/usr/lib/python2.2/site-packages/numarray/ufunc.py", line 312, in _doit
| apply(cfunc, ufargs)
| TypeError: 'PyCObject' object is not callable
| >>>
`----
If I print out the type of cfunc down in _doit, I get (the expected)
,----
| <type 'PyCObject'>
`----
Any ideas, probably some hints how to proceed?
Greetings,
Jochen
--
University of North Carolina phone: +1-919-962-4403
Department of Chemistry phone: +1-919-962-1579
Venable Hall CB#3290 (Kenan C148) fax: +1-919-843-6041
Chapel Hill, NC 27599, USA GnuPG key: 44BCCD8E
-------------- next part --------------
A non-text attachment was scrubbed...
Name: numarray.diff
Type: text/x-patch
Size: 6895 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20020506/51daebc6/attachment.bin>
More information about the NumPy-Discussion
mailing list