import random error
mrbrown200425 at yahoo.com
Thu Aug 5 23:24:57 CEST 2004
I am just starting to learn Python and was writing a simple script on
my machine (Mac OS X 10.3.4), but I can't seem to import the random
Traceback (most recent call last):
File "./math.py", line 3, in ?
File "/sw/lib/python2.3/random.py", line 42, in ?
from math import log as _log, exp as _exp, pi as _pi, e as _e
ImportError: cannot import name log
I have such a feeling that this is either a) because I don't know what
I'm doing or b) the python install is somehow strange. What is strange
is that in interactive mode, import random works fine.
Thanks in advance,
More information about the Python-list