Re: flash 9 beta

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Oct 20, 2006 at 02:41:31PM +0200, Dragan Noveski wrote:
> James McDermott wrote:
> >On 10/19/06, Rob <lau@xxxxxxxxx> wrote:
> >
> >>There's a Greasemonkey script for Firefox that converts the
> >>embedded video into a download link, which lets you save
> >>the .flv file to your hard disk for playback or conversion using
> >>mplayer.
> >
> >If you don't have Greasemonkey this might be easier:
> >
> >http://www.arrakis.es/~rggi3/youtube-dl/
> >
> >
> can you please tell what of python stuff you have installed?
> i have 2.4.3 python and the same version of python-minimal, but the 
> executable wants not to start, complaining that python is missing.

AFAICT it requires nothing but python 2.4 and the standard libraries.

The "hashbang" at the beginning of the script reads:
#!/usr/bin/env python

This is a common trick to avoid needing to know where the python
interpreter lives.  Two things could go wrong with that:

1) You might not have "env" installed, or it might be somewhere
other than /usr/bin.  (It's provided by gnu coreutils so i'd be amazed
if your distro doesn't have it.)
Try this: 
env --version
which env

2) If you have multiple python versions installed, it's likely 
that 'python' is a symlink to the wrong one.  youtube-dl is hardcoded
to exit if the version is less than 2.4, with the message
'Error: Python 2.4 or later needed to run the program'

Try this:

ls -l `which python`

and/or

/usr/bin/env python -V

... and see what that tells you.

If you need to keep around an earlier version of python as the default
python, a workaround is to invoke 2.4 directly,
typically something like:

python2.4 /path/to/youtube-dl ...

If that works, wrap it up as a shell alias for convenience,
e.g. in .bashrc:

alias youtube-dl="/usr/bin/python2.4 /path/to/youtube-dl" 

-- 

Paul Winkler
http://www.slinkp.com

[Index of Archives]     [Linux Sound]     [ALSA Users]     [Pulse Audio]     [ALSA Devel]     [Sox Users]     [Linux Media]     [Kernel]     [Photo Sharing]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux