Page 1 of 1
RESOLVED: Audit error status
Published: Dec 10, 2021 - 10:07
by verdierr
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:
Re: Audit status error
Published: Dec 11, 2021 - 10:28
by sfonteneau
Hello,
without the package code it seems difficult to diagnose.
Could you post it?
Simon
Re: Audit status error
Published: Dec 13, 2021 - 08:10
by verdierr
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')
Re: Audit status error
Published: Dec 13, 2021 - 9:22 PM
by sfonteneau
Your code doesn't contain an audit function.
Also, everything is indented at the root level; is this a copy/paste error?
Resolved: Audit error status
Published: Dec 14, 2021 - 08:42
by verdierr
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