Giter Club home page Giter Club logo

Comments (10)

yolamoon avatar yolamoon commented on August 21, 2024 2

How did you previously installed Gyan.FFmpeg? Did you install it manually without using winget.exe? It seems winget.exe can't detect those portable packages if they're not installed via itself directly.

It was installed using winget.exe.

from winget-pkgs.

aisgbnok avatar aisgbnok commented on August 21, 2024 1

For now, uninstalling and reinstalling works.

winget uninstall yt-dlp.yt-dlp
winget install yt-dlp.yt-dlp

FYI, 2024.07.02 should be published later today so you'll have to do this again when that update hits.

from winget-pkgs.

DL444 avatar DL444 commented on August 21, 2024 1

image

The reason is that winget-cli crashed during installation.

image

Debugging reveals that it can't get the installed package version for Gyan.FFmpeg from local installed source stored in SQLite and dereferences the resulting null pointer. Not sure exactly why though, as I'm not familiar with its implementation. But I suspect problems with CompositeSource::SearchInstalled(const SearchRequest&) at CompositeSource.cpp:1455.

from winget-pkgs.

9034725985 avatar 9034725985 commented on August 21, 2024 1

I could not update yt-dlp using winget. Uninstalling winget and installing it again worked for me.

cmd because I also needed to update powershell
Microsoft Windows [Version 10.0.22631.3880]
(c) Microsoft Corporation. All rights reserved.

C:\Windows\System32>yt-dlp --version
2024.07.07

C:\Windows\System32>winget upgrade
Name                                Id                         Version    Available  Source
-------------------------------------------------------------------------------------------
PowerShell 7.4.2.0-x64              Microsoft.PowerShell       7.4.2.0    7.4.3.0    winget
yt-dlp                              yt-dlp.yt-dlp              2024.07.07 2024.07.09 winget
Microsoft Visual Studio Code (User) Microsoft.VisualStudioCode 1.91.0     1.91.1     winget
3 upgrades available.

C:\Windows\System32>winget upgrade --all --include-unknown
Name                                Id                         Version    Available  Source
-------------------------------------------------------------------------------------------
PowerShell 7.4.2.0-x64              Microsoft.PowerShell       7.4.2.0    7.4.3.0    winget
yt-dlp                              yt-dlp.yt-dlp              2024.07.07 2024.07.09 winget
Microsoft Visual Studio Code (User) Microsoft.VisualStudioCode 1.91.0     1.91.1     winget
3 upgrades available.

Installing dependencies:
This package requires the following dependencies:
  - Packages
      Gyan.FFmpeg
(1/2) Found yt-dlp [yt-dlp.yt-dlp] Version 2024.07.09
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
(1/1) Found FFmpeg [Gyan.FFmpeg] Version 7.0.1
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Successfully verified installer hash
Extracting archive...
Successfully extracted archive

C:\Windows\System32>
C:\Windows\System32>winget upgrade
Name                                Id                         Version    Available  Source
-------------------------------------------------------------------------------------------
PowerShell 7.4.2.0-x64              Microsoft.PowerShell       7.4.2.0    7.4.3.0    winget
yt-dlp                              yt-dlp.yt-dlp              2024.07.07 2024.07.09 winget
Microsoft Visual Studio Code (User) Microsoft.VisualStudioCode 1.91.0     1.91.1     winget
3 upgrades available.

C:\Windows\System32>winget uninstall yt-dlp.yt-dlp
Found yt-dlp [yt-dlp.yt-dlp]
Starting package uninstall...
Successfully uninstalled

C:\Windows\System32>winget install yt-dlp.yt-dlp
Found yt-dlp [yt-dlp.yt-dlp] Version 2024.07.09
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
This package requires the following dependencies:
  - Packages
      Gyan.FFmpeg
(1/1) Found FFmpeg [Gyan.FFmpeg] Version 7.0.1
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Successfully verified installer hash
Extracting archive...
Successfully extracted archive
Starting package install...
Command line alias added: "ffmpeg"
Command line alias added: "ffplay"
Command line alias added: "ffprobe"
Successfully installed

Downloading https://github.com/yt-dlp/yt-dlp/releases/download/2024.07.09/yt-dlp.exe
  ██████████████████████████████  17.8 MB / 17.8 MB
Successfully verified installer hash
Starting package install...
Command line alias added: "yt-dlp"
Path environment variable modified; restart your shell to use the new value.
Successfully installed

C:\Windows\System32>winget upgrade
Name                                Id                         Version Available Source
---------------------------------------------------------------------------------------
PowerShell 7.4.2.0-x64              Microsoft.PowerShell       7.4.2.0 7.4.3.0   winget
Microsoft Visual Studio Code (User) Microsoft.VisualStudioCode 1.91.0  1.91.1    winget
2 upgrades available.

C:\Windows\System32>winget upgrade --all --include-unknown
Name                                Id                         Version Available Source
---------------------------------------------------------------------------------------
PowerShell 7.4.2.0-x64              Microsoft.PowerShell       7.4.2.0 7.4.3.0   winget
Microsoft Visual Studio Code (User) Microsoft.VisualStudioCode 1.91.0  1.91.1    winget
2 upgrades available.

(1/1) Found Microsoft Visual Studio Code [Microsoft.VisualStudioCode] Version 1.91.1
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://vscode.download.prss.microsoft.com/dbazure/download/stable/f1e16e1e6214d7c44d078b1f0607b2388f29d729/VSCodeUserSetup-x64-1.91.1.exe
  ██████████████████████████████  94.9 MB / 94.9 MB
Successfully verified installer hash
Starting package install...
Successfully installed


C:\Windows\System32>yt-dlp --version
2024.07.09

C:\Windows\System32>winget upgrade
Name                   Id                   Version Available Source
--------------------------------------------------------------------
PowerShell 7.4.2.0-x64 Microsoft.PowerShell 7.4.2.0 7.4.3.0   winget
1 upgrades available.

C:\Windows\System32>winget upgrade --all --include-unknown
Name                   Id                   Version Available Source
--------------------------------------------------------------------
PowerShell 7.4.2.0-x64 Microsoft.PowerShell 7.4.2.0 7.4.3.0   winget
1 upgrades available.

C:\Windows\System32>winget upgrade --id Microsoft.Winget.Source
No installed package found matching input criteria.

C:\Windows\System32>winget install Microsoft.PowerShell --version 7.4.3.0
Found PowerShell [Microsoft.PowerShell] Version 7.4.3.0
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://github.com/PowerShell/PowerShell/releases/download/v7.4.3/PowerShell-7.4.3-win-x64.msi
  ██████████████████████████████   103 MB /  103 MB
Successfully verified installer hash
Starting package install...
Successfully installed

C:\Windows\System32>winget source update
Updating all sources...
Updating source: msstore...
Done
Updating source: winget...
Done

C:\Windows\System32>winget upgrade --id Microsoft.Winget.Source
No installed package found matching input criteria.

C:\Windows\System32>
</details>

from winget-pkgs.

Dragon1573 avatar Dragon1573 commented on August 21, 2024

How did you previously installed Gyan.FFmpeg? Did you install it manually without using winget.exe? It seems winget.exe can't detect those portable packages if they're not installed via itself directly.

from winget-pkgs.

aisgbnok avatar aisgbnok commented on August 21, 2024

I have noticed this too when upgrading using winget. Only recently. I suspect it is something in winget-cli. I don't believe it's package related. From a brief look at my logs it seems to just stop when extracting the ffmpeg dependency.

2024-07-02 11:29:23.490 [CLI ] Manifest fields: Name [yt-dlp], Version [2024.07.01]
2024-07-02 11:29:23.501 [REPO] Creating new SQLite Index with version [Latest] at ':memory:'
2024-07-02 11:29:23.507 [REPO] Reading MSI UpgradeCodes
2024-07-02 11:29:23.548 [REPO] Reading MSI UpgradeCodes
2024-07-02 11:29:24.128 [REPO] Opening database for ReadWrite at 'C:\Users\Anthony\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Microsoft.Winget.Source_8wekyb3d8bbwe\installed.db'
2024-07-02 11:29:24.129 [REPO] Opened SQLite Index with version [1.7], last write [2024-07-02 11:25:03.000]
2024-07-02 11:29:24.166 [REPO] Found multiple results for Id [Gyan.FFmpeg] in tracking catalog for: winget
2024-07-02 11:29:24.173 [REPO] Attempting to open pinning database: C:\Users\Anthony\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\pinning.db
2024-07-02 11:29:24.189 [CLI ] Manifest fields: Name [FFmpeg], Version [7.0.1]
2024-07-02 11:29:24.201 [CLI ] Found existing installer file at 'C:\Users\Anthony\AppData\Local\Temp\WinGet\Gyan.FFmpeg.7.0.1\ffmpeg-7.0.1-full_build.zip'. Verifying file hash.
2024-07-02 11:29:24.457 [CLI ] Existing installer file hash matches. Will use existing installer.
2024-07-02 11:29:24.457 [CLI ] Installer hash verified
2024-07-02 11:29:24.458 [CORE] Started applying motw to C:\Users\Anthony\AppData\Local\Temp\WinGet\Gyan.FFmpeg.7.0.1\ffmpeg-7.0.1-full_build.zip with zone: 2
2024-07-02 11:29:24.460 [CORE] Finished applying motw
2024-07-02 11:29:24.575 [CLI ] Extracting archive to: C:\Users\Anthony\AppData\Local\Temp\WinGet\Gyan.FFmpeg.7.0.1\extracted
2024-07-02 11:29:33.263 [CLI ] Successfully extracted archive
Windows Package Manager (Preview) v1.9.1792-preview
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22635.3858
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.24.1792.0

from winget-pkgs.

Dragon1573 avatar Dragon1573 commented on August 21, 2024

Seems reproduced in Windows Sandbox instance ...

Console logs in Windows Sandbox
--> Installing WinGet
--> Disabling safety warning when running installer
Tip: you can type 'Update-EnvironmentVariables' to update your environment variables, such as after installing a new software.
PS C:\Users\WDAGUtilityAccount\Desktop\winget-pkgs> winget install -e --id Gyan.FFmpeg
The `msstore` source requires that you view the following agreements before using.
Terms of Transaction: https://aka.ms/microsoft-store-terms-of-transaction
The source requires the current machine's 2-letter geographic region to be sent to the backend service to function properly (ex. "US").

Do you agree to all the source agreements terms?
[Y] Yes  [N] No: Y
Found FFmpeg [Gyan.FFmpeg] Version 7.0.1
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://github.com/GyanD/codexffmpeg/releases/download/7.0.1/ffmpeg-7.0.1-full_build.zip
  ██████████████████████████████   162 MB /  162 MB
Successfully verified installer hash
Extracting archive...
Successfully extracted archive
Starting package install...
Command line alias added: "ffmpeg"
Command line alias added: "ffplay"
Command line alias added: "ffprobe"
Path environment variable modified; restart your shell to use the new value.
Successfully installed
PS C:\Users\WDAGUtilityAccount\Desktop\winget-pkgs> winget install -e --id yt-dlp.yt-dlp --version 2024.05.27
Found yt-dlp [yt-dlp.yt-dlp] Version 2024.05.27
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
This package requires the following dependencies:
  - Packages
      Gyan.FFmpeg
(1/1) Found FFmpeg [Gyan.FFmpeg] Version 7.0.1
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Successfully verified installer hash
Extracting archive...
Successfully extracted archive
Starting package install...
Command line alias added: "ffmpeg"
Command line alias added: "ffplay"
Command line alias added: "ffprobe"
Successfully installed

Downloading https://github.com/yt-dlp/yt-dlp/releases/download/2024.05.27/yt-dlp.exe
  ██████████████████████████████  17.7 MB / 17.7 MB
Successfully verified installer hash
Starting package install...
Command line alias added: "yt-dlp"
Successfully installed
PS C:\Users\WDAGUtilityAccount\Desktop\winget-pkgs> winget upgrade -e --id yt-dlp.yt-dlp
Found yt-dlp [yt-dlp.yt-dlp] Version 2024.07.01
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
This package requires the following dependencies:
  - Packages
      Gyan.FFmpeg
(1/1) Found FFmpeg [Gyan.FFmpeg] Version 7.0.1
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Successfully verified installer hash
Extracting archive...
Successfully extracted archive

from winget-pkgs.

Dragon1573 avatar Dragon1573 commented on August 21, 2024

Reproduced ...

Seems it's related to the implementation of winget.exe. Maybe this issue should be investigated by moderators ...

PS C:\Users\WDAGUtilityAccount\Desktop\winget-pkgs> winget install -e --id Gyan.FFmpeg
Found FFmpeg [Gyan.FFmpeg] Version 7.0.1
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Successfully verified installer hash
Extracting archive...
Successfully extracted archive
Starting package install...
Command line alias added: "ffmpeg"
Command line alias added: "ffplay"
Command line alias added: "ffprobe"
Successfully installed
PS C:\Users\WDAGUtilityAccount\Desktop\winget-pkgs> winget install -e --id Gyan.FFmpeg
Found FFmpeg [Gyan.FFmpeg] Version 7.0.1
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Successfully verified installer hash
Extracting archive...
Successfully extracted archive
Starting package install...
Command line alias added: "ffmpeg"
Command line alias added: "ffplay"
Command line alias added: "ffprobe"
Successfully installed

from winget-pkgs.

DL444 avatar DL444 commented on August 21, 2024

It seems weird but I cannot reproduce the issue anymore. I used the same client code, and package manifests for both yt-dlp.yt-dlp and Gyan.FFmpeg seem unchanged to me.

from winget-pkgs.

MagicAndre1981 avatar MagicAndre1981 commented on August 21, 2024

for me winget also crashes while trying to update Gyan.FFmpeg during upgrade of yt-dlp

from winget-pkgs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.