Skip to content

test fails: missing mcookie #257

Open

Description

@mtelka

I tested version 0.32 and tests failed:

py39 run-test: commands[0] | $(BLD_DIR)/.tox/py39/bin/python -W all runtests.py
Traceback (most recent call last):
  File "$(BLD_DIR)/runtests.py", line 134, in <module>
    runtests()
  File "$(BLD_DIR)/runtests.py", line 91, in runtests
    cookie = subprocess.check_output('mcookie').strip()
  File "/usr/lib/python3.9/subprocess.py", line 424, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib/python3.9/subprocess.py", line 505, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/usr/lib/python3.9/subprocess.py", line 951, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.9/subprocess.py", line 1821, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'mcookie'

Activity

  1. mtelka commented on Feb 8, 2023

    @mtelka
    ContributorAuthor

    The problem is that mcookie is typically not available on non-Linux platforms.

    As a workaround one could use this script as mcookie:

    #!/bin/sh
    
    dd if=/dev/urandom of=/dev/stdout bs=512 count=1 2>/dev/null | md5sum | awk '{print $1}'
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions