delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/07/03/18:14:15

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7AB9F3856DCB
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1688422416;
bh=A5VWpUph9y3+MHsK9NPJJ1EPZ2zildsOciyCqPnJo04=;
h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post:
List-Help:List-Subscribe:From:Reply-To:From;
b=Cb6RHKcnLdrXCr2302HQQzVlyk3Ib1t7i8jEYbcsmc7414Zs1AsZakCokKpQi8FU2
Jr1EMzVMxcE7/SLaNvw3llUrMOtm1H84bK1rhEQMlaBrlm7DQ8dtfOkEJ51qUw9LH8
Xy3d7MG//A2maFyD64le6MpgvsDfQitd5F8PTado=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 076BB385840F
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20221208; t=1688422378; x=1691014378;
h=to:subject:message-id:date:from:mime-version:x-gm-message-state
:from:to:cc:subject:date:message-id:reply-to;
bh=evNmfVZtMJt2NRKqdzI6oWfWG64id0sdZbMV7w6MZTE=;
b=O16lB3UQ1KwoZeotIcvuEsw+mJrHAFpy8Z1gFMZ9kKZyQzcQfLfu1QkbYIU9rWHmrK
NIeCFrLUMUz4ZOhq+Y5hiugy+T3osLPHbKEseO2SnonZR4C7QMviny+LUta/Ug1v1FX2
fvwIM3yw6aMWnavmjCySs+lZFI2GyazpZ2wCLjBofWg9G6ts43Oys6eX5siOuYfqIsdn
pD0uJ5VNb319CPj8SRC3vx/ZRy8DW/gGNWAjLh7+XGMb85JBx1dh8cUun2lUuUb8p/6A
LxJjvOj8/uSxlJNMb4KpteHuXzZR+O79BPaCK69YcmAx0jj0UCTSXyApS1JR2Fdg5SKg
Bhtg==
X-Gm-Message-State: ABy/qLZVIius9h8sOUnSpIw9OVOzuZrCeXpjNqALEKflfnuCJMl3GYLz
bQAYIfiKTV7QlS/Mz8UJsPMtN1mMVOwp/P/4rZXMiZlRhBU=
X-Google-Smtp-Source: APBJJlGScDNP2qp2E1yiEfNvFbTVJzJ5roBZ7fP4Eq9P2VyQVRv+f7HjovDtj19nE6WQOGPKpu6VV1DSsTNkBHzR1GQ=
X-Received: by 2002:a2e:a17a:0:b0:2b6:dc84:b93e with SMTP id
u26-20020a2ea17a000000b002b6dc84b93emr4945731ljl.21.1688422378052; Mon, 03
Jul 2023 15:12:58 -0700 (PDT)
MIME-Version: 1.0
Date: Mon, 3 Jul 2023 18:12:46 -0400
Message-ID: <CAHvsuxkDWyCrLkcATSdJv2D+y=yLAWr9T2-eLAnO20jVWysiuw@mail.gmail.com>
Subject: Conda Python script not getting right command line argument
To: cygwin AT cygwin DOT com
X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT,
FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP,
T_SCC_BODY_TEXT_LINE 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-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: ravi r via Cygwin <cygwin AT cygwin DOT com>
Reply-To: ravi r <ravi480000 AT gmail DOT com>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

Using

Cygwin Python interpreter invoked from shebang line
    $ cat /tmp/script1
    #!/usr/bin/python

    print("hello");
   $ /tmp/script1
    hello
    $
works as expected.


Conda Python interpreter invoked from shebang line
    $ cat /tmp/script2
    #!/usr/local/anaconda3/python

    print("hello");
    $ /tmp/script2
    C:\cygwin64\usr\local\anaconda3\python.exe: can't open file
'C:\\tmp\\script2':
    [Errno 2] No such file or directory
    $
fails to get the right path of the input file to execute. The correct
path that should been
passed to the Conda interpreter would have been
    c:\cygwin64\tmp\script2

Version of cygwin being used
    base-cygwin                                         3.8-2

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