Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make test fails on HP-UX11i #40875

Closed
rptownsend mannequin opened this issue Sep 6, 2004 · 4 comments
Closed

make test fails on HP-UX11i #40875

rptownsend mannequin opened this issue Sep 6, 2004 · 4 comments
Labels
build The build process and cross-build

Comments

@rptownsend
Copy link
Mannequin

rptownsend mannequin commented Sep 6, 2004

BPO 1022951
Nosy @rhettinger
Files
  • random.py: Lib/random.py
  • test_random.py: Lib/test/test_random.py
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2004-09-08.07:12:34.000>
    created_at = <Date 2004-09-06.08:57:40.000>
    labels = ['build']
    title = 'make test fails on HP-UX11i'
    updated_at = <Date 2004-09-08.07:12:34.000>
    user = 'https://bugs.python.org/rptownsend'

    bugs.python.org fields:

    activity = <Date 2004-09-08.07:12:34.000>
    actor = 'rptownsend'
    assignee = 'none'
    closed = True
    closed_date = None
    closer = None
    components = ['Build']
    creation = <Date 2004-09-06.08:57:40.000>
    creator = 'rptownsend'
    dependencies = []
    files = ['1397', '1398']
    hgrepos = []
    issue_num = 1022951
    keywords = []
    message_count = 4.0
    messages = ['22370', '22371', '22372', '22373']
    nosy_count = 2.0
    nosy_names = ['rptownsend', 'rhettinger']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue1022951'
    versions = ['Python 2.4']

    @rptownsend
    Copy link
    Mannequin Author

    rptownsend mannequin commented Sep 6, 2004

    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

    @rptownsend rptownsend mannequin closed this as completed Sep 6, 2004
    @rptownsend rptownsend mannequin added the build The build process and cross-build label Sep 6, 2004
    @rptownsend
    Copy link
    Mannequin Author

    rptownsend mannequin commented Sep 6, 2004

    Logged In: YES
    user_id=200117

    Sorry, I should have read the bugs page first!

    Please disregard this report.

    @rhettinger
    Copy link
    Contributor

    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.

    @rptownsend
    Copy link
    Mannequin Author

    rptownsend mannequin commented Sep 8, 2004

    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.

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    build The build process and cross-build
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant