
I downloaded the latest version of youtube-dl (2006.08.15) from www.arrakis.es/~rggi3/youtube-dl/. It's a CLI program to download videos from YouTube. The instructions say you need the Python interpreter, v 2.4. A check of my RPM packages showed that I only had python-2.3.4-13.1.i386.rpm installed, so I also installed python24-2.4.1-2.i386.rpm, which I assume means that I now satisfy the requirement for v 2.4 of the Python interpreter. However, when I run youtube-dl, I get the following error message: Traceback (most recent call last): File "/usr/bin/youtube-dl", line 150, in ? urllib2.install_opener(urllib2.build_opener(urllib2.HTTPCookieProcessor())) AttributeError: 'module' object has no attribute 'HTTPCookieProcessor' I checked the contents of the file youtube-dl and line 150 of it is identical to the third of the four lines I just set out. I know nothing about Python. I did google to see if I could find some solution to the problem, but couldn't. Is there anything that strikes people immediately as something I could try to get youtube-dl working?

On 8/17/06, Leslie Katz <lesliek(a)ozemail.com.au> wrote: [snipped]
Traceback (most recent call last): File "/usr/bin/youtube-dl", line 150, in ?
urllib2.install_opener(urllib2.build_opener(urllib2.HTTPCookieProcessor())) AttributeError: 'module' object has no attribute 'HTTPCookieProcessor'
I checked the contents of the file youtube-dl and line 150 of it is identical to the third of the four lines I just set out.
Even you installed python2.4, the default python version of your system is still 2.3. That's the reason of this error. There are two ways to fix it. 1. run "python2.4 /usr/bin/youtube-dl URL" 2. open the file and change the first line from "#!/usr/bin/env python" to "#!/usr/bin/python2.4" Good Luck. -- Best Regards Carlos
participants (2)
-
Carlos Liu
-
Leslie Katz