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

New 2015.07.18 fails in Python 2.7 #6274

Closed
jamieson99 opened this issue Jul 18, 2015 · 2 comments
Closed

New 2015.07.18 fails in Python 2.7 #6274

jamieson99 opened this issue Jul 18, 2015 · 2 comments

Comments

@jamieson99
Copy link

@jamieson99 jamieson99 commented Jul 18, 2015

Awesome module. I have it embedded in a couple of scripts. here's what it just started doing (Python 2.7 on Debian 8)

Collecting youtube-dl
  Downloading youtube_dl-2015.07.18-py2.py3-none-any.whl (993kB)
    100% |████████████████████████████████| 995kB 159kB/s 
Installing collected packages: youtube-dl
  Found existing installation: youtube-dl 2015.6.15
    Uninstalling youtube-dl-2015.6.15:
      Successfully uninstalled youtube-dl-2015.6.15
Successfully installed youtube-dl-2015.7.18
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl", line 7, in <module>
    from youtube_dl import main
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/__init__.py", line 16, in <module>
    from .options import (
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/options.py", line 8, in <module>
    from .downloader.external import list_external_downloaders
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/downloader/__init__.py", line 3, in <module>
    from .common import FileDownloader
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/downloader/common.py", line 8, in <module>
    from ..compat import compat_str
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/compat.py", line 82, in <module>
    _asciire = re.compile('([\x00-\x7f]+)') if sys.version_info < (2, 7) else compat_urllib_parse._asciire
AttributeError: 'module' object has no attribute '_asciire'
@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.

@dstftw dstftw closed this Jul 18, 2015
@jamieson99
Copy link
Author

@jamieson99 jamieson99 commented Jul 18, 2015

Awesome, thanks @dstftw !!

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.