Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > ImportError: No module named math

Reply
Thread Tools

ImportError: No module named math

 
 
M. Lavasani
Guest
Posts: n/a
 
      08-27-2003
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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Math.random() and Math.round(Math.random()) and Math.floor(Math.random()*2) VK Javascript 15 05-02-2010 03:43 PM
Trying to install module, No module named scipy_distutils.core (but ihave scipy) process Python 1 10-17-2008 06:19 PM
Using JYTHON inside ANT : access os module -> "ImportError: no module named javaos" eric_bellard Python 1 10-07-2004 05:41 AM
Re: Is still math.h the C++ math library ? AciD_X C++ 4 04-01-2004 07:29 PM
Why can I not use: Math a=new Math(); chirs Java 18 03-02-2004 06:00 PM



Advertisments