Re: flash 9 beta

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

 



Paul Winkler wrote:
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"
hi,
that was right, i had python as a symlink to python2.3, so i removed and put the link to python2.4.

now it works!
thanks very much for the help and cheers,
doc

[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