public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: ravi r <ravi480000@gmail.com>
To: cygwin@cygwin.com
Subject: Conda Python script not getting right command line argument
Date: Mon, 3 Jul 2023 18:12:46 -0400	[thread overview]
Message-ID: <CAHvsuxkDWyCrLkcATSdJv2D+y=yLAWr9T2-eLAnO20jVWysiuw@mail.gmail.com> (raw)

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

             reply	other threads:[~2023-07-03 22:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-03 22:12 ravi r [this message]
2023-07-04  0:04 ` Brian Inglis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAHvsuxkDWyCrLkcATSdJv2D+y=yLAWr9T2-eLAnO20jVWysiuw@mail.gmail.com' \
    --to=ravi480000@gmail.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).