[RESOLVED] WAPT audit error following update to -38

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
PaulSLA
Messages: 23
Registration: Oct 10, 2023 - 11:23

November 29, 2024 - 09:31

Good morning,

Following the BitLocker audit package update, I'm getting an error without having touched the code inside (I initially modified it to add our certificate and then tried again without making any changes). In both cases, I get this error:

Code: Select all

 https://srv-wapt.XXXX.dom/wapt/XXXX-audit-bitlocker_10.6.0-41_windows_10.0_PREPROD_f0fbc8a41032a3c9a76b1ee74e56ccfb.wapt : 9384 / 9384 (100%) (594 KB/s)
Erreur lors de l'installation de ['XXXX-audit-bitlocker(=10.6.0-41)']: erreurs dans les paquets [[PackageRequest(package='XXXX-audit-bitlocker',version=(Version('10.6.0.0'), 41),architectures=['x64'],locales=['fr'],maturities=['PROD', 'PREPROD'],tags=['windows-10', 'win-10', 'w-10', 'windows10', 'win10', 'w10', 'windows', 'win', 'w'],min_os_version=Version('10.0.26100'),max_os_version=Version('10.0.26100')), PackageEntry('XXXX-audit-bitlocker','10.6.0-41' maturity='PREPROD',target_os='windows'), 'Traceback (most recent call last):\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 5348, in install\n    result = self.install_wapt(p.localpath,\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4328, in install_wapt\n    raise e\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4142, in install_wapt\n    setup = import_setup(setup_filename)\n  File "C:\\Program Files (x86)\\wapt\\waptutils.py", line 1589, in import_setup\n    py_mod = imp.load_source(modulename, setupfilename)\n  File "imp.py", line 171, in load_source\n  File "<frozen importlib._bootstrap>", line 702, in _load\n  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked\n  File "<frozen importlib._bootstrap_external>", line 839, in exec_module\n  File "<frozen importlib._bootstrap_external>", line 976, in get_code\n  File "<frozen importlib._bootstrap_external>", line 906, in source_to_code\n  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed\n  File "C:\\WINDOWS\\TEMP\\wapt_8oj1pba\\setup.py", line 153\n    certs_path.extend(x for x in get_code_signing_cert() if x not in certs_path)\n    ^\nIndentationError: expected an indented block\n']]
Traceback (most recent call last):
  File "<string>", line 1943, in run
  File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 737, in run
    self._run()
  File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 1341, in _run
    raise Exception(_('Error during install of {}: errors in packages {}').format(
Exception: Erreur lors de l'installation de ['XXXX-audit-bitlocker(=10.6.0-41)']: erreurs dans les paquets [[PackageRequest(package='XXXX-audit-bitlocker',version=(Version('10.6.0.0'), 41),architectures=['x64'],locales=['fr'],maturities=['PROD', 'PREPROD'],tags=['windows-10', 'win-10', 'w-10', 'windows10', 'win10', 'w10', 'windows', 'win', 'w'],min_os_version=Version('10.0.26100'),max_os_version=Version('10.0.26100')), PackageEntry('XXXX-audit-bitlocker','10.6.0-41' maturity='PREPROD',target_os='windows'), 'Traceback (most recent call last):\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 5348, in install\n    result = self.install_wapt(p.localpath,\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4328, in install_wapt\n    raise e\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4142, in install_wapt\n    setup = import_setup(setup_filename)\n  File "C:\\Program Files (x86)\\wapt\\waptutils.py", line 1589, in import_setup\n    py_mod = imp.load_source(modulename, setupfilename)\n  File "imp.py", line 171, in load_source\n  File "<frozen importlib._bootstrap>", line 702, in _load\n  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked\n  File "<frozen importlib._bootstrap_external>", line 839, in exec_module\n  File "<frozen importlib._bootstrap_external>", line 976, in get_code\n  File "<frozen importlib._bootstrap_external>", line 906, in source_to_code\n  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed\n  File "C:\\WINDOWS\\TEMP\\wapt_8oj1pba\\setup.py", line 153\n    certs_path.extend(x for x in get_code_signing_cert() if x not in certs_path)\n    ^\nIndentationError: expected an indented block\n']]

Exception: Erreur lors de l'installation de ['XXXX-audit-bitlocker(=10.6.0-41)']: erreurs dans les paquets [[PackageRequest(package='XXXX-audit-bitlocker',version=(Version('10.6.0.0'), 41),architectures=['x64'],locales=['fr'],maturities=['PROD', 'PREPROD'],tags=['windows-10', 'win-10', 'w-10', 'windows10', 'win10', 'w10', 'windows', 'win', 'w'],min_os_version=Version('10.0.26100'),max_os_version=Version('10.0.26100')), PackageEntry('XXXX-audit-bitlocker','10.6.0-41' maturity='PREPROD',target_os='windows'), 'Traceback (most recent call last):\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 5348, in install\n    result = self.install_wapt(p.localpath,\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4328, in install_wapt\n    raise e\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4142, in install_wapt\n    setup = import_setup(setup_filename)\n  File "C:\\Program Files (x86)\\wapt\\waptutils.py", line 1589, in import_setup\n    py_mod = imp.load_source(modulename, setupfilename)\n  File "imp.py", line 171, in load_source\n  File "<frozen importlib._bootstrap>", line 702, in _load\n  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked\n  File "<frozen importlib._bootstrap_external>", line 839, in exec_module\n  File "<frozen importlib._bootstrap_external>", line 976, in get_code\n  File "<frozen importlib._bootstrap_external>", line 906, in source_to_code\n  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed\n  File "C:\\WINDOWS\\TEMP\\wapt_8oj1pba\\setup.py", line 153\n    certs_path.extend(x for x in get_code_signing_cert() if x not in certs_path)\n    ^\nIndentationError: expected an indented block\n']]
Traceback (most recent call last):
  File "<string>", line 1943, in run
  File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 737, in run
    self._run()
  File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 1341, in _run
    raise Exception(_('Error during install of {}: errors in packages {}').format(
Exception: Erreur lors de l'installation de ['XXXX-audit-bitlocker(=10.6.0-41)']: erreurs dans les paquets [[PackageRequest(package='XXXX-audit-bitlocker',version=(Version('10.6.0.0'), 41),architectures=['x64'],locales=['fr'],maturities=['PROD', 'PREPROD'],tags=['windows-10', 'win-10', 'w-10', 'windows10', 'win10', 'w10', 'windows', 'win', 'w'],min_os_version=Version('10.0.26100'),max_os_version=Version('10.0.26100')), PackageEntry('XXXX-audit-bitlocker','10.6.0-41' maturity='PREPROD',target_os='windows'), 'Traceback (most recent call last):\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 5348, in install\n    result = self.install_wapt(p.localpath,\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4328, in install_wapt\n    raise e\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4142, in install_wapt\n    setup = import_setup(setup_filename)\n  File "C:\\Program Files (x86)\\wapt\\waptutils.py", line 1589, in import_setup\n    py_mod = imp.load_source(modulename, setupfilename)\n  File "imp.py", line 171, in load_source\n  File "<frozen importlib._bootstrap>", line 702, in _load\n  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked\n  File "<frozen importlib._bootstrap_external>", line 839, in exec_module\n  File "<frozen importlib._bootstrap_external>", line 976, in get_code\n  File "<frozen importlib._bootstrap_external>", line 906, in source_to_code\n  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed\n  File "C:\\WINDOWS\\TEMP\\wapt_8oj1pba\\setup.py", line 153\n    certs_path.extend(x for x in get_code_signing_cert() if x not in certs_path)\n    ^\nIndentationError: expected an indented block\n']]
Is this normal / related to a new parameter to configure such as its certificate or not?

Sincerely,
jlepiquet
Messages: 69
Registration: Sep 3, 2024 - 4:09 p.m.

November 29, 2024 - 10:01

Hello,

this is due to a change made last night that was incorrectly indented.
We've just reverted yesterday's commit and pushed the package back to -39.

It should be available this morning.

Sorry for the inconvenience.

Joffrey
jlepiquet
Messages: 69
Registration: Sep 3, 2024 - 4:09 p.m.

November 29, 2024 - 12:30

Hello,

The package is available on the store https://wapt.tranquil.it/store/fr/wapt/ ... _PROD.wapt

Regards,
Locked