Package Details: gtk-youtube-viewer-git 3.11.3.r0.g33ad855-1

Git Clone URL: https://aur.archlinux.org/gtk-youtube-viewer-git.git (read-only, click to copy)
Package Base: gtk-youtube-viewer-git
Description: A lightweight YouTube client for Linux (CLI/GTK)
Upstream URL: https://github.com/trizen/youtube-viewer
Keywords: gtk perl youtube
Licenses: Artistic2.0
Conflicts: youtube-viewer, youtube-viewer-git
Provides: youtube-viewer, youtube-viewer-git
Submitter: trizen
Maintainer: trizen
Last Packager: trizen
Votes: 10
Popularity: 0.000537
First Submitted: 2017-02-22 19:02 (UTC)
Last Updated: 2024-08-11 17:35 (UTC)

Dependencies (20)

Required by (0)

Sources (1)

Latest Comments

Munto commented on 2023-08-12 16:07 (UTC) (edited on 2023-12-14 02:19 (UTC) by Munto)

I use essentially gtk-youtube-viewer and I'm encountering some warnings preventing me to play videos since the last upgrade to perl 5.38.

Can't call method "state" on an undefined value at /usr/share/perl5/vendor_perl/WWW/YoutubeViewer/Itags.pm line 336.

=>> Previous warnings:
[Sat Aug 12 17:56:50 2023]: attributes object version 0.35 does not match $attributes::VERSION 0 at /usr/share/perl5/core_perl/XSLoader.pm line 112, <$fh> line 1.
Compilation failed in require at /usr/share/perl5/core_perl/XSLoader.pm line 112, <$fh> line 1.
BEGIN failed--compilation aborted, <$fh> line 1. at /usr/bin/gtk-youtube-viewer line 462, <$fh> line 1.
[Sat Aug 12 18:04:07 2023]: Can't call method "state" on an undefined value at /usr/share/perl5/vendor_perl/WWW/YoutubeViewer/ParseXML.pm line 278. at /usr/bin/gtk-youtube-viewer line 462.
[Sat Aug 12 18:04:07 2023]: Can't call method "state" on an undefined value at /usr/share/perl5/vendor_perl/WWW/YoutubeViewer/ParseXML.pm line 278.
Compilation failed in require at /usr/share/perl5/vendor_perl/WWW/YoutubeViewer/GetCaption.pm line 155. at /usr/bin/gtk-youtube-viewer line 462.

I can play videos with the cli version.

Are you facing the same issue?

EDIT:
4 months later, I reply to myself because I finally took the time to investigate the issue. After the last upgrade to perl 5.38.1, I couldn't even launch the program...
The warning related to XSLoader is specific to perl and has nothing to do with youtube-viewer even if I still don't know what it is.

The warning about the method "state" is what was causing me trouble. I found a fix thanks to the perldoc indicating to prefix the method with the CORE:: namespace.
It says it should be enabled with the use of perl 5.10 or higher, so I don't know why it doesn't work automatically here.
I also encountered a problem with the usage of __SUB__ in YoutubeViewer.pm l.154, then I replaced it with the name of the subroutine directly and I was able to run the program again.

I don't know if Trizen reads the comments here, and it's probably not the best place to report these things, but as I don't see any mention of this issue on github I am probably the only one concerned.
I still hope it will help someone.

FernandoBasso commented on 2021-04-16 14:22 (UTC)

$ gtk-youtube-viewer
Can't locate Gtk3.pm in @INC (you may need to install the Gtk3 module) (@INC contains: /usr/lib/perl5/5.32/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/5.32/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/5.32/core_perl /usr/share/perl5/core_perl) at /usr/bin/vendor_perl/gtk-youtube-viewer line 34.
BEGIN failed--compilation aborted at /usr/bin/vendor_perl/gtk-youtube-viewer line 34.

Solved with this:

$ sudo pacman -S perl-gtk3

katt commented on 2020-07-15 14:35 (UTC)

Please follow the VCS packaging guidelines https://wiki.archlinux.org/index.php/VCS_package_guidelines#The_pkgver()_function