[SciPy-user] Problems installing SciPy

Robert Kern robert.kern at gmail.com
Wed Mar 22 14:39:24 CST 2006


Tommy Grav wrote:
>> tempfile.py is looking for the standard library's random.py module.
>> I'll bet
>> that the directory you are in has its own random module that is
>> getting imported
>> instead.
> 
> Actually there is no random.py in the directory. However, the error only
> happens
> when scipy is imported in the interactive session. When importing it in
> a script 
> it seems to work fine (I have not really played around using its
> functions, but the
> import does not return any errors).

Okay, but where is it coming from since it's not the standard library's
random.py? To find out:

In [22]: import random

In [23]: random.__file__
Out[23]:
'/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/random.pyc'

-- 
Robert Kern
robert.kern at gmail.com

"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