From: Brian Inglis <Brian.Inglis@Shaw.ca>
To: cygwin@cygwin.com
Subject: Re: OSError: Unsupported platform 'CYGWIN_NT-10.0-19044'
Date: Wed, 22 Feb 2023 09:54:44 -0700 [thread overview]
Message-ID: <310d95f3-6c85-6295-278f-f31fab0e92ea@Shaw.ca> (raw)
In-Reply-To: <DB9P251MB006325F99185BB6DE6FC4FD1DEA49@DB9P251MB0063.EURP251.PROD.OUTLOOK.COM>
On 2023-02-20 11:04, Jose Isaias Cabrera via Cygwin wrote:
> Python 3 apparently does not support the python keyboard library in Cygwin:
> $ python3
> Python 3.9.10 (main, Jan 20 2022, 21:37:52)
> [GCC 11.2.0] on cygwin
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import keyboard
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "/usr/local/lib/python3.9/site-packages/keyboard/__init__.py", line 128, in <module>
> raise OSError("Unsupported platform '{}'".format(_platform.system()))
> OSError: Unsupported platform 'CYGWIN_NT-10.0-19044'
>>>>
> Any ideas on how I can make this work?
Post a bug that given the script runs in python, it works and is supported!
You may want to mention that uname -m (ARCH) and -o (Cygwin) are the safe
options, -p and -i are optional, and uname -s may contain unexpected qualifiers
(like Windows version and patch).
Perhaps on Cygwin platform.system() should return uname -o instead of -s?
If you want to try and fix it you could have it use a regex or a different
method and make it work like some generic POSIX API platform:
https://docs.python.org/3/library/platform.html
--
Take care. Thanks, Brian Inglis Calgary, Alberta, Canada
La perfection est atteinte Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter not when there is no more to add
mais lorsqu'il n'y a plus rien à retirer but when there is no more to cut
-- Antoine de Saint-Exupéry
next prev parent reply other threads:[~2023-02-22 16:54 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
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 [this message]
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=310d95f3-6c85-6295-278f-f31fab0e92ea@Shaw.ca \
--to=brian.inglis@shaw.ca \
--cc=cygwin@cygwin.com \
/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).