Page 1 of 1

PowerShell is not giving up...

Published: June 7, 2018 - 2:20 PM
by cdeze
I'm having a weird issue with the PowerShell
I have to do a ctrl+c

Code: Select all

>>> from setuphelpers import *
>>> run_powershell('write-host toto')
CTRL+C
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "setuphelpers.py", line 3991, in run_powershell
    **kwargs)
  File "setuphelpers.py", line 962, in run
    stdout_worker.join(timeout)
  File "C:\Program Files (x86)\wapt\lib\threading.py", line 951, in join
    self.__block.wait(delay)
  File "C:\Program Files (x86)\wapt\lib\threading.py", line 359, in wait
    _sleep(delay)
KeyboardInterrupt

Re: PowerShell won't return control...

Published: June 8, 2018 - 8:48 AM
by htouvet
If the setuphelpers file is from before 5/12/2016, this may have been fixed since then... (which version of Wapt?)
Otherwise, which version of PowerShell are you using?

Re: PowerShell won't return control...

Published: June 8, 2018 - 09:44
by cdeze
hello,
I have version 1.5.1.23 on Win7 32b
PS C:\Users\Administrator\Downloads> $Psversiontable

Name Value
---- -----
CLRVersion 2.0.50727.5420
BuildVersion 6.1.7601.17514
PSVersion 2.0
WSManStackVersion 2.0
PSCompatibleVersions {1.0, 2.0}
SerializationVersion 1.1.0.1
PSRemotingProtocolVersion 2.1

Re: PowerShell won't return control...

Published: June 8, 2018 - 09:52
by cdeze