delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/02/03/13:02:24

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6DF7A39C0753
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1612375303;
bh=VAj83rZ8DeDEetXVQHXi8h3utIZjaXLQTqcEREO/yXI=;
h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=dxpKqzuVM1Z2LmjA28P9HpCxNONv6qNMsF/1rFzWgJzZxr5sGbtduyHGLT7RIYYHY
q8fcBS7L46N5OVKQZIghjoHf4M6jaiIF1rT4EFthwiBt39oK4EpECSi22Kr48OwCG6
xhFBrZ1k18HjBkVpe1/uxxiwshI2wu4kKwV50Esc=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 6E3A939B8C89
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)
Subject: Re: python sys.executable inconsistency if called from cmd
To: cygwin AT cygwin DOT com
References: <VI1PR03MB644670814A7A43C6934EBC93BEB49 AT VI1PR03MB6446 DOT eurprd03 DOT prod DOT outlook DOT com>
<399245376 DOT 20210203182748 AT yandex DOT ru>
<VI1PR03MB64465B94BA262E27B051920DBEB49 AT VI1PR03MB6446 DOT eurprd03 DOT prod DOT outlook DOT com>
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: <VI1PR03MB64465B94BA262E27B051920DBEB49@VI1PR03MB6446.eurprd03.prod.outlook.com>
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 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: Marco Atzeri via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Marco Atzeri <marco DOT atzeri AT gmail DOT com>
Errors-To: cygwin-bounces AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

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

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