public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: marco atzeri <marco.atzeri@gmail.com>
To: Derek Foster <foster@coherentlogix.com>
Cc: The Cygwin Mailing List <cygwin@cygwin.com>
Subject: Re: Apparent regression bug from Python 3.8 to 3.9: can't launch scripts using absolute Windows paths
Date: Mon, 25 Apr 2022 09:53:08 +0200	[thread overview]
Message-ID: <CAB8Xom9X1jJ1=Qj1bDECeRVPHUaMk5UKXVn8wda0tW4SPPJkCg@mail.gmail.com> (raw)
In-Reply-To: <384791970.449384.1650869933309.JavaMail.zimbra@coherentlogix.com>

On Mon, Apr 25, 2022 at 8:59 AM Derek Foster  wrote:
>
> Hi, folks.
>
> I have been having problems with Python 3.9 packaged with Cygwin that I did not have with Python 3.8.
>
> Specifically, I am seeing the following:
>
> C:\example>copy con test.py
> #!/usr/bin/env python3
> print('hello')
> ^Z
>
> C:\example>c:\cygwin64\bin\python3.8 test.py
> hello
>
> C:\example>c:\cygwin64\bin\python3.9 test.py
> hello
>
> C:\example>c:\cygwin64\bin\python3.8 C:\example\test.py
> hello
>
> C:\example>c:\cygwin64\bin\python3.9 C:\example\test.py
> /usr/bin/python3.9: can't open file '/cygdrive/c/example/C:\example\test.py': [Errno 2] No such file or directory
>
> There is an open bug on CPython for this ( https://github.com/python/cpython/issues/90907 ), but the people there seem to think it's something that the Cygwin folks should probably address, and I haven't been able to find a corresponding Cygwin bug.
>
> What do I need to do to get this information to the appropriate team so that this bug can be fixed?

Neither of the two is a bug. The usage of Windows style path is not
guaranteed on any Cygwin package.
Some programs handle it other don't

Use "cygpath" to convert it.

There is nothing specific on Python patches for Cygwin to handle it.
More likely a upstream change disabled this "side" feature


> Thanks for any information!

Regards
Marco

      reply	other threads:[~2022-04-25  7:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-25  6:58 Derek Foster
2022-04-25  7:53 ` marco atzeri [this message]

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='CAB8Xom9X1jJ1=Qj1bDECeRVPHUaMk5UKXVn8wda0tW4SPPJkCg@mail.gmail.com' \
    --to=marco.atzeri@gmail.com \
    --cc=cygwin@cygwin.com \
    --cc=foster@coherentlogix.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).