[RESOLVED] Customer error

Share your tips or issues concerning the WAPT Console or WAPT Agent here
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
eayglon
Messages: 9
Registration: March 23, 2018 - 10:01

March 30, 2018 - 10:07

Good morning,

After adding the code to setuphelpers.py

Code: Select all

Traceback (most recent call last):
  File "<string>", line 46, in <module>
  File "c:\Program Files (x86)\wapt\common.py", line 122, in <module>
    import setuphelpers
  File "c:\Program Files (x86)\wapt\setuphelpers.py", line 2435
    -        sc = winshell.shortcut(lnk)
    ^
IndentationError: expected an indented block
Exception at 0043E3C4: EPyIndentationError:
exceptions.IndentationError: expected an indented block (line 2435, offset 0): '-        sc = winshell.shortcut(lnk)'.
///Additional test.
I thought I'd noticed that the client needed to be reinstalled on the problematic machines for it to work. I just tested it via a GPO deployment: it's confirmed. Deploying the client twice on the same machine works fine.
eayglon
Messages: 9
Registration: March 23, 2018 - 10:01

April 4, 2018 - 8:29 AM

Hello,

Additional test: even after reinstalling, it's still random: it works on some machines and not others.
User avatar
htouvet
WAPT Expert
Messages: 436
Registration: March 16, 2015 - 10:48
Contact :

April 4, 2018 - 9:12 AM

eayglon wrote: March 30, 2018 - 10:07 Good morning,

After adding the code to setuphelpers.py

Code: Select all

Traceback (most recent call last):
  File "<string>", line 46, in <module>
  File "c:\Program Files (x86)\wapt\common.py", line 122, in <module>
    import setuphelpers
  File "c:\Program Files (x86)\wapt\setuphelpers.py", line 2435
    -        sc = winshell.shortcut(lnk)
    ^
IndentationError: expected an indented block
Exception at 0043E3C4: EPyIndentationError:
exceptions.IndentationError: expected an indented block (line 2435, offset 0): '-        sc = winshell.shortcut(lnk)'.
///Additional test.
I thought I'd noticed that the client needed to be reinstalled on the problematic machines for it to work. I just tested it via a GPO deployment: it's confirmed. Deploying the client twice on the same machine works fine.
If you patch the source code manually, be careful not to introduce any syntax errors.
It seems you have left a '-' sign at the beginning of the line, which is not correct from a Python syntax point of view.

It's best to download the entire modified file if you want to be sure...

The patch included in version 1.5.1.23 (https://wapt.tranquil.it/wapt/releases/ ... tserup.exe ) just prevents the inventory from crashing completely if the startup folder does not exist.
Tranquil IT
eayglon
Messages: 9
Registration: March 23, 2018 - 10:01

April 5, 2018 - 2:24 PM

Thank you, with the addition (and without making a mistake in doing the cc) it's ok: the machine is back up on the wapt server.
Locked