delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/02/20/16:43:25

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9768B3858C2D
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1676929355;
bh=E4lLSA88xp9G9g6UWUUDTeiA0Ltz4LNFJp/6EqZONuE=;
h=To:CC:Subject:Date:References:In-Reply-To:List-Id:
List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:
From:Reply-To:From;
b=JWmaDtfoLfeIaAgwaVVnwNkgsTZrGO/Hvk6BIqoTZs9Y542HQnnwkCwwfG3LVLeSI
oKGiB3ymQaoyJdvEX/JMBCXjwlQKhdhNGHUpGUHlFjEiM4xzUPwcPAHGPwyxJylajx
/q22TkKNad8Q3qtL33NE7gpTeUhcAUkpy/B00xJY=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5040D3858D20
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=biM8uyDFV/ccYy2Cx+a3jqTKji9oourTdgf0f90uh/i3jfQ7CMfy7Dse4W2NYrlmxabpg2d6XoZdhX5coGDsR4QFMOhTBdo9c/ci9WR7wxdJjp9LdXNGo2bUyC0K6m0a+0xSdsDi4xStm8Fjw83PmoqoGfvZ22lpc3eqFxoV8qB8I3li6uF45/Pr/BY8uJag8kYMdZdjiLJYpLj84iVj660kANkWx1bGleb3ARIfSTFp9/gGl89Ujo9JGVMS+VoAMwP4yPdrGx2ol16AM4CBcjXGdwOvKE0ZlP+IE+VLt06wE6CpMYihj9rCF7Kbu9QXn93m9WEW0XlHdsPHcca0JQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;
s=arcselector9901;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;
bh=sgehRCUdbBbUEPJkxiqXlmF2PDSQiqG1ComJ0PmxamQ=;
b=JEhz6zX0sX33rzcd3Xx6l6PPHEJ1SoIXQ6ZuzVUgcyWfazS/khAJqF1jCIFmXw5qLhxAoqBvajnC5cfxijxhdV4YkgdFZy4D0+6Q1g0OzuOKddV3vktkAQ1p6dah8ZBou748cuLZ9kUSvgP1noXR7bM9X072nHe2H+Jc4lTxvNkhf8sB1BJz/CRc7SaDtK/lqvaWcticH4MVbHr92Dioi9EykYt2H1rDeVImiNBUlBf2u7eB8QbgWIx93e/ZGcccdpF4bqqh9f8dLf1zkT8MIN1EHzsVJIDxsnuopYwvRnrkVW1scrphIm6wV1KgmyeOawJeDhcMXcCVae+m0g4L8w==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none;
dkim=none; arc=none
To: "Henry S. Thompson" <ht AT inf DOT ed DOT ac DOT uk>
CC: Jim Garrison via Cygwin <cygwin AT cygwin DOT com>
Subject: Re: OSError: Unsupported platform 'CYGWIN_NT-10.0-19044'
Thread-Topic: OSError: Unsupported platform 'CYGWIN_NT-10.0-19044'
Thread-Index: AQHZRVUsOS4n51AFqUucGr/8eTvpCa7YL+BfgAAWCc2AAAjyjYAADpxS
Date: Mon, 20 Feb 2023 21:41:51 +0000
Message-ID: <AM9P251MB005414C9F9E1888363E29AC9DEA49@AM9P251MB0054.EURP251.PROD.OUTLOOK.COM>
References: <DB9P251MB006325F99185BB6DE6FC4FD1DEA49 AT DB9P251MB0063 DOT EURP251 DOT PROD DOT OUTLOOK DOT COM>
<f5bilfw2mh4 DOT fsf AT ecclerig DOT inf DOT ed DOT ac DOT uk>
<DB9P251MB00631CC69C1D50011F6E7F53DEA49 AT DB9P251MB0063 DOT EURP251 DOT PROD DOT OUTLOOK DOT COM>
<f5bedqk2hcd DOT fsf AT ecclerig DOT inf DOT ed DOT ac DOT uk>
In-Reply-To: <f5bedqk2hcd.fsf@ecclerig.inf.ed.ac.uk>
Accept-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
msip_labels:
x-ms-exchange-messagesentrepresentingtype: 1
x-tmn: [i1fNwOT8EnP6+B00lbXfv2oCptVOHKkX5C/J2xmspFU=]
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: AM9P251MB0054:EE_|AS8P251MB0886:EE_
x-ms-office365-filtering-correlation-id: efd83f64-9ff6-4920-2b52-08db138b4716
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: 6LQ1zoWe55h/8/OaTVHAAkjid2J1HoebDxmQkT+BYIpkhMRBs6upx8WJq6R4gisneX5bLMMjrMyJCfqVhKpSFwPEDlxU0+G3cmCYUNoUVn9KY7Nr4bdktFMN95bQ+2UqhMUDBDpT5gGSD3I59KL2HBK2S4WbrkMBGFclUgWIuA5Cyyg4Q3dDuU5K3qQzdanpuyif3vS1ChFnG3Etn02bAA7TFnfzT+jmsz7AJMamOIx0F77kx6R9/cpaC4H0CAuzhC18oafyMF6MkCCyhqjxKEwDz/gXQ+5CZAENJGkpC/+QEwSy81+K3y847lOUctLaPWik2hPPLIfQ5Qv6iRbJy06fWKOvDQLLjkcDdWxWkR3foHC9K/jE0U+7kurvVT7/HVP3O1pbvAUsPBSFjxT7ZfUkJqB/wcu9uYgbJpmWWPVKseGLF8iwjsyi7sw/UMpmnFoQMQFPNPbA6jE0QT8bllo7YUh5sIyburM6aqnpXI3492+bjgftB7sTXB4rCSpthypzgds20BIWratV/QHfd4pO2WOpF1ldrmIUyaNNeQE+n9AQllvMXDLvUMucBKEmRBCIw9ETk9OUuQERVGnS+G41UA8cfOfdwsJ8xByShU1uprBO+9kUVRYedc6u/Japrjd7b8ESqMW04BQBR5MpyA==
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?Lje8IufC8CJubGeqry8kSnKS7GN6SUH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JpNFe4iyP47S?=
=?iso-8859-1?Q?hAQUTrM6d+mxqjDIy/Lp3o/ZkOfRqJTJJuzPXXkGkUywbowG6z67stZPQo?=
=?iso-8859-1?Q?wNwOycVUKOYPSwQcl422EgKkb8Vulv7RCb9U5iG9rJpfun+FEkhZiIdqXA?=
=?iso-8859-1?Q?DuESnU/CFSLgn0eF0z5xh8bit20wmWEWHeV08PwNrV0nBknZbus4o0Zr09?=
=?iso-8859-1?Q?UCvxgL3IBOQoASJr8y8W7kr2e+OrpC5UD9HkCFJbNwvrDuvwuTqldzrjC+?=
=?iso-8859-1?Q?nYxd8yCRuV1lGdIn88VCd5slOC1OB/fR3Mg/av3GOhTvuuZzycQhWT1m/o?=
=?iso-8859-1?Q?osiPGcO9QytlDB/qDeSq+KmM8Jjay3/88VW6Zj1Og4Of6R/gdhTXY0vMFT?=
=?iso-8859-1?Q?wW4GQwB9zUA2q0Kj5EaVH9LSBgWhkNujPwFiRBa5NHMwr22l6vjyLiKbJG?=
=?iso-8859-1?Q?ifKW?=
MIME-Version: 1.0
X-OriginatorOrg: outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: AM9P251MB0054.EURP251.PROD.OUTLOOK.COM
X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000
X-MS-Exchange-CrossTenant-Network-Message-Id: efd83f64-9ff6-4920-2b52-08db138b4716
X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Feb 2023 21:41:51.6761 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8P251MB0886
X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, SPF_HELO_PASS,
SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Jose Isaias Cabrera via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Jose Isaias Cabrera <jicman AT outlook DOT com>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

On Monday, February 20, 2023 03:48 PM, Henry S. Thompson  expressed:

> Two things to try:
> 1) Run python from an elevated shell (unlikely to make a difference);

This was the easy part. :-) Same issue.

> 2) Same strategy -- edit _nixcommon.py to always return true from
> ensure_root.

Now, it's getting a little deeper, but I will try this again tomorrow.

$ cat chkKBoard.py
#!/usr/bin/python3
import keyboard
while True:
    if keyboard.is_pressed("a"):
        print("You pressed 'a'.")
        break

$ ./chkKBoard.py
/usr/local/lib/python3.9/site-packages/keyboard/_nixkeyboard.py:110: UserWarning: Failed to create a device file using `uinput` module. Sending of events may be limited or unavailable depending on plugged-in devices.
  device = aggregate_devices('kbd')
Traceback (most recent call last):
  File "/home/E608313/./chkKBoard.py", line 4, in <module>
    if keyboard.is_pressed("a"):
  File "/usr/local/lib/python3.9/site-packages/keyboard/__init__.py", line 410, in is_pressed
    _listener.start_if_necessary()
  File "/usr/local/lib/python3.9/site-packages/keyboard/_generic.py", line 35, in start_if_necessary
    self.init()
  File "/usr/local/lib/python3.9/site-packages/keyboard/__init__.py", line 196, in init
    _os_keyboard.init()
  File "/usr/local/lib/python3.9/site-packages/keyboard/_nixkeyboard.py", line 113, in init
    build_device()
  File "/usr/local/lib/python3.9/site-packages/keyboard/_nixkeyboard.py", line 110, in build_device
    device = aggregate_devices('kbd')
  File "/usr/local/lib/python3.9/site-packages/keyboard/_nixcommon.py", line 168, in aggregate_devices
    assert fake_device
AssertionError

This is tomorrow's problem. Can't work tomorrow's problem today. :-) Thanks for the ideas.

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019