ImportError: No module named math

Discussion in 'Python' started by M. Lavasani, Aug 27, 2003.

  1. M. Lavasani

    M. Lavasani Guest

    Hi

    I am trying to test Python-2.3.

    Any solution for this problem please:


    >>>gmake test

    case $MAKEFLAGS in \
    *-s*) LD_LIBRARY_PATH=/net/ia64/lavasani/Python-2.3:/usr/local/lib/hpux32:/usr/local/lib CC='gcc' LDSHARED='gcc -shared' OPT='-DNDEBUG -g -O3 -Wall -Wstrict-prototypes' ./python -E ./setup.py -q build;; \
    *) LD_LIBRARY_PATH=/net/ia64/lavasani/Python-2.3:/usr/local/lib/hpux32:/usr/local/lib CC='gcc' LDSHARED='gcc -shared' OPT='-DNDEBUG -g -O3 -Wall -Wstrict-prototypes' ./python -E ./setup.py build;; \
    esac
    running build
    running build_ext
    running build_scripts
    find ./Lib -name '*.py[co]' -print | xargs rm -f
    LD_LIBRARY_PATH=/net/ia64/lavasani/Python-2.3:/usr/local/lib/hpux32:/usr/local/lib ./python -E -tt ./Lib/test/regrtest.py -l
    Traceback (most recent call last):
    File "./Lib/test/regrtest.py", line 75, in ?
    import random
    File "/net/ia64/lavasani/Python-2.3/Lib/random.py", line 42, in ?
    from math import log as _log, exp as _exp, pi as _pi, e as _e
    ImportError: No module named math
    gmake: [test] Error 1 (ignored)
    LD_LIBRARY_PATH=/net/ia64/lavasani/Python-2.3:/usr/local/lib/hpux32:/usr/local/lib ./python -E -tt ./Lib/test/regrtest.py -l
    Traceback (most recent call last):
    File "./Lib/test/regrtest.py", line 75, in ?
    import random
    File "/net/ia64/lavasani/Python-2.3/Lib/random.py", line 42, in ?
    from math import log as _log, exp as _exp, pi as _pi, e as _e
    ImportError: No module named math
    gmake: *** [test] Error 1



    But I can see the math module


    >>>find . -name \*math*

    ../Doc/lib/libcmath.tex
    ../Doc/lib/libmath.tex
    ../Lib/test/output/test_math
    ../Lib/test/test_cmath.py
    ../Lib/test/test_math.py
    ../Modules/cmathmodule.c
    ../Modules/mathmodule.c
    ../build/temp.hp-ux-B.11.22-ia64-2.3/cmathmodule.o
    ../build/temp.hp-ux-B.11.22-ia64-2.3/mathmodule.o
    ../build/lib.hp-ux-B.11.22-ia64-2.3/cmath.so
    ../build/lib.hp-ux-B.11.22-ia64-2.3/math.so
     
    M. Lavasani, Aug 27, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Harry George
    Replies:
    0
    Views:
    5,742
    Harry George
    Jul 15, 2003
  2. Mikael Olofsson
    Replies:
    0
    Views:
    479
    Mikael Olofsson
    Jul 16, 2003
  3. Carsten Gehling

    pso - ImportError: No module named url

    Carsten Gehling, Jul 16, 2003, in forum: Python
    Replies:
    0
    Views:
    411
    Carsten Gehling
    Jul 16, 2003
  4. eric_bellard
    Replies:
    1
    Views:
    5,166
    CarlosRivera
    Oct 7, 2004
  5. VK
    Replies:
    15
    Views:
    1,325
    Dr J R Stockton
    May 2, 2010
Loading...

Share This Page