This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: make test fails on HP-UX11i
Type: Stage:
Components: Build Versions: Python 2.4
process
Status: closed Resolution: duplicate
Dependencies: Superseder:
Assigned To: Nosy List: rhettinger, rptownsend
Priority: normal Keywords:

Created on 2004-09-06 08:57 by rptownsend, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
random.py rhettinger, 2004-09-07 07:13 Lib/random.py
test_random.py rhettinger, 2004-09-07 07:14 Lib/test/test_random.py
Messages (4)
msg22370 - (view) Author: Richard Townsend (rptownsend) Date: 2004-09-06 08:57
Built Python-2.4a3 on HP-UX11i.

When running make test, I get the following error:

running build_scripts
         ./python -E -c 'import sys ; from distutils.util 
import get_platform ; print get_platform()+"-
"+sys.version[0:3]' >platform
        find ./Lib -name '*.py[co]' -print | xargs rm -f
         ./python -E -tt ./Lib/test/regrtest.py -l
Traceback (most recent call last):
  File "./Lib/test/regrtest.py", line 98, in ?
    import random
  File "/home/richardt/python-24/Python-
2.4a3/Lib/random.py", line 834, in ?
    _inst = Random()
  File "/home/richardt/python-24/Python-
2.4a3/Lib/random.py", line 100, in __init__
    self.seed(x)
  File "/home/richardt/python-24/Python-
2.4a3/Lib/random.py", line 117, in seed
    a = long(_hexlify(_urandom(16)), 16)
  File "/home/richardt/python-24/Python-
2.4a3/Lib/os.py", line 675, in urandom
    raise NotImplementedError("/dev/urandom (or 
equivalent) not found")
NotImplementedError: /dev/urandom (or equivalent) not 
found
*** Error exit code 1 (ignored)
         ./python -E -tt ./Lib/test/regrtest.py -l
Traceback (most recent call last):
  File "./Lib/test/regrtest.py", line 98, in ?
    import random
  File "/home/richardt/python-24/Python-
2.4a3/Lib/random.py", line 834, in ?
    _inst = Random()
  File "/home/richardt/python-24/Python-
2.4a3/Lib/random.py", line 100, in __init__
    self.seed(x)
  File "/home/richardt/python-24/Python-
2.4a3/Lib/random.py", line 117, in seed
    a = long(_hexlify(_urandom(16)), 16)
  File "/home/richardt/python-24/Python-
2.4a3/Lib/os.py", line 675, in urandom
    raise NotImplementedError("/dev/urandom (or 
equivalent) not found")
NotImplementedError: /dev/urandom (or equivalent) not 
found
*** Error exit code 1

msg22371 - (view) Author: Richard Townsend (rptownsend) Date: 2004-09-06 09:55
Logged In: YES 
user_id=200117

Sorry, I should have read the bugs page first!

Please disregard this report.
msg22372 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2004-09-07 07:13
Logged In: YES 
user_id=80475

Thanks for report anyway.

After that patch was posted, a couple of other changes were
made.  Since you have a system that treats _urandom
differently from the rest of the development machines, it
would be great if you could load the latest version, run the
test, and report the results back here.

The two files attached below.
msg22373 - (view) Author: Richard Townsend (rptownsend) Date: 2004-09-08 07:12
Logged In: YES 
user_id=200117

I copied the two files to my Python-2.4a3 installation and ran 
the test - all 37 tests ran OK.

History
Date User Action Args
2022-04-11 14:56:06adminsetgithub: 40875
2004-09-06 08:57:40rptownsendcreate