Numpy installation prob under RH7.3

Dave Bazell bazell at comcast.net
Fri Dec 6 07:45:12 EST 2002


Hi,

I recently installed python2.2 on my RH7.3 system.  I want to install scipy.
I followed the steps suggested at the scipy website, but when I try to test
scipy, I get errors.

I installed python 2.2 in /usr/local and created an alias to run it as a
user, the default is an older version of python.  It would appear that numpy
installed, but I am not sure since I didn't test it directly.  Is there a
test suite for numpy?

Here are my outputs.  Any help would be appreciated.

Dave


Python 2.2.2 (#1, Oct 21 2002, 12:22:55)
[GCC 2.96 20000731 (Red Hat Linux 7.3 2.96-110)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> help()

Welcome to Python 2.2!  This is the online help utility.

If this is your first time using Python, you should definitely check out
the tutorial on the Internet at http://www.python.org/doc/tut/.

Enter the name of any module, keyword, or topic to get help on writing
Python programs and using Python modules.  To quit this help utility and
return to the interpreter, just type "quit".

To get a list of available modules, keywords, or topics, type "modules",
"keywords", or "topics".  Each module also comes with a one-line summary
of what it does; to list the modules whose summaries contain a given word
such as "spam", type "modules spam".

help> Help on module numeric_version:

NAME
    numeric_version

FILE
    /usr/local/lib/python2.2/site-packages/Numeric/numeric_version.py

DATA
    __file__ =
'/usr/local/lib/python2.2/site-packages/Numeric/numeric_ver...
    __name__ = 'numeric_version'
    version = '22.0'


help>
You are now leaving help and returning to the Python interpreter.
If you want to ask for help on a particular object directly from the
interpreter, you can type "help(object)".  Executing "help('string')"
has the same effect as typing a particular string at the help> prompt.
>>>
>>> import scipy
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/local/lib/python2.2/site-packages/scipy/__init__.py", line 41,
in ?
    from handy import *
  File "/usr/local/lib/python2.2/site-packages/scipy/handy.py", line 1, in ?
    import Numeric
  File "/usr/local/lib/python2.2/site-packages/Numeric/Numeric.py", line 93,
in ?
    from Precision import *
  File "/usr/local/lib/python2.2/site-packages/Numeric/Precision.py", line
26, in ?
    _code_table = _fill_table(typecodes)
  File "/usr/local/lib/python2.2/site-packages/Numeric/Precision.py", line
23, in _fill_table
    table[key] = _get_precisions(value)
  File "/usr/local/lib/python2.2/site-packages/Numeric/Precision.py", line
18, in _get_precisions
    lst.append( (zeros( (1,), t ).itemsize()*8, t) )
ValueError: Invalid type for array
>>>
>>> import scipy
>>>
>>> scipy.test()
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
AttributeError: 'module' object has no attribute 'test'
>>>
>>>






More information about the Python-list mailing list