RESOLVED: Audit error status

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
greening
Messages: 13
Registration: December 20, 2018 - 2:45 PM

December 10, 2021 - 10:07 AM

Hello,

We have several folder creation and file copying packages for client workstations that worked perfectly until now and had an "audit OK" status.
We are using Enterprise version 2.1.

The packages correctly create folders and copy files, but the package audit status is now showing an error in the console, whereas it wasn't an error with previous versions of WAPT. The
packages seem to be working correctly, so do you have any idea why the audit status is showing an error with the message below?

Audit aborted due to exception: [Errno 2] No such file or directory:
Last edited by verdierr on Dec 14, 2021 - 08:44, edited 1 time.
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

December 11, 2021 - 10:28 AM

Hello,

without the package code it seems difficult to diagnose.

Could you post it?

Simon
greening
Messages: 13
Registration: December 20, 2018 - 2:45 PM

December 13, 2021 - 8:10 AM

Good morning,

Here is the code for one of the packages that runs correctly but is experiencing an audit error
Thank you for your help

Code: Select all

# -*- coding: utf-8 -*-
from setuphelpers import *

def install():
    print("Rien à faire en install")


if not isdir(r'C:\\Program Files (x86)\\svt\\nerf2021'):
    mkdirs(r'C:\\Program Files (x86)\\svt\\nerf2021')


filecopyto('Nerf_2021.exe',r'C:\\Program Files (x86)\\svt\\nerf2021')

if not isdir(makepath('c:\\users\\public\\desktop\\Laboratoire\\SVT\\BIOLOGIE')):
    mkdirs(makepath('c:\\users\\public\\desktop\\Laboratoire\\SVT\\BIOLOGIE'))


create_shortcut(r'c:\\users\\public\\desktop\\Laboratoire\\SVT\\BIOLOGIE\\NERF2021.lnk',\
                target=r'c:\\program Files (x86)\\svt\\nerf2021\\Nerf_2021.exe',\
                wDir=r'C:\\Program Files (x86)\\svt\\nerf2021')



def uninstall():
    remove_file('c:\\users\\public\\desktop\\Laboratoire\\SVT\\BIOLOGIE\\NERF2021.lnk')
    remove_file('C:\\Program Files (x86)\\svt\\nerf2021\\Nerf_2021.exe')
    remove_tree('C:\\Program Files (x86)\\svt\\nerf2021')
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

December 13, 2021 - 9:22 PM

Your code doesn't contain an audit function.

Also, everything is indented at the root level; is this a copy/paste error?
greening
Messages: 13
Registration: December 20, 2018 - 2:45 PM

December 14, 2021 - 8:42 AM

Hello Simon
sfonteneau wrote: Dec 13, 2021 - 9:22 PM In your code there is no audit function.

Also, everything is indented at the root; is this a copy/paste error?
I had several packages with root code that were not audited for errors until now (without an audit function in the code)

Yes, I recreated them with indentation and now I no longer have that error
Perhaps the latest versions of WAPT no longer handle auditing in the same way as before

Thank you for the quick response
Locked