Re: No math module??



WIdgeteye <None@xxxxxxxxx> 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.

However, that doesn't answer the question, because even Python 1.5 should
have a module called "math".
--
- Tim Roberts, timr@xxxxxxxxx
Providenza & Boekelheide, Inc.
.



Relevant Pages

  • Re: Python Newbie
    ... import sys ... I dont want to get frustrated and say the heck with it, ... The reason I am starting with Python, ...
    (comp.lang.python)
  • Preferred method for "Assignment by value"
    ... As a relative new comer to Python, I haven't done a heck of a lot of ... hacking around with it. ...
    (comp.lang.python)
  • Re: Hobbyist - Python vs. other languages
    ... After many years of dabbling ... in programming languages as a hobbyist (I am not a computer scientist ... My situation's a bit different because I code for a living, but I also code sometimes for the heck of it. ... I found a website to help me learn them, then implemented my own version in Python for the heck of it. ...
    (comp.lang.python)
  • Copying a blob from one mysql record to another with a where clause
    ... (I'm a long term newbie:) ... I wanted to copy a blob's contents in mysql in python from one record to another. ... I had a heck of a time with it, so I wanted to post it for others. ...
    (comp.lang.python)
  • Re: No math module??
    ... So why in the heck isn't it loading with: ... Is the Python that you are running actually 2.3? ... renamed the math module to maths? ...
    (comp.lang.python)