numarray 0.8 and MacOSX

import numarray Traceback (most recent call last): File "<stdin>", line 1, in ? File "/home/users/f/fa/falted/bin-macosx//lib/python/numarray/__init__.py",
Hi, I'm trying to compile numarray 0.8 on a MacOSX (Darwin 6.8). The compilation process seemed to go well, but an error happens when trying to import numarray: [falted@ppc-osx2:numarray-0.8]$ python Python 2.2 (#1, 10/24/02, 16:10:52) [GCC Apple cpp-precomp 6.14] on darwin Type "help", "copyright", "credits" or "license" for more information. line 11, in ? from numarrayall import * File "/home/users/f/fa/falted/bin-macosx//lib/python/numarray/numarrayall.py", line 2, in ? from generic import * File "/home/users/f/fa/falted/bin-macosx//lib/python/numarray/generic.py", line 1030, in ? import numarraycore as _nc File "/home/users/f/fa/falted/bin-macosx//lib/python/numarray/numarraycore.py", line 29, in ? PyINT_TYPES = { NameError: name 'bool' is not defined I know that there are available ports of numarray 0.8 to Darwin, but, for a series of reasons, I prefer to compile it for myself. Anyone can provide a hint so as to compile it cleanly? Thanks, -- Francesc Alted

On Tue, 2004-01-20 at 12:44, Francesc Alted wrote:
Hi,
I'm trying to compile numarray 0.8 on a MacOSX (Darwin 6.8). The compilation process seemed to go well, but an error happens when trying to import numarray:
import numarray Traceback (most recent call last): File "<stdin>", line 1, in ? File "/home/users/f/fa/falted/bin-macosx//lib/python/numarray/__init__.py",
[falted@ppc-osx2:numarray-0.8]$ python Python 2.2 (#1, 10/24/02, 16:10:52) [GCC Apple cpp-precomp 6.14] on darwin Type "help", "copyright", "credits" or "license" for more information. line 11, in ? from numarrayall import * File "/home/users/f/fa/falted/bin-macosx//lib/python/numarray/numarrayall.py", line 2, in ? from generic import * File "/home/users/f/fa/falted/bin-macosx//lib/python/numarray/generic.py", line 1030, in ? import numarraycore as _nc File "/home/users/f/fa/falted/bin-macosx//lib/python/numarray/numarraycore.py", line 29, in ? PyINT_TYPES = { NameError: name 'bool' is not defined
I know that there are available ports of numarray 0.8 to Darwin, but, for a series of reasons, I prefer to compile it for myself. Anyone can provide a hint so as to compile it cleanly?
I tested numarray-0.8 on Darwin, but I tested it against user installed versions of Python 2.2.3 and 2.3.2. Both of these versions define bool. On the version of Mac OS-X I've got (10.2?), /usr/bin/python is 2.2.0, and it does not define bool. So, I don't think there is a clean compile, at least not for Mac users who don't also install updated versions of Python. Todd
Thanks,
-- Francesc Alted
------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Numpy-discussion mailing list Numpy-discussion@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/numpy-discussion
-- Todd Miller Space Telescope Science Institute 3700 San Martin Drive Baltimore MD, 21030 (410) 338 - 4576
participants (2)
-
Francesc Alted
-
Todd Miller