Re: What's wrong on using Popen's communicate method?

2019-07-07 Thread jfong
eryk sun於 2019年7月7日星期日 UTC+8下午3時51分57秒寫道: > On 7/6/19, jf...@ms4.hinet.net wrote: > > > > I turn off the anti-virus and tried v3.6.8, get the same result. Usually the > > anti-virus program will warn me if something was blocked. > > In case the executable is corrupt, clear your browser cache and

Re: What's wrong on using Popen's communicate method?

2019-07-07 Thread jfong
eryk sun於 2019年7月7日星期日 UTC+8下午3時51分57秒寫道: > On 7/6/19, jf...@ms4.hinet.net wrote: > > > > I turn off the anti-virus and tried v3.6.8, get the same result. Usually the > > anti-virus program will warn me if something was blocked. > > In case the executable is corrupt, clear your browser cache and

Re: What's wrong on using Popen's communicate method?

2019-07-07 Thread eryk sun
On 7/6/19, jf...@ms4.hinet.net wrote: > > I turn off the anti-virus and tried v3.6.8, get the same result. Usually the > anti-virus program will warn me if something was blocked. In case the executable is corrupt, clear your browser cache and download the 32-bit version again:

Re: What's wrong on using Popen's communicate method?

2019-07-06 Thread jfong
eryk sun於 2019年7月7日星期日 UTC+8下午12時00分47秒寫道: > On 7/6/19, jf...@ms4.hinet.net wrote: > > > > In TEMP, there is only one file "chrome_installer.log" dated at the time of > > doing the upgrade (strange?, why chrome?). No errors in it. > > So the installer doesn't even execute. Do you maybe have an >

Re: What's wrong on using Popen's communicate method?

2019-07-06 Thread eryk sun
On 7/6/19, jf...@ms4.hinet.net wrote: > > In TEMP, there is only one file "chrome_installer.log" dated at the time of > doing the upgrade (strange?, why chrome?). No errors in it. So the installer doesn't even execute. Do you maybe have an anti-malware program that's blocking its execution?

Re: What's wrong on using Popen's communicate method?

2019-07-06 Thread jfong
eryk sun於 2019年7月7日星期日 UTC+8上午10時13分34秒寫道: > On 7/6/19, jf...@ms4.hinet.net wrote: > > > > According to the info you give, I have done the following steps: > > 1. Upgrade to SP2 first. > > 2. Install the CRT update. > > But the result is still the same, nothing happens after double click the > >

Re: What's wrong on using Popen's communicate method?

2019-07-06 Thread eryk sun
On 7/6/19, jf...@ms4.hinet.net wrote: > > According to the info you give, I have done the following steps: > 1. Upgrade to SP2 first. > 2. Install the CRT update. > But the result is still the same, nothing happens after double click the > file python-3.6.1.exe. Did you reboot after installing

Re: What's wrong on using Popen's communicate method?

2019-07-06 Thread jfong
eryk sun於 2019年7月6日星期六 UTC+8下午6時26分42秒寫道: > On 7/6/19, jf...@ms4.hinet.net wrote: > > eryk sun於 2019年7月6日星期六 UTC+8下午2時13分23秒寫道: > > > >> Major versions of Python support Windows versions that have extended > >> support from Microsoft at the time of the first release. For Vista, > >> extended

Re: What's wrong on using Popen's communicate method?

2019-07-06 Thread jfong
Michael Torrie於 2019年7月6日星期六 UTC+8下午12時02分02秒寫道: > On 07/05/2019 09:03 PM, jf...@ms4.hinet.net wrote: > > From Vista to Win10? That's a three generation gap! Buy a new PC might > > be a better solution:-) > > Maybe. Windows 10 would probably run okay on that machine. It might be > 10 years

Re: What's wrong on using Popen's communicate method?

2019-07-06 Thread eryk sun
On 7/6/19, jf...@ms4.hinet.net wrote: > eryk sun於 2019年7月6日星期六 UTC+8下午2時13分23秒寫道: > >> Major versions of Python support Windows versions that have extended >> support from Microsoft at the time of the first release. For Vista, >> extended support ended on 2017-04-11. Python 3.6 was released on >>

Re: What's wrong on using Popen's communicate method?

2019-07-06 Thread jfong
eryk sun於 2019年7月6日星期六 UTC+8下午2時13分23秒寫道: > On 7/5/19, jf...@ms4.hinet.net wrote: > > Terry Reedy於 2019年7月5日星期五 UTC+8上午12時13分25秒寫道: > > > >> Upgrade to 3.7 or 3.8 to get hundreds of bug fixes, let alone new > >> features. Both subprocess and multiprocessing have gotten fixes. > > > > I can't

Re: What's wrong on using Popen's communicate method?

2019-07-06 Thread eryk sun
On 7/5/19, jf...@ms4.hinet.net wrote: > Terry Reedy於 2019年7月5日星期五 UTC+8上午12時13分25秒寫道: > >> Upgrade to 3.7 or 3.8 to get hundreds of bug fixes, let alone new >> features. Both subprocess and multiprocessing have gotten fixes. > > I can't because my OS is Vista and v3.4 is the last it can run:-(

Re: What's wrong on using Popen's communicate method?

2019-07-05 Thread Chris Angelico
On Sat, Jul 6, 2019 at 2:03 PM Michael Torrie wrote: > > On 07/05/2019 09:03 PM, jf...@ms4.hinet.net wrote: > > From Vista to Win10? That's a three generation gap! Buy a new PC might > > be a better solution:-) > > Maybe. Windows 10 would probably run okay on that machine. It might be > 10

Re: What's wrong on using Popen's communicate method?

2019-07-05 Thread Michael Torrie
On 07/05/2019 09:03 PM, jf...@ms4.hinet.net wrote: > From Vista to Win10? That's a three generation gap! Buy a new PC might be > a better solution:-) Maybe. Windows 10 would probably run okay on that machine. It might be 10 years old, but if it's 64-bit, Win 10 should run on it. You could

Re: What's wrong on using Popen's communicate method?

2019-07-05 Thread jfong
Chris Angelico於 2019年7月6日星期六 UTC+8上午10時48分10秒寫道: > On Sat, Jul 6, 2019 at 12:31 PM wrote: > > > > Terry Reedy於 2019年7月5日星期五 UTC+8上午12時13分25秒寫道: > > > On 7/3/2019 7:57 PM, jf...@ms4.hinet.net wrote: > > > > I have the test0.py below. I expect to see 'abcd' showing in the > > > > notepad window: >

Re: What's wrong on using Popen's communicate method?

2019-07-05 Thread Chris Angelico
On Sat, Jul 6, 2019 at 12:31 PM wrote: > > Terry Reedy於 2019年7月5日星期五 UTC+8上午12時13分25秒寫道: > > On 7/3/2019 7:57 PM, jf...@ms4.hinet.net wrote: > > > I have the test0.py below. I expect to see 'abcd' showing in the notepad > > > window: > > > - > > > import subprocess as sp > > > p0 =

Re: What's wrong on using Popen's communicate method?

2019-07-05 Thread jfong
Terry Reedy於 2019年7月5日星期五 UTC+8上午12時13分25秒寫道: > On 7/3/2019 7:57 PM, jf...@ms4.hinet.net wrote: > > I have the test0.py below. I expect to see 'abcd' showing in the notepad > > window: > > - > > import subprocess as sp > > p0 = sp.Popen('notepad.exe', stdin=sp.PIPE) > >

Re: What's wrong on using Popen's communicate method?

2019-07-04 Thread Terry Reedy
On 7/3/2019 7:57 PM, jf...@ms4.hinet.net wrote: I have the test0.py below. I expect to see 'abcd' showing in the notepad window: - import subprocess as sp p0 = sp.Popen('notepad.exe', stdin=sp.PIPE) p0.communicate(input=b'abcd') - But nothing happens. The notepad is completely

Re: What's wrong on using Popen's communicate method?

2019-07-03 Thread jfong
Wildman於 2019年7月4日星期四 UTC+8上午11時15分57秒寫道: > On Thu, 04 Jul 2019 10:36:36 +1000, Cameron Simpson wrote: > > > On 03Jul2019 16:57, Jach Fong wrote: > >>I have the test0.py below. I expect to see 'abcd' showing in the notepad > >>window: > >>- > >>import subprocess as sp > >>p0 =

Re: What's wrong on using Popen's communicate method?

2019-07-03 Thread Wildman via Python-list
On Thu, 04 Jul 2019 10:36:36 +1000, Cameron Simpson wrote: > On 03Jul2019 16:57, Jach Fong wrote: >>I have the test0.py below. I expect to see 'abcd' showing in the notepad >>window: >>- >>import subprocess as sp >>p0 = sp.Popen('notepad.exe', stdin=sp.PIPE)

Re: What's wrong on using Popen's communicate method?

2019-07-03 Thread Chris Angelico
On Thu, Jul 4, 2019 at 11:31 AM wrote: > > Chris Angelico於 2019年7月4日星期四 UTC+8上午8時37分13秒寫道: > > On Thu, Jul 4, 2019 at 10:01 AM wrote: > > > > > > I have the test0.py below. I expect to see 'abcd' showing in the notepad > > > window: > > > - > > > import subprocess as sp > > > p0 =

Re: What's wrong on using Popen's communicate method?

2019-07-03 Thread Aldwin Pollefeyt
This is same as echo abcd | notepad.exein Command Prompt. You won't see the abcd neither. On Thu, Jul 4, 2019 at 8:41 AM Chris Angelico wrote: > On Thu, Jul 4, 2019 at 10:01 AM wrote: > > > > I have the test0.py below. I expect to see 'abcd' showing in the notepad > window: > > -

Re: What's wrong on using Popen's communicate method?

2019-07-03 Thread jfong
Chris Angelico於 2019年7月4日星期四 UTC+8上午8時37分13秒寫道: > On Thu, Jul 4, 2019 at 10:01 AM wrote: > > > > I have the test0.py below. I expect to see 'abcd' showing in the notepad > > window: > > - > > import subprocess as sp > > p0 = sp.Popen('notepad.exe', stdin=sp.PIPE) > >

Re: What's wrong on using Popen's communicate method?

2019-07-03 Thread Chris Angelico
On Thu, Jul 4, 2019 at 10:01 AM wrote: > > I have the test0.py below. I expect to see 'abcd' showing in the notepad > window: > - > import subprocess as sp > p0 = sp.Popen('notepad.exe', stdin=sp.PIPE) > p0.communicate(input=b'abcd') > - > But nothing happens. The notepad is

Re: What's wrong on using Popen's communicate method?

2019-07-03 Thread Cameron Simpson
On 03Jul2019 16:57, Jach Fong wrote: I have the test0.py below. I expect to see 'abcd' showing in the notepad window: - import subprocess as sp p0 = sp.Popen('notepad.exe', stdin=sp.PIPE) p0.communicate(input=b'abcd') - But nothing happens. The notepad is completely empty. What

What's wrong on using Popen's communicate method?

2019-07-03 Thread jfong
I have the test0.py below. I expect to see 'abcd' showing in the notepad window: - import subprocess as sp p0 = sp.Popen('notepad.exe', stdin=sp.PIPE) p0.communicate(input=b'abcd') - But nothing happens. The notepad is completely empty. What have I missed? --Jach PS. I am using