get_iplayer for Raspbian Stretch
#1
Information 
get_iplayer 3.02 for Raspbian Stretch is now available at http://packages.hedgerows.org.uk/

per the notes you'll find there, to install the updated repository, get-iplayer and its dependencies, paste this line into a terminal window:

Code:
wget http://packages.hedgerows.org.uk/raspbian/install.sh -O - | sh

The repository signing key has changed, so it's not sufficient just to point at "stable" instead of "jessie".  If you don't want to run the install script just download a copy and pick the pieces you want from it.

Jon
#2
(10-09-2017, 04:59 PM)jonhedgerows Wrote: get_iplayer 3.02 for Raspbian Stretch is now available at http://packages.hedgerows.org.uk/

per the notes you'll find there, to install the updated repository, get-iplayer and its dependencies, paste this line into a terminal window:

Code:
wget http://packages.hedgerows.org.uk/raspbian/install.sh -O - | sh

The repository signing key has changed, so it's not sufficient just to point at "stable" instead of "jessie".  If you don't want to run the install script just download a copy and pick the pieces you want from it.

Jon

Just FYI, the script fails for me when adding both keys, on Raspbian Jessie, with error:
gpg: can't open `': No such file or directory

I manually downloaded and added the keys successfully.

Thanks for all the work maintaining get-iplayer.

P.
#3
(12-09-2017, 09:37 AM)psychlist Wrote: Just FYI, the script fails for me when adding both keys, on Raspbian Jessie, with error:
gpg: can't open `': No such file or directory

I manually downloaded and added the keys successfully.

Thanks for all the work maintaining get-iplayer.

P.

That's odd.  (My testing was limited, but it worked ok on a fresh install of Stretch...)

However, mainly for others who might read this thread, please note that the repository is aimed at Stretch, not Jessie, and attempting to use it with Jessie may have variable results.

Jon
#4
Quote:That's odd.  (My testing was limited, but it worked ok on a fresh install of Stretch...)

However, mainly for others who might read this thread, please note that the repository is aimed at Stretch, not Jessie, and attempting to use it with Jessie may have variable results.

Jon

Ah -- that's my misunderstanding, then. 3.02-1-ge2c5943-ppa30e appears to be working fine on Jessie for now, but I guess I better get myself upgraded to Stretch.

Thanks for the followup.

Peter.
#5
I've just tried installing get-iplayer on  fresh install of Raspberry Pi Stretch by pasting the above string in to the command prompt. There didn't appear to be any error messages during the install.

On trying to start the WebPVR I get the following error;
Code:
pi@raspberrypi:~ $ get-iplayer-web-pvr
Can't locate CGI.pm in @INC (you may need to install the CGI module) (@INC contains: /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/arm-linux-gnueabihf/perl5/5.24 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/arm-linux-gnueabihf/perl-base) at /usr/share/get_iplayer/get_iplayer.cgi line 32.
BEGIN failed--compilation aborted at /usr/share/get_iplayer/get_iplayer.cgi line 32.

I've done a find for the cgi.pm and files of that name appear in two places;
Code:
pi@raspberrypi:/ $ find -iname "cgi.pm" 2>~/tmp.tmp
./usr/share/perl5/Mojolicious/Command/cgi.pm
./usr/share/perl5/Mojo/Server/CGI.pm

But I have no idea how to get them to a place where Perl can see them, and I haven't checked to see if they are the same - I'm rather a Linux novice.

Thanks for all the work done to keep get-iplayer running
Ian

UPDATE

I've tried copying the required CGI.pm then CGI/Cookie.pm files to a place on the path, and the get_iplayer_web_pvr command now starts but when trying to browse to http://127.0.0.1:1935 in Chromium there's this error produced in the terminal window;
Code:
pi@raspberrypi:~ $ get-iplayer-web-pvr
INFO: Listening on 127.0.0.1:1935
GET: /
Can't locate object method "new" via package "CGI" at /usr/share/get_iplayer/get_iplayer.cgi line 457, <GEN1> line 10.
so that trick clearly didn't work...
#6
Thanks John, all upgraded on stretch now.
I basically ran every command in your script apart from the last one to install iplayer.
I then ran sudo apt-get upgrade to upgrade the existing install.
#7
I upgraded to Stretch without incident. Instructions here if anyone's interested:
 https://www.raspberrypi.org/blog/raspbian-stretch/
#8
(16-09-2017, 03:11 PM)Multiplex Wrote: I've done a find for the cgi.pm and files of that name appear in two places;
Code:
pi@raspberrypi:/ $ find -iname "cgi.pm" 2>~/tmp.tmp
./usr/share/perl5/Mojolicious/Command/cgi.pm
./usr/share/perl5/Mojo/Server/CGI.pm
Similar names notwithstanding, those files are not what you need. They are part of the Mojolicious library. You need the standalone CGI Perl module, which should be packaged for Raspbian. See the Linux manual installation doc in wiki.
#9
(16-09-2017, 03:11 PM)Multiplex Wrote: I've just tried installing get-iplayer on  fresh install of Raspberry Pi Stretch by pasting the above string in to the command prompt. There didn't appear to be any error messages during the install.

On trying to start the WebPVR I get the following error;
Code:
pi@raspberrypi:~ $ get-iplayer-web-pvr
Can't locate CGI.pm in @INC (you may need to install the CGI module)
There's a missing dependency in the packaging.  This is now fixed, just do an apt update and apt upgrade and you'll be fine.
Code:
$ sudo apt update
$ sudo apt upgrade

(16-09-2017, 03:11 PM)Multiplex Wrote: UPDATE
I've tried copying the required CGI.pm then CGI/Cookie.pm files to a place on the path...
that trick clearly didn't work...
You'll need to undo whatever it was that you tried... (the correct solution would have been to install the perl CGI module, which as it happens is packaged in libcgi-pm-perl).

Cheers
Jon
#10
Brilliant, thanks Jon. That got it sorted :-)
I realised that copying those files was a long shot - but that't the fun of the Pi, experimentation.

Now to carry on moving back in (and yes of course I forgot to not the PVR list I had...)

Thanks
Ian