ScoopInstaller / Main

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

[Bug] Failed to update WinPython to version 3.12.3.0 #5762

Closed Amazingkenneth closed 2 months ago

Amazingkenneth commented 2 months ago

Bug Report

Current Behavior

PS C:\Users\a> scoop update *
winpython: 3.11.8.0 -> 3.12.3.0
Updating one outdated app:
Updating 'winpython' (3.11.8.0 -> 3.12.3.0)
Downloading new version
Loading Winpython64-3.12.3.0.exe from cache.
Checking hash of Winpython64-3.12.3.0.exe ... ok.
Uninstalling 'winpython' (3.11.8.0)
Unlinking D:\Scoop\apps\winpython\current
Installing 'winpython' (3.12.3.0) [64bit] from 'main' bucket
Loading Winpython64-3.12.3.0.exe from cache.
Extracting dl.7z ... done.
Linking D:\Scoop\apps\winpython\current => D:\Scoop\apps\winpython\3.12.3.0
Creating shim for 'idle'.
Get-Command : The term 'scripts\idle.bat' is not recognized as the name of a cmdlet,
function, script file, or operable program. Check the spelling of the name, or if a path
was included, verify that the path is correct and try again.
At D:\Scoop\apps\scoop\current\lib\install.ps1:783 char:21
+             $bin = (Get-Command $target).Source
+                     ~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (scripts\idle.bat:String) [Get-Command], C
   ommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException,Microsoft.PowerShell.Commands.Get
   CommandCommand

Can't shim 'scripts\idle.bat': File doesn't exist.
PS C:\Users\a>

Expected Behavior

Successful Installation/Update

Additional context/output

The required scripts\idle.bat batch file (described in the winpython.json file) is removed in the latest release of WinPython, causing the error to occur. script\winidle.bat probably serves the same function since both files call "%WINPYDIR%\python.exe" "%WINPYDIR%\Lib\idlelib\idle.pyw" %* in the older version (3.11.8.0).

Possible Solution

Modify winpython.json file in the main bucket.

System details

Windows version: 11

OS architecture: 64bit

PowerShell version: 5.1.22621.2506

Scoop Configuration

{
    "last_update": "2024-04-27T19:50:22.3031048+08:00",
    "aria2-warning-enabled": false,
    "scoop_branch": "master",
    "scoop_repo": "https://github.com/ScoopInstaller/Scoop"
}
aliesbelik commented 2 months ago

@niheaven, seems should be in Main.

greenhull commented 2 months ago

I keep getting a link to "googleads.g.doubleclick.net/....". which looks like a very bad link has something been hacked?? this is via the sourceforge link to the executeables

Amazingkenneth commented 2 months ago

I keep getting a link to "googleads.g.doubleclick.net/....". which looks like a very bad link has something been hacked?? this is via the sourceforge link to the executeables

The link works fine here. Did you use the link described in winpython.json? It should be https://downloads.sourceforge.net/project/winpython/WinPython_3.12/3.12.3.0/Winpython64-3.12.3.0.exe#/dl.7z