From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from omta001.cacentral1.a.cloudfilter.net (omta001.cacentral1.a.cloudfilter.net [3.97.99.32]) by sourceware.org (Postfix) with ESMTPS id 1C3B63858D33 for ; Wed, 22 Feb 2023 16:54:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1C3B63858D33 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=Shaw.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=shaw.ca Received: from shw-obgw-4002a.ext.cloudfilter.net ([10.228.9.250]) by cmsmtp with ESMTP id Us0GpXntWuZMSUsODprIh2; Wed, 22 Feb 2023 16:54:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=shaw.ca; s=s20180605; t=1677084885; bh=HxmSLNvvD7+L8LhCywBPzThyM8/Wau8oG8JOveaxTTs=; h=Date:Reply-To:Subject:To:References:From:In-Reply-To; b=CXoTMTJr6W0O+LGD6CdRJEqt7e6PTxw3adbKQYQ+t85ZF7GoYptOd3a90tnsNuPwA py1+zlukL8+rUqkjBzWPDlIJwPKR86Dkov75EmLWecfBAsCgLUrFvKFTFyKkTfuMc1 HVGE/dcfvkV3hIfpvUk0nM8g1Rn4KBBMRBEObrH30KUuUVXPGFjgvQ/G83p3LwBYWB dbPFLCkZv+TcXSM13XFewUtLqP8GiGXoF+U1iZCzcdwGzC3n/OsDLfmVCPVUludGld k2lqYVjTqIVEErKg/1oREdcE7GQIVnsrMZlnMhI31Vy81cbOHKmaavCJ/mVp9fdScf opIDBxEQF7ebQ== Received: from [10.0.0.5] ([184.64.102.149]) by cmsmtp with ESMTP id UsOCpeAMkyAOeUsOCpqq6t; Wed, 22 Feb 2023 16:54:45 +0000 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 Reply-To: cygwin@cygwin.com Subject: Re: OSError: Unsupported platform 'CYGWIN_NT-10.0-19044' Content-Language: en-CA To: cygwin@cygwin.com References: From: Brian Inglis Organization: Inglis In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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 List-Id: 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 "", line 1, in >   File "/usr/local/lib/python3.9/site-packages/keyboard/__init__.py", line 128, in >     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