Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Traceback of not working youtube-dl installation #939
Comments
|
It looks like your Python version has been compiled without SSL support. I'll try to reproduce this with a brand-new squeeze installation. In the meantime, you can upgrade to a Python version with SSL support, which should come standard at least in wheezy. |
|
Hey Phihag, thanx for your reply. I tried to install ssl by apt-get install python-openssl but it seams to be the same problem. Do you know any better way to install ssl module for python? Or do I have to recompile it completly new? Thnx. in advance... AceLine |
|
It worked fine for me on a brand-new squeeze. How did you install Python? (I used python --version
which python
md5sum $(which python)
dpkg -l pythonon your system? Note that openssl is completely unrelated here. You need the |
|
Hi Phihag, the output of your sequence was: ns3:/# python --version Is it possible that installation didn't work well? Which python version is the main version on my system now...? 2.6.4 or 2.5.2-3??? I have no plan, thanx in advance for your helpfull hints...! Best regards from Austria, AceLine |
|
Sorry Phihag, I upgraded to squeeze now and the following output occures on your sequence: ns3:/# python --version Seams like the by apt-get installed version is referenced as the main python installation and the newer one doesn't come to work at all... I'll try to purge the older version now and will give you a status on it. AceLine |
|
Oh, that explains it: You have compiled Python yourself and put it into
You can then configure 2.6 to be the default with
This should yield the following output: $ /usr/bin/python --version
Python 2.6.6Then, you can simply uninstall your locally compiled Python version (with
Since many sites use HTTPS, I don't think we should accomodate installations without SSL support - it would simply break a lot of sites, and be dangerous if you're expecting to be safe against interception (because downloading a pro-democracy video from an oppressive state or so). Does either of these two options solve your problem? |
|
ns3:/# update-alternatives --install /usr/bin/python python /usr/bin/python2.6 2 |
|
How can I delete my self compiled version and make the newest from squeeze the main python? |
|
|
|
Thank you, that way I did know... but - one last question: I removed the old version by rm -R /usr/local/bin/python but now - and that's exactely what I expected - the call to python ends up in a bash: /usr/local/bin/python: No such file or directory... Can you tell me how to solve this or where to find the file python of the new installation to make a ln -s at the old location to the new one? Thank you very much for your patience, AceLine |
|
That's very strange, do you have an alias defined? I.e. what output do you get for
If there is truly no |
|
Hi, THANX a lot for your help! alias did the job. For people searching for how to do it:
in that file add:
...save and exit and:
thats it... @phihag: go on with your good work! thnx for all!!! |
|
Ahhmmm... Phihag... Only one last question about proxy settings: How to use a proxy with user credentials? I mean, --proxy 1.2.3.4 is the method to use a proxy server of ip 1.2.3.4 but how can I ad a username:password pair? thnx. one more in advance, AceLine |
|
While defining an alias works, the original problem was most likely an existing alias. Please do not discuss multiple items in a single issue, but instead, open a new one (don't worry, that's free of charge). You should be able to use |
|
Thank you for your kindness! Best regards, AceLine |
Hi there forumianers and developers,
I get the following output on my Debian 6.0 console after installing youtube-dl like described on http://rg3.github.io/youtube-dl/download.html :
ns3:/# youtube-dl "http://www.youtube.com/watch?v=WK_XhKnjDOI"
Traceback (most recent call last):
File "/usr/local/lib/python2.6/runpy.py", line 122, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/usr/local/lib/python2.6/runpy.py", line 34, in _run_code
exec code in run_globals
File "/usr/local/bin/youtube-dl/main.py", line 18, in
File "/usr/local/bin/youtube-dl/youtube_dl/init.py", line 608, in main
File "/usr/local/bin/youtube-dl/youtube_dl/init.py", line 407, in _real_main
File "/usr/local/bin/youtube-dl/youtube_dl/utils.py", line 460, in make_HTTPS_handler
AttributeError: 'module' object has no attribute 'HTTPSHandler'
...and if I try to cd to the youtube-dl location it says:
ns3:/# cd /usr/local/bin/youtube-dl
bash: cd: /usr/local/bin/youtube-dl: Not a directory
what have I done wrong...? could anybody give me a hint to solve this issue?
THANX in advance!
AceLine