Page 1 of 1
[RESOLVED] Audit error for edupython package 3.14-20
Published: October 16, 2025 - 11:26 AM
by brice73
Good morning,
I downloaded the 3.14-20 edupython package from the store and it installs without any problems.
The setup.py file simply installs the software.
Code: Select all
install_exe_if_needed(
setup_file,
silentflags=r'/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /ALLUSERS',
key="EduPython_%s_is1" % control.get_software_version(),
min_version=control.get_software_version(),
timeout=900,
)
The setup.py file does not include an audit function; only the audit function in the common.py file is executed. It returns the following error:
Code: Select all
Auditing col73-edupython
OK: Uninstall Key EduPython_3.14_is1 in Windows Registry.
Audit aborted due to exception: list index out of range
Is there any way to remedy this?
Sincerely
Re: Audit error for edupython package 3.14-20
Published: October 16, 2025 - 4:17 PM
by italbot
Hi Brice,
I see some differences between the code snippets you sent and the code in the package on our store. Did you modify it on your end?
In any case, I just tested our store package and I'm not experiencing your problem... Is it possible to see the entire code from your setup.py file?
Best regards,
Ingrid
Re: Audit error for edupython package 3.14-20
Published: October 22, 2025 - 08:57
by brice73
Hello Ingrid,
Sorry for the late reply, I couldn't do it sooner :-/ . Thank you for your help.
It turns out that uninstalling my package didn't actually work either! (I hadn't noticed it in PyScripter.) I'm getting the same error, but this time with a much more explicit log:
Code: Select all
list index out of range
Traceback (most recent call last):
File "<string>", line 1662, in run
File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 885, in run
self._run()
File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 1513, in _run
self.result = self.wapt.remove(self.packagenames,
File "C:\Program Files (x86)\wapt\common.py", line 5966, in remove
self.uninstall(package)
File "C:\Program Files (x86)\wapt\common.py", line 7559, in uninstall
entry.call_setup_hook('uninstall', self, params=params,force=force)
File "C:\Program Files (x86)\wapt\waptpackage.py", line 2994, in call_setup_hook
setup = import_code(setuppy)
File "C:\Program Files (x86)\wapt\waptutils.py", line 1638, in import_code
exec(code, module.__dict__)
File "<string>", line 31, in <module>
IndexError: list index out of range
This allowed me to find the error. The installation file name (setup_file) was in the global variables of the setup.py file, and even after importing the glob module into setup.py, the error still occurred. I moved this line into the install() function:
Code: Select all
def install():
setup_file=glob.glob("Setup_EP*.exe")[0]
#installation du logiciel
install_exe_if_needed(
setup_file,
silentflags=r'/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /ALLUSERS /DIR="C:\EduPython"',
key="EduPython_%s_is1" % control.get_software_version(),
min_version=control.get_software_version(),
timeout=900,
)
Now everything works.
Sincerely
Re: Audit error for edupython package 3.14-20
Published: October 22, 2025 - 8:48 PM
by sfonteneau
brice73 wrote: ↑Oct 22, 2025 - 8:57 AM
This allowed me to find the error. The installation file name (setup_file) was in the global variables of the setup.py file, and even after importing the glob module into the setup.py file, the error occurred. I moved this line into the install() function:
That's normal.
The only time the binary is present is during installation. After that, the machine only keeps setup.py
so if in global you specify glob.glob('toto*.exe')[0]
In audit, session setup or uninstall, the file no longer exists, so [0] finds nothing -> "list index out of range"
Re: Audit error for edupython package 3.14-20
Published: October 23, 2025 - 9:30 AM
by brice73
Hello Simon,
thank you for your explanation, it is indeed quite clear.
You can mark the thread as resolved.
Regards,
Re: Audit error for edupython package 3.14-20
Published: October 23, 2025 - 9:50 AM
by dcardon
Hello Brice,
thank you for the feedback
. Best regards,
Denis