Just to give more information about the problem.
All programs that lives in `/mingw64/bin` (or `/mingw32/bin`) are native
Windows programs not depending on the msys2 dll directly. On the opposite,
all programs in `/usr/bin/` Why this information?
Because the default terminal (mintty) is a not a "real" terminal when
Windows native program sees it. Instead, Windows native program see
`mintty` as if it was a file. Hence, when you typed `python` in the
terminal, python checked the terminal and determined it was not capable of
doing interactive input/output. At this stage, it decided to wait for some
input which will never come (not exact, but good enough for this
explanation. That's why you see nothing.
The `winpty` aims at fixing this. You call your native windows program via
it and those then see a real terminal and will happily show you the correct
output and you will be able to enter input from the terminal. The `winpty`
utility works most of the time but you could hit some glitches, However, in
most cases, it works great (for python, I tested and history retrieval does
not work).
$ pacman -S winpty
$ winpty /mingw64/bin/python
Python 2.7.9 (default, May 7 2015, 19:34:28)
[GCC 4.9.2] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
Another things you can do (which I do some times to times), is to use
another terminal than `mintty` that has "native windows" features. ConEmu
should be one of them. You can also use the standard Windows cmd terminal:
Create a shortcut with the following target: C:\msys64\usr\bin\bash.exe
--login -i and with the following Start in value: C:\msys64\usr\bin
Than start the shortcut. You will have a native Windows terminal and python
will be happy, even without winpty.
Hope this helps.
Regards,
Matt
On Fri, Jul 10, 2015 at 4:20 PM Fabrice Popineau <
[email protected]> wrote:
> Or use "python -i" .
>
> Fabrice
>
> 2015-07-10 21:53 GMT+02:00 Alexey Pavlov <[email protected]>:
>
>>
>> > 10 июля 2015 г., в 22:15, Greg Jung <[email protected]> написал(а):
>> >
>> > This is my first experience with a failing python interpreter. From
>> an MSYS console window,
>> > running /mingwXX/bin/python, I don't get
>> > a prompt nor any other evidence of life.
>> >
>> > I can run it and get out the options such as --help and --version:
>> >
>> > greg@Homerw7 MSYS ~
>> > $ /mingw32/bin/python
>> >
>> >
>> > greg@Homerw7 MSYS ~
>> > $ /mingw32/bin/python --version
>> > Python 2.7.9
>> >
>> > greg@Homerw7 MSYS ~
>> > $ /mingw64/bin/python --version
>> > Python 2.7.9
>> >
>> > There are no environment variables with "PY" - do I need some?
>> > Also, I found that ^C exits but that ^D kills the window when the
>> interpreter is hung
>> > like this.
>> >
>>
>> Install «winpty» package.
>>
>> Regards,
>> Alexey.
>>
>> > Any thoughts on where my trouble is?
>> > tia, Greg
>> >
>> ------------------------------------------------------------------------------
>> > Don't Limit Your Business. Reach for the Cloud.
>> > GigeNET's Cloud Solutions provide you with the tools and support that
>> > you need to offload your IT needs and focus on growing your business.
>> > Configured For All Businesses. Start Your Cloud Today.
>> >
>> https://www.gigenetcloud.com/_______________________________________________
>> > Msys2-users mailing list
>> > [email protected]
>> > https://lists.sourceforge.net/lists/listinfo/msys2-users
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Don't Limit Your Business. Reach for the Cloud.
>> GigeNET's Cloud Solutions provide you with the tools and support that
>> you need to offload your IT needs and focus on growing your business.
>> Configured For All Businesses. Start Your Cloud Today.
>> https://www.gigenetcloud.com/
>> _______________________________________________
>> Msys2-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/msys2-users
>>
>
>
>
> --
> Fabrice Popineau
> -----------------------------
> CentraleSupelec
> Département Informatique
> 3, rue Joliot Curie
> 91192 Gif/Yvette Cedex
> Tel direct : +33 (0) 169851950
> Standard : +33 (0) 169851212
> ------------------------------
>
>
> ------------------------------------------------------------------------------
> Don't Limit Your Business. Reach for the Cloud.
> GigeNET's Cloud Solutions provide you with the tools and support that
> you need to offload your IT needs and focus on growing your business.
> Configured For All Businesses. Start Your Cloud Today.
> https://www.gigenetcloud.com/
> _______________________________________________
> Msys2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/msys2-users
>
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Msys2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/msys2-users