Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help for CentOS & Redhat Folks #110

Closed
ZiaMM opened this issue Apr 17, 2011 · 3 comments
Closed

Help for CentOS & Redhat Folks #110

ZiaMM opened this issue Apr 17, 2011 · 3 comments

Comments

@ZiaMM
Copy link

@ZiaMM ZiaMM commented Apr 17, 2011

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

@ZiaMM
Copy link
Author

@ZiaMM ZiaMM commented Apr 17, 2011

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.

@rg3
Copy link
Collaborator

@rg3 rg3 commented Sep 10, 2011

No idea, I don't use Red Hat.

@rg3 rg3 closed this Sep 10, 2011
@phihag
Copy link
Contributor

@phihag phihag commented Sep 10, 2011

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.