GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test fails: missing mcookie · Issue #257 · python-xlib/python-xlib

test fails: missing mcookie #257

New issue
Copy link
New issue
Copy link
Open
Open
test fails: missing mcookie#257
Copy link

Description

@mtelka
mtelka
opened on Dec 15, 2022
Issue body actions

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
    mtelka
    on Feb 8, 2023
    ContributorAuthor
    More actions

    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

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.