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:
RESOLVED: Audit error status
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
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
- sfonteneau
- WAPT Expert
- Messages: 2318
- Registered: July 10, 2014 - 11:52 PM
- Contact :
Hello,
without the package code it seems difficult to diagnose.
Could you post it?
Simon
without the package code it seems difficult to diagnose.
Could you post it?
Simon
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
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')
- sfonteneau
- WAPT Expert
- Messages: 2318
- Registered: July 10, 2014 - 11:52 PM
- Contact :
Your code doesn't contain an audit function.
Also, everything is indented at the root level; is this a copy/paste error?
Also, everything is indented at the root level; is this a copy/paste error?
Hello Simon
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
I had several packages with root code that were not audited for errors until now (without an audit function in the code)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?
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
