X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4E6A13858C83
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1677084904;
	bh=gu0OKepAp9K0vdIdL1g04u7qtXMDI8aNG57AMEeeaxw=;
	h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe:
	 List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
	 From;
	b=srw9kbvpOAUA/IJGqFjKtcCBw8+N8uD+d9iu1a2RdQn3BEDr+knTDQLvNhMEjMPHQ
	 12b7SeJeV8oefxX4Rcxrqy/qFAB9yh2yvKa1bwCHiScItuZY9bNaawBDzOdppReS7S
	 ombPykqdgNqaPSOrWbQwyS1iNRAGY41QYe1zS8bs=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1C3B63858D33
X-Authority-Analysis: v=2.4 cv=e5oV9Il/ c=1 sm=1 tr=0 ts=63f648d5
 a=DxHlV3/gbUaP7LOF0QAmaA==:117 a=DxHlV3/gbUaP7LOF0QAmaA==:17
 a=IkcTkHD0fZMA:10 a=8AHkEIZyAAAA:8 a=vpg7BIOqUtas48lO_sgA:9 a=QEXdDO2ut3YA:10
 a=dEsrTJFw7cgA:10
Message-ID: <310d95f3-6c85-6295-278f-f31fab0e92ea@Shaw.ca>
Date: Wed, 22 Feb 2023 09:54:44 -0700
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
 Thunderbird/102.8.0
Subject: Re: OSError: Unsupported platform 'CYGWIN_NT-10.0-19044'
Content-Language: en-CA
To: cygwin@cygwin.com
References: <DB9P251MB006325F99185BB6DE6FC4FD1DEA49@DB9P251MB0063.EURP251.PROD.OUTLOOK.COM>
Organization: Inglis
In-Reply-To: <DB9P251MB006325F99185BB6DE6FC4FD1DEA49@DB9P251MB0063.EURP251.PROD.OUTLOOK.COM>
X-CMAE-Envelope: MS4xfHAUMFHa3Vy83oF8bV+kGbDP17OiCxMV8tvNSNePiHL4xza7zW/bgZxAv9Ldhf6rb/tp3aJ6yNlzw9C+qet6Z+CGZ0Wmuy0RjxzvvRWmvvTYZVd44GRu
 0l8Wxvpt7SKIZu0Qm/45sGc3CS64xmaorcieRn6KhIXH59wsJJY6K2PHaE2IAvZibMR5bUb+6Yg1fw==
X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00, DKIM_SIGNED,
 DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_DNSWL_LOW,
 RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, 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@cygwin.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Brian Inglis via Cygwin <cygwin@cygwin.com>
Reply-To: cygwin@cygwin.com
Cc: Brian Inglis <Brian.Inglis@Shaw.ca>
Content-Type: text/plain; charset="utf-8"; Format="flowed"
Errors-To: cygwin-bounces+archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie.com@cygwin.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 31MGtSSp002423

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

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

