ScoopInstaller / Main

📦 The default bucket for Scoop.
https://scoop.sh
The Unlicense
1.54k stars 921 forks source link

python@3.12.2: hash check failed #5535

Closed CKirby21 closed 4 months ago

CKirby21 commented 4 months ago
Installing 'python' (3.12.2) [64bit] from main bucket
python-3.12.2-amd64.exe (25.4 MB) [===========================================================================================================================================================================================================================================] 100%
Checking hash of python-3.12.2-amd64.exe ... Exception calling ".ctor" with "0" argument(s): "This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms."
At C:\windows\system32\WindowsPowerShell\v1.0\Modules\Microsoft.PowerShell.Utility\Microsoft.PowerShell.Utility.psm1:31 char:13
+             $hasher = $hasherType::New()
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : InvalidOperationException

Get-FileHash : The file 'C:\Users\ckirby\scoop\apps\python\3.12.2\setup.exe' cannot be read: You cannot call a method on a null-valued expression.
At C:\Users\ckirby\scoop\apps\scoop\current\lib\install.ps1:674 char:16
+     $actual = (Get-FileHash -Path $file -Algorithm $algorithm).Hash.T ...
+                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ReadError: (C:\Users\ckirby....12.2\setup.exe:PSObject) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : FileReadError,Get-FileHash

You cannot call a method on a null-valued expression.
At C:\Users\ckirby\scoop\apps\scoop\current\lib\install.ps1:674 char:5
+     $actual = (Get-FileHash -Path $file -Algorithm $algorithm).Hash.T ...
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

ERROR Hash check failed!
App:         main/python
URL:         https://www.python.org/ftp/python/3.12.2/python-3.12.2-amd64.exe#/setup.exe
First bytes: 4D 5A 90 00 03 00 00 00
Expected:    44abfae489d87cc005d50a9267b5d58d
Actual:

Please try again or create a new issue by using the following link and paste your console output:
https://github.com/ScoopInstaller/Main/issues/new?title=python%403.12.2%3a+hash+check+failed
github-actions[bot] commented 4 months ago

Cannot reproduce

Are you sure your scoop is up to date? Clean cache and reinstall Please run scoop update; scoop cache rm python; and update/reinstall application

Hash mismatch could be caused by these factors: