PowerShell is not giving up...

Questions about WAPT Packaging / Requests and help regarding Wapt packages.
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Locked
cdeze
Messages: 31
Registration: Nov 29, 2016 - 09:39

June 7, 2018 - 2:20 PM

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
User avatar
htouvet
WAPT Expert
Messages: 436
Registration: March 16, 2015 - 10:48
Contact :

June 8, 2018 - 08:48

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?
Tranquil IT
cdeze
Messages: 31
Registration: Nov 29, 2016 - 09:39

June 8, 2018 - 09:44

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
cdeze
Messages: 31
Registration: Nov 29, 2016 - 09:39

June 8, 2018 - 09:52

Locked