[SOLVED] Problem with a supposedly corrupted file

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
User avatar
t.heroult
Messages: 307
Registration: December 8, 2020 - 10:13 AM

January 30, 2023 - 1:41 PM

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?
Last edited by t.heroult on 02 Feb 2023 - 11:13, edited 1 time.
Server: WAPT Enterprise 2.6.1.17786 on Debian
Consoles: Windows 10 & 11
Infrastructure: Windows

Did you know? When parrotfish undergo smoltification, their osmoregulation mechanism is reversed!
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

January 30, 2023 - 4:48 PM

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
User avatar
t.heroult
Messages: 307
Registration: December 8, 2020 - 10:13 AM

February 1, 2023 - 4:09 PM

OK, I'll test it using PYScripter :)
Server: WAPT Enterprise 2.6.1.17786 on Debian
Consoles: Windows 10 & 11
Infrastructure: Windows

Did you know? When parrotfish undergo smoltification, their osmoregulation mechanism is reversed!
User avatar
t.heroult
Messages: 307
Registration: December 8, 2020 - 10:13 AM

February 2, 2023 - 11:12

I approve of the solution.
While we wait for the console fix, compiling from PyScripter resolves the issue.

Thanks, Simon.
Server: WAPT Enterprise 2.6.1.17786 on Debian
Consoles: Windows 10 & 11
Infrastructure: Windows

Did you know? When parrotfish undergo smoltification, their osmoregulation mechanism is reversed!
Locked