delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/02/20/15:50:22

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E866C3858439
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1676926170;
bh=0lLtakqLf8TCL8nkKxaZRIxFCCXyEd+WlfJ9CqFyhzM=;
h=To:Cc:Subject:References:Date:In-Reply-To:List-Id:
List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:
From:Reply-To:From;
b=eaG5kikgld7yNof0+u2wuIODeDNVSVzOnKokcKbxwpQDMUemUYd/EKLT+osXe6OQ7
K2rO/rN54AUObP2AhFMTQh3FQ8251vQI74SGG9rLwkcQ4UztYNorkNmw10P822llp7
3xvTTXc3bD8K8rxaEZz7QVUkCylUYwS0xqPclNEU=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5547B3858D20
To: Jose Isaias Cabrera <jicman AT outlook DOT com>
Cc: Jim Garrison via Cygwin <cygwin AT cygwin DOT com>
Subject: Re: OSError: Unsupported platform 'CYGWIN_NT-10.0-19044'
References: <DB9P251MB006325F99185BB6DE6FC4FD1DEA49 AT DB9P251MB0063 DOT EURP251 DOT PROD DOT OUTLOOK DOT COM>
<f5bilfw2mh4 DOT fsf AT ecclerig DOT inf DOT ed DOT ac DOT uk>
<DB9P251MB00631CC69C1D50011F6E7F53DEA49 AT DB9P251MB0063 DOT EURP251 DOT PROD DOT OUTLOOK DOT COM>
Date: Mon, 20 Feb 2023 20:48:50 +0000
In-Reply-To: <DB9P251MB00631CC69C1D50011F6E7F53DEA49@DB9P251MB0063.EURP251.PROD.OUTLOOK.COM>
(Jose Isaias Cabrera's message of "Mon\, 20 Feb 2023 20\:17\:17 +0000")
Message-ID: <f5bedqk2hcd.fsf@ecclerig.inf.ed.ac.uk>
User-Agent: Gnus/5.101 (Gnus v5.10.10) XEmacs/21.5-b34 (linux)
MIME-Version: 1.0
X-Edinburgh-Scanned: at seine.is.ed.ac.uk
X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS,
SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: "Henry S. Thompson via Cygwin" <cygwin AT cygwin DOT com>
Reply-To: "Henry S. Thompson" <ht AT inf DOT ed DOT ac DOT uk>
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT 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: ht AT inf DOT ed DOT ac DOT 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.


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019