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.
youtube-dl cant run #1312
youtube-dl cant run #1312
Comments
|
This sounds like you don't have libssl-dev Try sudo apt-get install libssl-dev then try to run. If that doesn't work remove python then re-install it after libssl-dev is installed. |
|
Thank you for the report! Which platform are you seeing this problem on, i.e. can you provide steps to reproduce it? Can you |
|
phihag: TOMBSTONEV2: here is my installed python modules: |
|
@szunyi Thanks, that narrows it down, but a crucial piece of information is missing - how did you install Python? You're not using the system Python. To import urrlib2, start python and type
|
|
Thanks for helping :) "How did you install Python?" - As i remember, "yum install python" and "yum update"
As i see i got multiple version installed of python: |
|
|
|
I renamed the "/usr/local/lib/python2.7" to "/usr/local/lib/python2.7__local" i got the following err msg: |
|
That clarifies what's happening (you should move back the library now). You or someone else with admin rights has installed a customized version (probably self-compiled) of Python 2.7 on this machine, and set that up to be the default. However, during the time of compilation, libssl-dev was missing, and therefore the generated Python in non-functional. What you can try is any of: a) Use python3.3, like this:
To make this permanent, you can execute these commands, which set up a shell script that launches youtube-dl with python3.3: YDL=$(which youtube-dl)
mv $YDL ${YDL}.pythonexe
/bin/echo -e '#!/bin/sh\nexec python3.3 '"${YDL}.pythonexe"' "$@"\n' > $YDL
chmod a+x $YDLb) Fix your installation of Python 2.7 Recompiling it may be enough, so just run
from the directory where Python2.7 has been compiled. c) Set another Python version to be the default. This has likely effects on other applications as well and may therefore not be a good idea - contact your system administrator. Modify the symlink |
|
@phihag resolved? |
|
Closing, one of these solutions should work. If it doesn't, please either comment or open a new issue. Thanks! |
hello
when i want to run the youtube-dl i got this error msg:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/usr/local/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "./youtube-dl/main.py", line 15, in
File "./youtube-dl/youtube_dl/init.py", line 48, in
File "./youtube-dl/youtube_dl/utils.py", line 21, in
File "/usr/local/lib/python2.7/urllib2.py", line 93, in
import hashlib
File "/usr/local/lib/python2.7/hashlib.py", line 136, in
globals()[__func_name] = __get_hash(__func_name)
File "/usr/local/lib/python2.7/hashlib.py", line 71, in __get_builtin_constructor
import _md5
ImportError: No module named _md5