winutil icon indicating copy to clipboard operation
winutil copied to clipboard

Python3 not installed

Open BOAScripts opened this issue 3 years ago • 1 comments

Da Bug: When selecting the node 'Python3' and clicking on install it doesn't install anything.

Steps to reproduce the behavior:

  • Open Powershell as admin
  • iwr -useb https://christitus.com/win | iex
  • Select 'Python3'
  • Click Start Install
  • winget list in another tab of terminal, to see that python is not installed

Expected behavior Either a successful installation or an error msg. Here below a "successful" installation of Python3 image

Additional context This issue comes from the fact that the definition of the Python3 node is not exactly found in the winget store. At line 220 of main it is defined as 'Python.Python.3' here below my findings. image

I'm HeLpInG As Python versions keeps expanding, It would be troublesome to modify the entry for each new release. But here below a snippet to find the lastest version with winget.

$Pythons3Search = winget search 'Python.3'
$PythonResults = $Pythons3Search[3..$Pythons3Search.Length]
[version]$ver ='3.0'
$node = ''
Foreach ($entry in $PythonResults) {
    $entryVer = [version]$entry.replace('     ',';').split(';')[2]
    $entryid = $entry.replace('     ',';').split(';')[1]
    if ($ver -lt $entryVer ){
        $ver  = $entryVer
        $node = $entryid
    }
}
Write-Host $node

image

As it's the first time I'm reporting a bug with GitHub, sorry if it's a duplicate that I didn't found I love the idea of the project, keep up the good work

BOAScripts avatar Oct 30 '22 02:10 BOAScripts

:+1:

framistat avatar Nov 13 '22 21:11 framistat

I can also confirm this.

ThePython10110 avatar Dec 23 '22 23:12 ThePython10110

Fixed in last Merge

ChrisTitusTech avatar Jul 12 '23 17:07 ChrisTitusTech