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

Youtube-dl Kali Linux #6271

Closed
BIGMOS opened this issue Jul 18, 2015 · 1 comment
Closed

Youtube-dl Kali Linux #6271

BIGMOS opened this issue Jul 18, 2015 · 1 comment

Comments

@BIGMOS
Copy link

@BIGMOS BIGMOS commented Jul 18, 2015

I get this error when runnin youtube-dl

I have tried all methods of downling it as well
sudo curl https://yt-dl.org/downloads/2015.07.18/youtube-dl -o /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl

sudo pip install --upgrade youtube_dl

pip install said successful

_ERROR BELOW_**

root@kali32:~#youtube-dl
Traceback (most recent call last):
File "/usr/local/bin/youtube-dl", line 9, in
load_entry_point('youtube-dl==2015.07.18', 'console_scripts', 'youtube-dl')()
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 337, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2279, in load_entry_point
return ep.load()
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1989, in load
entry = import(self.module_name, globals(),globals(), ['name'])
File "/usr/local/lib/python2.7/dist-packages/youtube_dl/init.py", line 16, in
from .options import (
File "/usr/local/lib/python2.7/dist-packages/youtube_dl/options.py", line 8, in
from .downloader.external import list_external_downloaders
File "/usr/local/lib/python2.7/dist-packages/youtube_dl/downloader/init.py", line 3, in
from .common import FileDownloader
File "/usr/local/lib/python2.7/dist-packages/youtube_dl/downloader/common.py", line 8, in
from ..compat import compat_str
File "/usr/local/lib/python2.7/dist-packages/youtube_dl/compat.py", line 82, in
_asciire = re.compile('([\x00-\x7f]+)') if sys.version_info < (2, 7) else compat_urllib_parse._asciire
AttributeError: 'module' object has no attribute '_asciire'

root@kali32:~# wget https://yt-dl.org/downloads/2015.07.18/youtube-dl.sig -O youtube-dl.sig
--2015-07-18 09:52:52-- https://yt-dl.org/downloads/2015.07.18/youtube-dl.sig
Resolving yt-dl.org (yt-dl.org)... 2001:1a50:11:0:5f:8f:acaa:177, 95.143.172.170
Connecting to yt-dl.org (yt-dl.org)|2001:1a50:11:0:5f:8f:acaa:177|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 543 [application/pgp-signature]
Saving to: `youtube-dl.sig'

100%[======================================>] 543 --.-K/s in 0.001s

2015-07-18 09:52:55 (1.03 MB/s) - `youtube-dl.sig' saved [543/543]

root@kali32:~# gpg --verify youtube-dl.sig /usr/local/bin/youtube-dl
gpg: directory /root/.gnupg' created gpg: new configuration file/root/.gnupg/gpg.conf' created
gpg: WARNING: options in /root/.gnupg/gpg.conf' are not yet active during this run gpg: keyring/root/.gnupg/pubring.gpg' created
gpg: Signature made Sat 18 Jul 2015 06:05:48 AM EDT using RSA key ID A4826A18
gpg: Can't check signature: public key not found

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jul 18, 2015

This is already fixed and will be available in the next version.
You can also fix this by updating python to 2.7.4 or later. Or you can use previous version https://yt-dl.org/downloads/2015.07.07/youtube-dl.

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
2 participants
You can’t perform that action at this time.