Subject: Re: OSError: Unsupported platform 'CYGWIN_NT-10.0-19044'
From: "Henry S. Thompson via Cygwin" <[email-masked]>
To: Jose Isaias Cabrera <[email-masked]>
Cc: Jim Garrison via Cygwin <[email-masked]>
Date: Mon, 20 Feb 2023 20:48:50 +0000
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>

Jose Isaias Cabrera writes:

> ...
>   File "/usr/local/lib/python3.9/site-packages/keyboard/_nixcommon.py", line 174, in ensure_root
>     raise ImportError('You must be root to use this library on linux.')
> ImportError: You must be root to use this library on linux.
>
> More work to be done.

Two things to try:
 1) Run python from an elevated shell (unlikely to make a difference);
 2) Same strategy -- edit _nixcommon.py to always return true from
    ensure_root.

Good luck,

ht
-- 
       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: [email-masked]
                       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.

-- 
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