Numpy and Python 2.2 on RHEL3
All: Is it possible to build Numpy using Python 2.2? I haven't been able to find anything that explicitly lists the versions of Python with which Numpy functions so I've been working under the assumption that the two bits will mesh together somehow. When I try to build Numpy 1.0.1 on RedHat Enterprise Linux 3 using Python 2.2.3, I get the following error: $ /usr/bin/python2.2 setup.py build Running from numpy source directory. Traceback (most recent call last): File "setup.py", line 89, in ? setup_package() File "setup.py", line 59, in setup_package from numpy.distutils.core import setup File "numpy/distutils/__init__.py", line 5, in ? import ccompiler File "numpy/distutils/ccompiler.py", line 11, in ? import log File "numpy/distutils/log.py", line 4, in ? from distutils.log import * ImportError: No module named log Through extensive trial and error I've been able to hack the distutils files enough to make that error go away, but then I start getting an error describing an invalid syntax with the directive "yield os.path" which seems to be a deeper, more complex error to fix. Am I attempting the impossible here or am I just doing something fundamentally and obviously wrong? David -- David Bogen :: (608) 263-0168 Unix SysAdmin :: IceCube Project david.bogen@icecube.wisc.edu
From http://docs.python.org/ref/yield.html you might try from __future__ import generators On Dec 5, 2006, at 9:07 AM, David Bogen wrote:
All:
Is it possible to build Numpy using Python 2.2? I haven't been able to find anything that explicitly lists the versions of Python with which Numpy functions so I've been working under the assumption that the two bits will mesh together somehow.
When I try to build Numpy 1.0.1 on RedHat Enterprise Linux 3 using Python 2.2.3, I get the following error:
$ /usr/bin/python2.2 setup.py build Running from numpy source directory. Traceback (most recent call last): File "setup.py", line 89, in ? setup_package() File "setup.py", line 59, in setup_package from numpy.distutils.core import setup File "numpy/distutils/__init__.py", line 5, in ? import ccompiler File "numpy/distutils/ccompiler.py", line 11, in ? import log File "numpy/distutils/log.py", line 4, in ? from distutils.log import * ImportError: No module named log
Through extensive trial and error I've been able to hack the distutils files enough to make that error go away, but then I start getting an error describing an invalid syntax with the directive "yield os.path" which seems to be a deeper, more complex error to fix.
Am I attempting the impossible here or am I just doing something fundamentally and obviously wrong?
David
-- David Bogen :: (608) 263-0168 Unix SysAdmin :: IceCube Project david.bogen@icecube.wisc.edu _______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
** Bill Spotz ** ** Sandia National Laboratories Voice: (505)845-0170 ** ** P.O. Box 5800 Fax: (505)284-5451 ** ** Albuquerque, NM 87185-0370 Email: wfspotz@sandia.gov **
Bill Spotz wrote:
you might try
from __future__ import generators
Some research did turn up that alternative, but then I started getting this error: $ /usr/bin/python2.2 setup.py build Running from numpy source directory. Traceback (most recent call last): File "setup.py", line 90, in ? setup_package() File "setup.py", line 60, in setup_package from numpy.distutils.core import setup File "numpy/distutils/__init__.py", line 5, in ? import ccompiler File "numpy/distutils/ccompiler.py", line 12, in ? from exec_command import exec_command File "numpy/distutils/exec_command.py", line 56, in ? from numpy.distutils.misc_util import is_sequence File "numpy/distutils/misc_util.py", line 12, in ? from sets import Set as set ImportError: No module named sets Given the number of walls I was hitting, it just seemed that I was traveling down the wrong path. David -- David Bogen :: (608) 263-0168 Unix SysAdmin :: IceCube Project david.bogen@icecube.wisc.edu
David Bogen wrote:
All:
Is it possible to build Numpy using Python 2.2? I haven't been able to find anything that explicitly lists the versions of Python with which Numpy functions so I've been working under the assumption that the two bits will mesh together somehow.
numpy requires Python 2.3 . -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco
Robert Kern wrote:
David Bogen wrote:
All:
Is it possible to build Numpy using Python 2.2? I haven't been able to find anything that explicitly lists the versions of Python with which Numpy functions so I've been working under the assumption that the two bits will mesh together somehow.
numpy requires Python 2.3 .
hope Python2.3 support will not be dropped too early. There is not much cost overall when going from 2.2 to 2.3. Yet from Py2.3 to Py2.4 there is a tremendous increase in memory footprint, in distributable file sizes, load time, cgi start time, compiler troubles on Win etc. .. - not really balanced by comparable improvements. For most types of practical applications Py2.3 is still the "good Python" for me. Robert
Robert wrote:
Robert Kern wrote:
numpy requires Python 2.3 .
hope Python2.3 support will not be dropped too early. There is not much cost overall when going from 2.2 to 2.3.
It won't. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco
participants (4)
-
Bill Spotz -
David Bogen -
Robert -
Robert Kern