Import random

Daniel Pote daniel.pote at xms.se
Wed Dec 12 08:14:29 EST 2001


Michael Hudson said:
> "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)
>
Result is: 0.0







More information about the Python-list mailing list