From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by sourceware.org (Postfix) with ESMTPS id 6E3A939B8C89 for ; Wed, 3 Feb 2021 18:01:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 6E3A939B8C89 Received: by mail-ed1-x533.google.com with SMTP id z22so654217edb.9 for ; Wed, 03 Feb 2021 10:01:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=B5Hxpdnzpdy1MZ+M3eQAZtXiAVNasYZq9dvn8pZlwXA=; b=YYmXFmX7ZBPWvCnNq32udCJd/yHdrXXaOWcicOivA62h9ocKNRoTxpS1h9LXijN4e6 0n/4Ld8qif+2O+0fcdhGnXUraZJcYcQ5KIa3ALX3UoYpIUzYmC90hcyqIG/iC5QL6ruV ZPRMt50yMrkia0Ra8/llrrie01efR2U7HjtivLptRk3RuGg2xPMRa/ScClQCKTuILXKg MQxRGyqp7oY1s4dTNTtXZUoCX/jhfSpe6dbX8MLx/ytBmiz1Tda7OZ/SnzeI7wm0g7DH P3h2AZuy4SqaFl7vCo6bWvjqnpzVgjI1V6qvV2RYwG918Xhwmq95K1pd8AKUWLjZmY4y lSZg== X-Gm-Message-State: AOAM530Yop/FjaWE1EPM2jl4ZAHT/rNyRjTgZS7lHMB5GWtzPZ24jjlO W/CGyZAEyrI11b5erPOsZqis8kGd+4cumQ== X-Google-Smtp-Source: ABdhPJxC9fuWrT3YJf473GZ6y7hWkwfbR2me9H2LCygDKVMnblILpHb3wKWgw9jui+jsCbW5WFjXOg== X-Received: by 2002:a05:6402:3495:: with SMTP id v21mr4186939edc.323.1612375298505; Wed, 03 Feb 2021 10:01:38 -0800 (PST) Received: from ?IPv6:2003:cc:9f02:b29:fc48:5883:124:5f8f? (p200300cc9f020b29fc48588301245f8f.dip0.t-ipconnect.de. [2003:cc:9f02:b29:fc48:5883:124:5f8f]) by smtp.gmail.com with ESMTPSA id i21sm1249952edy.9.2021.02.03.10.01.37 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 03 Feb 2021 10:01:37 -0800 (PST) Subject: Re: python sys.executable inconsistency if called from cmd To: cygwin@cygwin.com References: <399245376.20210203182748@yandex.ru> From: Marco Atzeri Message-ID: <78e9afc4-a17e-5e04-2632-cd7c57489e7e@gmail.com> Date: Wed, 3 Feb 2021 19:01:37 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: it Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Feb 2021 18:01:42 -0000 On 03.02.2021 17:17, Lemke, Michael SF/HZA-ZIC2 wrote: > On Wednesday, February 3, 2021 4:28 PM Andrey Repin wrote: >> Greetings, Lemke, Michael SF/HZA-ZIC2! >> >>> I don't know anything about python but want to use cygwin's >>> python from nodejs npm with node-gyp. The node-gyp module is trying to >>> find the python executable path from sys.executable and fails. >> >> If that's true, then it should be fixed upstream. > > Good to know but I doubt that they will. For those who need this - > here is a workaround for node-gyp v5.1.0 I just found: > > cygwin> mkdir /c/Python37 > cygwin> ln `which python3.6m` /c/Python37/python.exe > > I aware of the version clash here but c:\Python37 is one of a > few explicit locations this node-gyp looks at. Doesn't seem > confused if the versions don't match. The file you link to > must be the actual Cygwin executable not any of the python > links in /bin. > Hi Michael, do you know that python3.7 is also available in Cygwin ? All versions availabe are: $ ls /usr/bin/python3* | grep -v config /usr/bin/python3 /usr/bin/python3.6 /usr/bin/python3.6m.exe /usr/bin/python3.7 /usr/bin/python3.7m.exe /usr/bin/python3.8.exe Where have you installed the node-gyp v5.1.0 and how ? Regards Marco