Page 1 of 1

[SOLVED] Problem with a supposedly corrupted file

Published: January 30, 2023 - 1:41 PM
by t.heroult
Good morning
I have a package containing a shortcut file (.lnk, therefore).
Until now, this hadn't been a problem.
I'm editing this package to add a few lines to setup.py (nothing to do with the lines that deal with the lnk file).
I compile it and then when I try to install:

Code: Select all

Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\common.py", line 3956, in install_wapt
    packagetempdir = entry.unzip_package(cabundle=self.cabundle, target_dir = tempfile.mkdtemp(prefix='wapt',dir=self.wapt_temp_dir))
  File "C:\Program Files (x86)\wapt\waptpackage.py", line 2623, in unzip_package
    raise e
  File "C:\Program Files (x86)\wapt\waptpackage.py", line 2615, in unzip_package
    verified_by = self.check_package_signature(cabundle,ignore_missing_files=ignore_missing_files)
  File "C:\Program Files (x86)\wapt\waptpackage.py", line 2573, in check_package_signature
    raise EWaptCorruptedFiles('Error in package %s in %s, files corrupted, SHA not matching for %s' % (self.asrequirement(), self.sourcespath, errors,))
waptpackage.EWaptCorruptedFiles: Error in package La_Normandise(=2023.1.30-1) in C:\WINDOWS\TEMP\waptqkryxmf8, files corrupted, SHA not matching for ['Téléphones.lnk', 'C:\\WINDOWS\\TEMP\\waptqkryxmf8\\Téléphones.lnk']

EWaptCorruptedFiles: Error in package La_Normandise(=2023.1.30-1) in C:\WINDOWS\TEMP\waptqkryxmf8, files corrupted, SHA not matching for ['Téléphones.lnk', 'C:\\WINDOWS\\TEMP\\waptqkryxmf8\\Téléphones.lnk']
I tried to redo it, even without using pyscripter, in the WAPT console's built-in editor.
Nothing to do.

Any ideas?

Re: I don't understand anything: Problem with a supposedly corrupted file

Published: January 30, 2023 - 4:48 PM
by sfonteneau
Hello,

thank you for the feedback.

Indeed, I just tested it, and when the build is done from the console, the manifest isn't a compatible Python JSON file (the accents are causing the problem).

It's very surprising that no one else has encountered this issue sooner.

However, the build from Python (PyScripter) should work.

We'll fix this quickly

. Simon

Re: I don't understand anything: Problem with a supposedly corrupted file

Published: February 1, 2023 - 4:09 PM
by t.heroult
OK, I'll test it using PYScripter :)

Re: I don't understand anything: Problem with a supposedly corrupted file

Published: February 2, 2023 - 11:12 AM
by t.heroult
I approve of the solution.
While we wait for the console fix, compiling from PyScripter resolves the issue.

Thanks, Simon.