Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

youtube-dl: 2020.11.24 -> 2020.11.26 #104931

Merged
merged 1 commit into from Nov 25, 2020

Conversation

Luflosi
Copy link
Contributor

@Luflosi Luflosi commented Nov 25, 2020

Motivation for this change

https://github.com/ytdl-org/youtube-dl/releases/tag/2020.11.26

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@lukegb
Copy link
Contributor

lukegb commented Nov 25, 2020

Result of nixpkgs-review pr 104931 1

3 packages failed to build:
  • bomi
  • python37Packages.tubeup
  • python38Packages.tubeup
35 packages built:
  • catt
  • celluloid
  • curseradio
  • haskellPackages.cut-the-crap
  • jellyfin-mpv-shim
  • jftui
  • kodi-cli
  • lollypop
  • minitube
  • mkchromecast
  • mopidy-youtube
  • mpc-qt
  • mps-youtube
  • mpv
  • mpvScripts.mpris
  • persepolis
  • plex-media-player
  • plex-mpv-shim
  • python27Packages.pafy
  • python27Packages.youtube-dl
  • python27Packages.youtube-dl-light
  • python37Packages.mpv
  • python37Packages.pafy
  • python37Packages.youtube-dl
  • python37Packages.youtube-dl-light
  • python38Packages.mpv
  • python38Packages.pafy
  • youtube-dl (python38Packages.youtube-dl)
  • youtube-dl-light (python38Packages.youtube-dl-light)
  • qimgv
  • somafm-cli
  • sublime-music
  • tartube
  • tuijam
  • ytcc

Copy link
Contributor

@lukegb lukegb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

youtube-dl doesn't seem to run in that environment though, I get

Traceback (most recent call last):
  File "/nix/store/mw9hjrzgd81qbdq4anscpxgsc0j46my2-python3.8-youtube-dl-2020.11.26/bin/.youtube-dl-wrapped", line 6, in <module>
    from youtube_dl import main
  File "/nix/store/ka6q3w2vyj979jp0iqc86ddnb5xvczcz-python3.7-youtube-dl-2020.11.26/lib/python3.7/site-packages/youtube_dl/__init__.py", line 15, in <module>
    from .options import (
  File "/nix/store/ka6q3w2vyj979jp0iqc86ddnb5xvczcz-python3.7-youtube-dl-2020.11.26/lib/python3.7/site-packages/youtube_dl/options.py", line 8, in <module>
    from .downloader.external import list_external_downloaders
  File "/nix/store/ka6q3w2vyj979jp0iqc86ddnb5xvczcz-python3.7-youtube-dl-2020.11.26/lib/python3.7/site-packages/youtube_dl/downloader/__init__.py", line 5, in <module>
    from .hls import HlsFD
  File "/nix/store/ka6q3w2vyj979jp0iqc86ddnb5xvczcz-python3.7-youtube-dl-2020.11.26/lib/python3.7/site-packages/youtube_dl/downloader/hls.py", line 6, in <module>
    from Crypto.Cipher import AES
  File "/nix/store/4p0d9jzgfn0xj2sbqb1clahxmq2g1s9s-python3.7-pycryptodome-3.9.9/lib/python3.7/site-packages/Crypto/Cipher/__init__.py", line 27, in <module>
    from Crypto.Cipher._mode_ecb import _create_ecb_cipher
  File "/nix/store/4p0d9jzgfn0xj2sbqb1clahxmq2g1s9s-python3.7-pycryptodome-3.9.9/lib/python3.7/site-packages/Crypto/Cipher/_mode_ecb.py", line 35, in <module>
    raw_ecb_lib = load_pycryptodome_raw_lib("Crypto.Cipher._raw_ecb", """
  File "/nix/store/4p0d9jzgfn0xj2sbqb1clahxmq2g1s9s-python3.7-pycryptodome-3.9.9/lib/python3.7/site-packages/Crypto/Util/_raw_api.py", line 308, in load_pycryptodome_raw_lib
    raise OSError("Cannot load native module '%s': %s" % (name, ", ".join(attempts)))
OSError: Cannot load native module 'Crypto.Cipher._raw_ecb': Trying '_raw_ecb.cpython-38-x86_64-linux-gnu.so': /nix/store/4p0d9jzgfn0xj2sbqb1clahxmq2g1s9s-python3.7-pycryptodome-3.9.9/lib/python3.7/site-packages/Crypto/Util/../Cipher/_raw_ecb.cpython-38-x86_64-linux-gnu.so: cannot open shared object file: No such file or directory, Trying '_raw_ecb.abi3.so': /nix/store/4p0d9jzgfn0xj2sbqb1clahxmq2g1s9s-python3.7-pycryptodome-3.9.9/lib/python3.7/site-packages/Crypto/Util/../Cipher/_raw_ecb.abi3.so: cannot open shared object file: No such file or directory, Trying '_raw_ecb.so': /nix/store/4p0d9jzgfn0xj2sbqb1clahxmq2g1s9s-python3.7-pycryptodome-3.9.9/lib/python3.7/site-packages/Crypto/Util/../Cipher/_raw_ecb.so: cannot open shared object file: No such file or directory

which is incredibly suspicious because there's both a python3.8 and python3.7 youtube-dl hanging out there.

Anyway, unsetting PYTHONPATH and running ./results/youtube-dl/bin/youtube-dl on a Spreaker URL (new in this release) seems to work properly, so LGTM.

@AndersonTorres AndersonTorres merged commit 8f651f1 into NixOS:master Nov 25, 2020
@Ma27
Copy link
Member

Ma27 commented Nov 25, 2020

@AndersonTorres can you also take care of the backport? :)

@AndersonTorres
Copy link
Member

@Ma27 looks fine but I never dit it before. Do you have a link to a tutorial or something?

@Luflosi Luflosi deleted the update/youtube-dl branch November 25, 2020 22:56
@SuperSandro2000
Copy link
Member

@Ma27 looks fine but I never dit it before. Do you have a link to a tutorial or something?

https://github.com/NixOS/nixpkgs/blob/master/.github/CONTRIBUTING.md#backporting-changes

@SuperSandro2000
Copy link
Member

Result of nixpkgs-review pr 104931 run on x86_64-darwin 1

5 packages marked as broken and skipped:
  • haskellPackages.cut-the-crap
  • jellyfin-mpv-shim
  • kodi-cli
  • persepolis
  • sublime-music
4 packages failed to build:
  • mopidy-youtube
  • mpc-qt
  • python37Packages.tubeup
  • python38Packages.tubeup
19 packages built:
  • catt
  • curseradio
  • mkchromecast
  • mps-youtube
  • plex-mpv-shim
  • python27Packages.pafy
  • python27Packages.youtube-dl
  • python27Packages.youtube-dl-light
  • python37Packages.mpv
  • python37Packages.pafy
  • python37Packages.youtube-dl
  • python37Packages.youtube-dl-light
  • python38Packages.mpv
  • python38Packages.pafy
  • youtube-dl (python38Packages.youtube-dl)
  • youtube-dl-light (python38Packages.youtube-dl-light)
  • somafm-cli
  • tuijam
  • ytcc

Broken packages are either already fixed or require youtube-dlc

@erictapen
Copy link
Member

Was backported in 9396030.

@erictapen erictapen added 8.has: port to stable A PR already has a backport to the stable release. and removed 9.needs: port to stable A PR needs a backport to the stable release. labels Jan 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants