math module for Decimals

alex goretoy aleksandr.goretoy at gmail.com
Tue Jan 6 07:33:42 EST 2009


Yes I ran strace python and imported math

time(NULL)                              = 1231244692
futex(0x80575d8, FUTEX_WAKE, 1)         = 0
stat64("math", 0xbfabef50)              = -1 ENOENT (No such file or
directory)
open("math.so", O_RDONLY|O_LARGEFILE)   = -1 ENOENT (No such file or
directory)
open("mathmodule.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or
directory)
open("math.py", O_RDONLY|O_LARGEFILE)   = -1 ENOENT (No such file or
directory)
open("math.pyc", O_RDONLY|O_LARGEFILE)  = -1 ENOENT (No such file or
directory)
stat64("/usr/lib/python24.zip/math", 0xbfabef50) = -1 ENOENT (No such file
or directory)
open("/usr/lib/python24.zip/math.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No
such file or directory)
open("/usr/lib/python24.zip/mathmodule.so", O_RDONLY|O_LARGEFILE) = -1
ENOENT (No such file or directory)
open("/usr/lib/python24.zip/math.py", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No
such file or directory)
open("/usr/lib/python24.zip/math.pyc", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No
such file or directory)
stat64("/usr/lib/python2.4/math", 0xbfabef50) = -1 ENOENT (No such file or
directory)
open("/usr/lib/python2.4/math.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No
such file or directory)
open("/usr/lib/python2.4/mathmodule.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT
(No such file or directory)
open("/usr/lib/python2.4/math.py", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No
such file or directory)
open("/usr/lib/python2.4/math.pyc", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No
such file or directory)
stat64("/usr/lib/python2.4/plat-linux2/math", 0xbfabef50) = -1 ENOENT (No
such file or directory)
open("/usr/lib/python2.4/plat-linux2/math.so", O_RDONLY|O_LARGEFILE) = -1
ENOENT (No such file or directory)
open("/usr/lib/python2.4/plat-linux2/mathmodule.so", O_RDONLY|O_LARGEFILE) =
-1 ENOENT (No such file or directory)
open("/usr/lib/python2.4/plat-linux2/math.py", O_RDONLY|O_LARGEFILE) = -1
ENOENT (No such file or directory)
open("/usr/lib/python2.4/plat-linux2/math.pyc", O_RDONLY|O_LARGEFILE) = -1
ENOENT (No such file or directory)
stat64("/usr/lib/python2.4/lib-tk/math", 0xbfabef50) = -1 ENOENT (No such
file or directory)
open("/usr/lib/python2.4/lib-tk/math.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT
(No such file or directory)
open("/usr/lib/python2.4/lib-tk/mathmodule.so", O_RDONLY|O_LARGEFILE) = -1
ENOENT (No such file or directory)
open("/usr/lib/python2.4/lib-tk/math.py", O_RDONLY|O_LARGEFILE) = -1 ENOENT
(No such file or directory)
open("/usr/lib/python2.4/lib-tk/math.pyc", O_RDONLY|O_LARGEFILE) = -1 ENOENT
(No such file or directory)
stat64("/usr/lib/python2.4/lib-dynload/math", 0xbfabef50) = -1 ENOENT (No
such file or directory)
open("/usr/lib/python2.4/lib-dynload/math.so", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0755, st_size=12716, ...}) = 0
open("/usr/lib/python2.4/lib-dynload/math.so", O_RDONLY) = 4
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
fstat64(4, {st_mode=S_IFREG|0755, st_size=12716, ...}) = 0
mmap2(NULL, 15588, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) =
0xb7f2b000
mmap2(0xb7f2e000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x2) = 0xb7f2e000
close(4)                                = 0
close(3)                                = 0

It's probably because I only downloaded python from svn repo and ran
./configure&&make&&make install

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.

Thank you.
-Alex Goretoy
http://www.alexgoretoy.com
somebodywhocarez at gmail.com


On Tue, Jan 6, 2009 at 10:44 AM, Mark Dickinson <dickinsm at gmail.com> wrote:

> dule built, but Python is looking in the wrong
> place for it, for some reason.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090106/b4a77b7d/attachment-0001.html>


More information about the Python-list mailing list