No math module??

Tim Golden tim.golden at viacom-outdoor.co.uk
Wed May 24 09:29:28 CEST 2006


Tim Roberts wrote:
> WIdgeteye <None at none.none> wrote:
> >
> >On Tue, 23 May 2006 12:40:49 +1000, Ben Finney wrote:
> >
> >Ok this is weird. I checked:
> >/usr/local/lib/python2.3/lib-dynload/math.so
> >
> >Just as you have on your system and it's there.
> >So why in the heck isn't it loading with:
> >import math    ????
> >
> >This is strange.
>
> Is the Python that you are running actually 2.3?  Some Linux systems have
> both Python 1 and a Python 2 installed.  Typing "python" at a command line
> often gets Python 1, because the vendor's configuration scripts assume
> that.

Maybe he's running a UK-based distro which has
renamed the math module to maths? (I have to work
really hard to remember *not* to put the "s" on the
end when I import it!

;-) 

TJG




More information about the Python-list mailing list