Import random

Michael Hudson mwh at python.net
Wed Dec 12 08:07:38 EST 2001


"Daniel Pote" <daniel.pote at xms.se> writes:

> Hi,
> 
> Just joined this group after trying to compile mailman on HP-UX 11.00.
> It seems to be something wrong when trying to import random.
> 
> Compiling /opt/mailman/Mailman/versions.py ...
> Traceback (most recent call last):
>   File "bin/update", line 31, in ?
>     from Mailman import Utils
>   File "/opt/mailman/Mailman/Utils.py", line 32, in ?
>     import random
>   File "/opt/python/lib/python2.1/random.py", line 93, in ?
>     _verify('NV_MAGICCONST', 1.71552776992141)
>   File "/opt/python/lib/python2.1/random.py", line 88, in _verify
>     raise ValueError(
> ValueError: computed value for NV_MAGICCONST deviates too much (computed 0, expe
> cted 1.10415e+09)
> 
> Same result if i run python and types: import random
> 
> Can anyone help me on this ?
> 
> I have installed python 2.1 package from hpux.connect.org.uk

Someting is very, very wrong somewhere.

What happens if you type 

>>> from math import exp, sqrt
>>> 4 * exp(-0.5)/sqrt(2.0)

into the interpreter?

Cheers,
M.

-- 
 Two decades later, well-known hacker Henry Spencer described the 
 Perl scripting language as a "Swiss-Army chainsaw", intending to 
 convey his evaluation of the language as exceedingly powerful but 
 ugly and noisy and prone to belch noxious fumes.   -- the jargon file



More information about the Python-list mailing list