OSError: Unsupported platform 'CYGWIN_NT-10.0-19044'
Henry S. Thompson
ht@inf.ed.ac.uk
Mon Feb 20 20:48:50 GMT 2023
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: 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