0
1
I will try to be as descriptive but brief as possible...
I have been using GitBash in that past on Win10 successfully. I came back to my Windows machine after not using it for a bit and can't seem to get it to launch python scripts it ran without issue previously. I have an alias created for Python3 called py. For instance...
$ py --version
Python 3.7.1
I can get into the iterator just fine
$ py -i
Python 3.7.1 (v3.7.1:260ec2c36a, Oct 20 2018, 14:57:15) [MSC v.1915 64 bit
(AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
I can run my scripts just fine in the iterator. Exiting with ctrl+z throws an error, however. In conjunction with this error, when I try to run the scipts from the command line, it hangs and does not respond. See below...
$ py -i
Python 3.7.1 (v3.7.1:260ec2c36a, Oct 20 2018, 14:57:15) [MSC v.1915 64 bit
(AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> 0 [sig] bash 5224! sigpacket::process: Suppressing signal 18 to
win32 process (pid 5160)
>>> exit()
$ py Lottery.py
It does nothing from this point, until I hit "Enter", at which time it throws a python error and returns me to my command line. I know the python script to be working. I can post the python error if it is helpful, though I think it is a red-herring and not art of the GitBash issue at hand.
Any ideas as to why GitBash is not playing well while trying run python scripts? Thanks in advance!
In bash Ctrl-Z stops the current process (you can then use
bg
to make it continue in the background orfg
to give it back the terminal focus). If you want to stop Python try Ctrl-D. – xenoid – 2019-02-08T00:14:49.510