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.
Help for CentOS & Redhat Folks #110
Comments
|
Correction, the issue-ware took the "#" in my post as "hardrule + bold". Just add "25" to the end of the first line of the script. |
|
No idea, I don't use Red Hat. |
|
ctypes support is conditional (only on windows) now anyway, so I don't think this bug applies. If it does, please file a new one. |
Authors: Please check if I did this workaround right - it seems to work.
Also, thanks for updating this program frequently to keep it working - you rock.
CentOS/Redhat only support Python 2.4 pending CentOS 6 but the latest version of youtube-dl requires Python 2.5. I think this is the workaround.
Here ...
http://blog.bashton.com/2008/python-25-rpms-for-rhel-5-centos-5/
... you will find Python 2.5 rpms which can be installed in parallel with your existing 2.4. Yum and other programs dependent on Python 2.4 will not be broken by installing them.
Step 1.
wget these:
http://bashton.com/downloads/rpm/python/python25-2.5.1-bashton1.x86_64.rpm
http://bashton.com/downloads/rpm/python/python25-libs-2.5.1-bashton1.x86_64.rpm
Step 2
Now install them concurrently (to avoid dependency problems 'cause each needs the other) like this:
rpm -ivh python25-libs-2.5.1-bashton1.x86_64.rpm python25-2.5.1-bashton1.x86_64.rpm
Step 3
Now change the first line in the youtube.dl script (/usr/bin/youtube-dl) to this:
!/usr/bin/env python25
That did it for me - the videos download again now. If I change the first line back to the old way (without '25' after python), it errors out as before.
This is not my forte, so if I just got lucky and there is a better way to do this, please advise. If you give me the OK, I'll post this workaround in a couple centos groups so folks can find it; you can link the FAQ to one of those or just paste this in.
The error before these changes was:
Traceback (most recent call last):
File "/usr/bin/youtube-dl", line 12, in ?
import ctypes
ImportError: No module named ctypes