I just tried upgrading to the new version, and I get this error:
Quote:INFO: Current version is 2.91
INFO: Checking for latest version from www.infradead.org
INFO: Newer version 2.94 available
INFO: Updating get_iplayer.pl (from 2.91 to 2.94)
ERROR: Could not create backup file get_iplayer.pl.old - Update aborted
Any idea how I fix this? I thought it might be that I already have a file called get_iplayer.pl.old, but I can't find one.
Don't use self-update on Windows. Use the installer.
That could be a permissions issue (not having priv's to write to the folder, if you have get_iplayer installed under program files).
Try opening a command prompt with administator priv's (start menu > All Programs > Accessories > right click on Command Prompt and select "run as administrator" and select yes - at least on my Win7 box) then navigate to your get_iplayer install folder and type
Code:
get_iplayer --update
and it should do the biz for you.
Then afterwards do the cache refresh as DinkyPumpkin recommends
in the release notes down near the bottom (or if you aren't happy with the command line, maybe try downloading and running the installer as suggested there).
Thanks, ran as administrator and it worked fine (I thought I already had Console set to always open as administrator, but clearly not).
Took me a while to do, as the forum doesn't seem to send notification on replies!
Thanks for the tips.
I had the same problem, which was resolved by turning off the firewall. But, now, get_iplayer will also not fetch without disabling my firewall. Didn't think about 'Run as administrator'. I'll try to run get_iplayer as administrator...
@leobingo: This topic has absolutely nothing to do with your firewall issue. The OP was for some reason attempting to perform a self-update of the get_iplayer script on Windows after using the installer for the previous version. That is absolutely not necessary and generally a bad idea - that is why we have an installer. If you have to run get_iplayer as administrator, you either didn't install it properly or something is wrong with the permissions on your system.
I should add that the Windows installation of get_iplayer is a bit restrictive in that it assumes you will run it under the user account you used to install it (the common single machine, single user scenario). If you install as one user and try to run get_iplayer as a different user, you may run into problems with file permissions depending on your setup. But again, if you need to be an administrator to get out through your firewall, something is wrong with the firewall configuration.
To be clear, in my case I only need to use admin privs if I want to update via the command line (as opposed to the installer). Normal operations work perfectly using a standard account.
And the update only needs it as the program in my case is installed in the program files directory, which needs admin privs to have anything updated/added/changed in it. That's perfectly normal behaviour for Windows (7 Home Premium in my case), nothing unexpected at all. And I'm sure had I installed it somewhere else outside that folder then even update would work fine without admin privs (presuming somewhere else similarly didn't need it by default).
I'm baffled why you elected to do that, but it's your choice. I just don't want future visitors getting the notion that they should do likewise. On Windows, either always use the installer, or never use the installer. When you use get_iplayer --update, only the Perl scripts are updated, but the main scripts are not the whole payload carried by the installer. You run the potential risk of getting your scripts out of sync with other components. It doesn't happen often, but some users have been bitten when they updated just the scripts and failed to update the embedded Perl distribution, for example.
Because that particular simple explanation is one I've never seen before, and thus never considered...
I shall take your method up from the next update :)