rt2yrru / get-flash-videos

Automatically exported from code.google.com/p/get-flash-videos
0 stars 0 forks source link

Ustream broken - cannot see Data::AMF::Packet #481

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. % get_flash_videos http://www.ustream.tv/recorded/8612469

What is the expected output? What do you see instead?
  Using method 'ustream' plugin version 0.01 for 
    http://www.ustream.tv/recorded/8612469
  Downloading http://www.ustream.tv/recorded/8612469
  Must have Data::AMF::Packet installed to download ustream videos at
    /usr/lib/perl5/site_perl/FlashVideo/Site/Ustream.pm line 15.

  A required Perl module for downloading this video is not installed.
  Couldn't download any videos

What version of the product are you using? On what operating system?
git (latest) Arch Linux
https://aur.archlinux.org/packages/ge/get-flash-videos-git/PKGBUILD

Please provide any additional information below.
% perldoc -l Data::AMF::Packet
/usr/share/perl5/vendor_perl/Data/AMF/Packet.pm

Original issue reported on code.google.com by jstee...@gmail.com on 19 Mar 2013 at 9:06

GoogleCodeExporter commented 8 years ago
This needs installing. For Debian I plan to upload a copy.

Original comment by njtaylor...@gmail.com on 21 Mar 2013 at 12:45

GoogleCodeExporter commented 8 years ago
It is installed! See the last bit of info I provided. While a bit of a crude 
way to prove it is installed, it is installed...

Original comment by jstee...@gmail.com on 21 Mar 2013 at 9:33

GoogleCodeExporter commented 8 years ago
Your original issue, was deleted. I had to restore the issue.

The download works on OpenBSD amd64 (Perl 5.12), also tried on Debian Squeeze 
(Perl 5.10) works also. So looking for a reason why on two versions of perl 
these lines at the very start of the plugin work, but fail on your version.

  unless(eval { require Data::AMF::Packet }) {
    die "Must have Data::AMF::Packet installed to download ustream videos";
  }

Possible that a later or earlier version of perl has changed

Check installed/version...
$ perl -MData::AMF -e 'print $Data::AMF::VERSION."\n";' 
0.09

Check for compile issues...
$ perl -c `perldoc -l Data::AMF::Packet`
/usr/local/libdata/perl5/site_perl/Data/AMF/Packet.pm syntax OK
$ perl -c `perldoc -l Data::AMF`         
/usr/local/libdata/perl5/site_perl/Data/AMF.pm syntax OK

Check lines work...
$ perl -e 'unless(eval { require Data::AMF::Packet }) {die "fail find $@"}; 
print "ok\n";'  
ok

If that fails it should give an error like so...

$ perl -e 'unless(eval { require Data::AMF::Packet1 }) {die "fail find $@"}; 
print "ok\n";'   
fail find Can't locate Data/AMF/Packet1.pm in @INC (@INC contains: 
/usr/local/libdata/perl5/site_perl/amd64-openbsd 
/usr/libdata/perl5/site_perl/amd64-openbsd /usr/local/libdata/perl5/site_perl 
/usr/libdata/perl5/site_perl /usr/libdata/perl5/amd64-openbsd/5.12.2 
/usr/local/libdata/perl5/amd64-openbsd/5.12.2 /usr/libdata/perl5 
/usr/local/libdata/perl5 .) at -e line 1.

Original comment by njtaylor...@gmail.com on 21 Mar 2013 at 11:28

GoogleCodeExporter commented 8 years ago
Thanks for the info. By running any of those commands it complained: "Can't 
locate Any/Moose.pm", so I installed perl-any-moose and everything worked fine, 
even downloading from ustream! Thanks again.

Original comment by jstee...@gmail.com on 21 Mar 2013 at 6:41

GoogleCodeExporter commented 8 years ago
I shall close this, from this

http://cpansearch.perl.org/src/TYPESTER/Data-AMF-0.09/Makefile.PL

It shows Any/Moose is a required perl module, should get automatically 
installed then the Data::AMF was installed. That's no longer a g-f-v issue 
rather an issue possibly with packaging of Data:AMF. Good that it's working.

Closing as fixed. No code changes made.

Original comment by njtaylor...@gmail.com on 21 Mar 2013 at 7:16