From: Jose Isaias Cabrera <jicman@outlook.com>
To: "Henry S. Thompson" <ht@inf.ed.ac.uk>
Cc: Jim Garrison via Cygwin <cygwin@cygwin.com>
Subject: Re: OSError: Unsupported platform 'CYGWIN_NT-10.0-19044'
Date: Mon, 20 Feb 2023 21:41:51 +0000 [thread overview]
Message-ID: <AM9P251MB005414C9F9E1888363E29AC9DEA49@AM9P251MB0054.EURP251.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <f5bedqk2hcd.fsf@ecclerig.inf.ed.ac.uk>
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.
next prev parent reply other threads:[~2023-02-20 21:41 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-20 18:04 Jose Isaias Cabrera
2023-02-20 18:57 ` Henry S. Thompson
2023-02-20 20:17 ` Jose Isaias Cabrera
2023-02-20 20:48 ` Henry S. Thompson
2023-02-20 21:41 ` Jose Isaias Cabrera [this message]
2023-02-20 23:13 ` Eliot Moss
2023-02-20 18:58 ` Marco Atzeri
2023-02-20 19:31 ` Jose Isaias Cabrera
2023-02-21 7:52 ` Csaba Raduly
2023-02-21 20:03 ` Jose Isaias Cabrera
2023-02-21 20:52 ` Eliot Moss
2023-02-22 15:56 ` Brian Inglis
2023-02-22 16:54 ` Brian Inglis
2023-02-22 18:06 ` Jose Isaias Cabrera
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AM9P251MB005414C9F9E1888363E29AC9DEA49@AM9P251MB0054.EURP251.PROD.OUTLOOK.COM \
--to=jicman@outlook.com \
--cc=cygwin@cygwin.com \
--cc=ht@inf.ed.ac.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).