Yes I ran strace python and imported math<br><br>time(NULL)                              = 1231244692<br>futex(0x80575d8, FUTEX_WAKE, 1)         = 0<br>stat64("math", 0xbfabef50)              = -1 ENOENT (No such file or directory)<br>
open("math.so", O_RDONLY|O_LARGEFILE)   = -1 ENOENT (No such file or directory)<br>open("mathmodule.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)<br>open("math.py", O_RDONLY|O_LARGEFILE)   = -1 ENOENT (No such file or directory)<br>
open("math.pyc", O_RDONLY|O_LARGEFILE)  = -1 ENOENT (No such file or directory)<br>stat64("/usr/lib/python24.zip/math", 0xbfabef50) = -1 ENOENT (No such file or directory)<br>open("/usr/lib/python24.zip/math.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)<br>
open("/usr/lib/python24.zip/mathmodule.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)<br>open("/usr/lib/python24.zip/math.py", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)<br>
open("/usr/lib/python24.zip/math.pyc", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)<br>stat64("/usr/lib/python2.4/math", 0xbfabef50) = -1 ENOENT (No such file or directory)<br>open("/usr/lib/python2.4/math.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)<br>
open("/usr/lib/python2.4/mathmodule.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)<br>open("/usr/lib/python2.4/math.py", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)<br>
open("/usr/lib/python2.4/math.pyc", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)<br>stat64("/usr/lib/python2.4/plat-linux2/math", 0xbfabef50) = -1 ENOENT (No such file or directory)<br>
open("/usr/lib/python2.4/plat-linux2/math.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)<br>open("/usr/lib/python2.4/plat-linux2/mathmodule.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)<br>
open("/usr/lib/python2.4/plat-linux2/math.py", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)<br>open("/usr/lib/python2.4/plat-linux2/math.pyc", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)<br>
stat64("/usr/lib/python2.4/lib-tk/math", 0xbfabef50) = -1 ENOENT (No such file or directory)<br>open("/usr/lib/python2.4/lib-tk/math.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)<br>
open("/usr/lib/python2.4/lib-tk/mathmodule.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)<br>open("/usr/lib/python2.4/lib-tk/math.py", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)<br>
open("/usr/lib/python2.4/lib-tk/math.pyc", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)<br>stat64("/usr/lib/python2.4/lib-dynload/math", 0xbfabef50) = -1 ENOENT (No such file or directory)<br>
open("/usr/lib/python2.4/lib-dynload/math.so", O_RDONLY|O_LARGEFILE) = 3<br>fstat64(3, {st_mode=S_IFREG|0755, st_size=12716, ...}) = 0<br>open("/usr/lib/python2.4/lib-dynload/math.so", O_RDONLY) = 4<br>
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200\16"..., 512) = 512<br>fstat64(4, {st_mode=S_IFREG|0755, st_size=12716, ...}) = 0<br>mmap2(NULL, 15588, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0xb7f2b000<br>
mmap2(0xb7f2e000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x2) = 0xb7f2e000<br>close(4)                                = 0<br>close(3)                                = 0<br><br>It's probably because I only downloaded python from svn repo and ran ./configure&&make&&make install<br>
<br>I didn't do anything else. Like set PYTHONPATH. I solved it though. You can tell by the output it's looking for it in my other python install lib path. <br><br>Thank you.<br clear="all">-Alex Goretoy<br><a href="http://www.alexgoretoy.com">http://www.alexgoretoy.com</a><br>
<a href="mailto:somebodywhocarez@gmail.com">somebodywhocarez@gmail.com</a><br>
<br><br><div class="gmail_quote">On Tue, Jan 6, 2009 at 10:44 AM, Mark Dickinson <span dir="ltr"><<a href="mailto:dickinsm@gmail.com">dickinsm@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div id=":2gr" class="ArwC7c ckChnd">dule built, but Python is looking in the wrong<br>
place for it, for some reason.</div></blockquote></div><br>