OSError: Unsupported platform 'CYGWIN_NT-10.0-19044'

Henry S. Thompson ht@inf.ed.ac.uk
Mon Feb 20 18:57:59 GMT 2023

Jose Isaias Cabrera via Cygwin writes:

>   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?  Thanks.

First thing to find out if it's truly broken, or just not known to

With a _safe_ test case, just try editting the code to allow Cygwin,
e.g. on line 121 of keyboard/__init__.py:

  if _platform.system() in ['Windows','CYGWIN_NT-10.0-19044']:

If that doesn't work, try a similar edit on line 123.

One way or the other, you should find out what the _real_ problem is.

       Henry S. Thompson, School of Informatics, University of Edinburgh
      10 Crichton Street, Edinburgh EH8 9AB, SCOTLAND -- (44) 131 650-4440
                Fax: (44) 131 650-4587, e-mail: ht@inf.ed.ac.uk
                       URL: http://www.ltg.ed.ac.uk/~ht/
 [mail from me _always_ has a .sig like this -- mail without it is forged spam]

The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.

More information about the Cygwin mailing list