Unable to find solution to error: ValueError: math domain error

Chad Netzer cnetzer at mail.arc.nasa.gov
Wed Jan 22 22:18:16 CET 2003

On Wednesday 22 January 2003 00:57, Mark Cooke wrote:

> Cron <mailman at eir> /usr/bin/python -S /var/mailman/cron/gate_news:
> Traceback (most recent call last):
>    File "/var/mailman/cron/gate_news", line 40, in ?
>      from Mailman import MailList
>    File "/var/mailman/Mailman/MailList.py", line 36, in ?
>      from Mailman import Utils
>    File "/var/mailman/Mailman/Utils.py", line 32, in ?
>      import random
>    File "/usr/lib/python2.2/random.py", line 91, in ?
>      NV_MAGICCONST = 4 * _exp(-0.5)/_sqrt(2.0)
> ValueError: math domain error

In addition to what Martin suggested, try running python from the shell 
and type:

import random

and see if you get the same error.  Try it again with the "-S" switch 
to python if no error is given.

It works fine on my Redhat 8.0 system (w/ Athlon chip).  If those 
things fail, try the following:

rpm -V python

To make sure your python system files aren't messed up.

Bay Area Python Interest Group - http://www.baypiggies.net/

Chad Netzer

More information about the Python-list mailing list