[Numpy-discussion] building numpy/scipy

Mike Landis mlandis001@comcast....
Sat Jan 3 22:20:40 CST 2009

Josef (sorry about spelling your name wrong in a previous post),

Thanks for the continued suggestions.  I deleted the site-packages: 
numpy and scipy, and reinstalled each using the current release 
superpacks (numpy first, then scipy).

then I ran:

python -c 'import numpy; numpy.test()'

and got:

Running unit tests for numpy
NumPy version 1.2.1
NumPy is installed in d::\Programs\Python25\lib\site-packages\numpy
Python version 2.5.2 (r252:60911, Mar 27 2008, 17:57:18) IMSC v.1310 
32 bit (ntel)]
nose version 0.10.4
Traceback (most recent call last):
   File "(string)", line 1, in <module>
line 264, in test
     import doctest
   File"d:\Programs\Python25\lib\doctest.p", line 99, in <module>
     import unittest, difflib, pd, tempfile
   File "d:\programs\python25\lib\tempfile.py", line 33, in <module>
     from random import Random as __Random
ImportError: cannot import name Random

scipy.test() bombs out with the exact same Traceback, except that it 
mentions the scipy version (0,7.0.dev5180) and scipy install 
directory just before it echoes the line with the python version number.

So, it's not getting as far as it was with the source mixed in.

At 10:40 PM 1/3/2009, you wrote:
>Make sure that when you import scipy that you get the correct version.
> >>> import scipy
> >>> scipy.__file__
> >From your error messages, I would think python is loading the source
>distribution and not the compiled and installed version. It would be
>helpful to see your actual error messages from nose, with copy and
>paste, at least the first few and last parts of the nose tests. Your
>summary error message is not very helpful because it doesn't show your
>actual error path and trace backs.
>When I installed the 0.7.0 b1 superpack on WindowsXP, it worked out of
>the box. The only thing to do, before installing a new version of
>numpy or scipy, is to uninstall or delete any old version in
>site-packages, since the directory names of scipy and numpy do not
>include version numbers. Installing on top of an old version, can
>leave some old files around which sometimes cause errors.
>Numpy-discussion mailing list

More information about the Numpy-discussion mailing list