[SOLVED] "Files corrupted" problem during package installation
Published: June 5, 2023 - 1:51 PM
Good morning,
I recently created a package for installing the Ardublock 2.0 software. I verified its successful installation/uninstallation with PyScriptor. After importing it into the server (package creation), when I try to install it from the console, I get the following error message:
I recently encountered this error problemfiles corrupted, SHA not matching"during installation from the console, especially when the installation requires copying locally, from the package, of files with names containing accented characters (é, è, à ...) or empty folders.
I saw that a topic had been opened about this: viewtopic.php?p=11573&hilit=corrupted+files#p11573
It seems the problem hasn't been completely resolved? Is there a way to deploy the package in question while working around the issue until it's fixed? Will the upcoming version 2.4 fix this problem?
I recently created a package for installing the Ardublock 2.0 software. I verified its successful installation/uninstallation with PyScriptor. After importing it into the server (package creation), when I try to install it from the console, I get the following error message:
Code: Select all
Traceback (most recent call last):
File "C:\Program Files (x86)\wapt\waptservice\service.py", line 1907, in run
self.running_task.run()
File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 710, in run
self._run()
File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 1282, in _run
raise Exception(_('Error during install of {}: errors in packages {}').format(
Exception: Erreur lors de l'installation de ['col73-ardublock-2.0(=2.0-1)']: erreurs dans les paquets [[PackageRequest(package='col73-ardublock-2.0',version=(Version('2.0.0.0'), 1),architectures=['x64'],locales=['fr'],maturities=['PROD', 'DEV'],tags=['windows-10', 'win-10', 'w-10', 'windows10', 'win10', 'w10', 'windows', 'win', 'w'],min_os_version=Version('10.0.19044.2965'),max_os_version=Version('10.0.19044.2965')), PackageEntry('col73-ardublock-2.0','2.0-1' maturity='PROD',target_os='windows'), 'Traceback (most recent call last):\n File "C:\\Program Files (x86)\\wapt\\common.py", line 5193, in install\n result = self.install_wapt(p.localpath,\n File "C:\\Program Files (x86)\\wapt\\common.py", line 4167, in install_wapt\n raise e\n File "C:\\Program Files (x86)\\wapt\\common.py", line 3956, in install_wapt\n packagetempdir = entry.unzip_package(cabundle=self.cabundle, target_dir = tempfile.mkdtemp(prefix=\'wapt\',dir=self.wapt_temp_dir))\n File "C:\\Program Files (x86)\\wapt\\waptpackage.py", line 2623, in unzip_package\n raise e\n File "C:\\Program Files (x86)\\wapt\\waptpackage.py", line 2615, in unzip_package\n verified_by = self.check_package_signature(cabundle,ignore_missing_files=ignore_missing_files)\n File "C:\\Program Files (x86)\\wapt\\waptpackage.py", line 2573, in check_package_signature\n raise EWaptCorruptedFiles(\'Error in package %s in %s, [b][size=150]files corrupted, SHA not matching[/size] [/b]for %s\' % (self.asrequirement(), self.sourcespath, errors,))\nwaptpackage.EWaptCorruptedFiles: Error in package col73-ardublock-2.0(=2.0-1) in C:\\Windows\\TEMP\\wapto3v5s3pi, files corrupted, SHA not matching for [\'ArduBlock 2.0/app/compilation/python/Lib/site-packages/__pycache__\', \'ArduBlock 2.0/app/compilation/python/Lib/site-packages/pip/__pycache__\', \'ArduBlock 2.0/app/compilation/python/Lib/site-packages/pip/_internal/__pycache__\', \'ArduBlock 2.0/app/compilation/python/Lib/site-packages/pip/_vendor/__pycache__\', \'ArduBlock 2.0/app/compilation/python/Lib/site-packages/pip/_vendor/cachecontrol/__pycache__\', \'ArduBlock 2.0/app/compilation/python/Lib/site-packages/pip/_vendor/chardet/__pycache__\', \'ArduBlock 2.0/app/compilation/python/Lib/site-packages/pip/_vendor/distlib/__pycache__\', \'ArduBlock 2.0/app/compilation/python/Lib/site-packages/pip/_vendor/html5lib/__pycache__\', \'ArduBlock 2.0/app/compilation/python/Lib/site-packages/pip/_vendor/urllib3/__pycache__\', \'ArduBlock 2.0/app/compilation/python/Lib/site-packages/pip/_vendor/urllib3/contrib/__pycache__\', \'ArduBlock 2.0/app/compilation/python/Lib/site-packages/pip/_vendor/urllib3/packages/__pycache__\', \'ArduBlock 2.0/app/compilation/python/Lib/site-packages/pyflakes/__pycache__\', \'ArduBlock 2.0/app/compilation/python/Lib/site-packages/serial/__pycache__\', \'ArduBlock 2.0/app/compilation/python/Lib/site-packages/setuptools/__pycache__\', \'ArduBlock 2.0/app/compilation/python/Lib/site-packages/setuptools/_vendor/__pycache__\', \'ArduBlock 2.0/install/libraries/Adafruit-Fingerprint-Sensor-Library-master/.gitignore\', \'ArduBlock 2.0/install/libraries/Adafruit-Fingerprint-Sensor-Library-master/.travis.yml\', \'ArduBlock 2.0/install/libraries/Adafruit-Fingerprint-Sensor-Library-master/examples/print/.due.test.skip\', \'ArduBlock 2.0/install/libraries/Adafruit-Fingerprint-Sensor-Library-master/examples/print/.esp32.test.skip\', \'ArduBlock 2.0/install/libraries/Adafruit-Fingerprint-Sensor-Library-master/examples/print/.m4.test.skip\', \'ArduBlock 2.0/install/libraries/Adafruit-Fingerprint-Sensor-Library-master/examples/print/.zero.test.skip\', \'ArduBlock 2.0/install/libraries/Adafruit-Fingerprint-Sensor-Library-master/examples/res/.due.test.skip\', \'ArduBlock 2.0/install/libraries/Adafruit-Fingerprint-Sensor-Library-master/examples/res/.esp32.test.skip\', \'ArduBlock 2.0/install/libraries/Adafruit-Fingerprint-Sensor-Library-master/examples/res/.m4.test.skip\', \'ArduBlock 2.0/install/libraries/Adafruit-Fingerprint-Sensor-Library-master/examples/res/.zero.test.skip\', \'ArduBlock 2.0/install/libraries/Adafruit-GFX-Library-master/.gitignore\', \'ArduBlock 2.0/install/libraries/Adafruit-GFX-Library-master/.travis.yml\', \'ArduBlock 2.0/install/libraries/Adafruit-ST7735-Library-master/.gitignore\', \'ArduBlock 2.0/install/libraries/Adafruit-ST7735-Library-master/.travis.yml\', \'ArduBlock 2.0/install/libraries/Adafruit-ST7735-Library-master/examples/miniTFTWing/basic/.mega2560.test.skip\', \'ArduBlock 2.0/install/libraries/Adafruit-ST7735-Library-master/examples/miniTFTWing/graphicstest/.mega2560.test.skip\', \'ArduBlock 2.0/install/libraries/Adafruit_NeoPixel-master/examples/RGBWstrandtest/.esp8266.test.skip\', \'ArduBlock 2.0/install/libraries/Adafruit_NeoPixel-master/examples/RGBWstrandtest/.trinket.test.skip\', \'ArduBlock 2.0/install/libraries/Adafruit_NeoPixel-master/examples/StrandtestBLE/.test.skip\', \'ArduBlock 2.0/install/libraries/Adafruit_NeoPixel-master/examples/buttoncycler/.esp8266.test.skip\', \'ArduBlock 2.0/install/libraries/Adafruit_NeoPixel-master/examples/simple/.esp8266.test.skip\', \'ArduBlock 2.0/install/libraries/Adafruit_NeoPixel-master/examples/simple_new_operator/.esp8266.test.skip\', \'ArduBlock 2.0/install/libraries/Adafruit_NeoPixel-master/examples/strandtest/.esp8266.test.skip\', \'ArduBlock 2.0/install/libraries/HX711/.gitignore\', \'ArduBlock 2.0/install/libraries/IRremote/.gitignore\', \'ArduBlock 2.0/install/libraries/IRremote/.travis.yml\', \'ArduBlock 2.0/install/libraries/TEA5767-master/.gitignore\', \'ArduBlock 2.0/install/libraries/iarduino_MultiServo-1.1.3/.gitattributes\', \'ArduBlock 2.0/install/libraries/iarduino_Pressure_BMP-2.0.2/.gitattributes\']\n']]
I saw that a topic had been opened about this: viewtopic.php?p=11573&hilit=corrupted+files#p11573
It seems the problem hasn't been completely resolved? Is there a way to deploy the package in question while working around the issue until it's fixed? Will the upcoming version 2.4 fix this problem?