[SciPy-user] ImportError: cannot import name Tester

Robert Kern robert.kern@gmail....
Tue Oct 14 11:23:17 CDT 2008


On Tue, Oct 14, 2008 at 11:19, Christopher MacMinn <cmac@mit.edu> wrote:
> Hi folks -
>
> I just installed Scipy 0.7.0 build 4797, and import is failing:
>
> # ---------------------------------------------------------
>
> In [3]: import scipy
> ---------------------------------------------------------------------------
> ImportError                               Traceback (most recent call
> last)
>
> /Library/Python/2.5/site-packages/<ipython console> in <module>()
>
> /Library/Python/2.5/site-packages/scipy/__init__.py in <module>()
>     86     __doc__ += pkgload.get_pkgdocs()
>     87
> ---> 88 from numpy.testing import Tester
>     89 test = Tester().test
>     90 bench = Tester().bench
>
> ImportError: cannot import name Tester
>
> In [4]:
>
> # ---------------------------------------------------------
>
> I imagine I can fix this by commenting out the troublesome lines in
> __init__.py, but perhaps it is a bug in this build?  I did not have
> this problem with build 4786.
>
> I'm running Python 2.5 and numpy 1.2.0 on Mac OS 10.5.

Hmm, numpy 1.2.0 should have numpy.testing.Tester. Can you
double-check that that is the numpy which is actually getting picked
up?

-- 
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


More information about the SciPy-user mailing list