Page 2 of 2

Re: Customer error

Published: March 30, 2018 - 10:07
by eayglon
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.

Re: Customer error

Published: April 4, 2018 - 8:29 AM
by eayglon
Hello,

Additional test: even after reinstalling, it's still random: it works on some machines and not others.

Re: Customer error

Published: April 4, 2018 - 9:12 AM
by htouvet
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.

Re: Customer error

Published: April 5, 2018 - 2:24 PM
by eayglon
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.