By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,903 Members | 1,973 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,903 IT Pros & Developers. It's quick & easy.

ImportError: No module named math

P: n/a
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

Jul 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.