Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 552216 - net-misc/youtube-dl-2015.06.15: USE="-offensive" is broken
Summary: net-misc/youtube-dl-2015.06.15: USE="-offensive" is broken
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Jeroen Roovers (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-15 16:45 UTC by Nikoli
Modified: 2015-06-23 17:25 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nikoli 2015-06-15 16:45:11 UTC
Traceback (most recent call last):
  File "/usr/bin/youtube-dl", line 3, in <module>
    import youtube_dl
  File "/usr/lib64/python2.7/site-packages/youtube_dl/__init__.py", line 43, in <module>
    from .extractor import gen_extractors, list_extractors
  File "/usr/lib64/python2.7/site-packages/youtube_dl/extractor/__init__.py", line 19, in <module>
    from .ard import ARDIE, ARDMediathekIE
  File "/usr/lib64/python2.7/site-packages/youtube_dl/extractor/ard.py", line 7, in <module>
    from .generic import GenericIE
  File "/usr/lib64/python2.7/site-packages/youtube_dl/extractor/generic.py", line 45, in <module>
    from .pornhub import PornHubIE
ImportError: No module named pornhub
Comment 1 Enne Eziarc 2015-06-19 23:01:51 UTC
This sounds like a repeat of bug 540988, FWIW.
Comment 2 Michael Mair-Keimberger (mm1ke) 2015-06-20 19:00:53 UTC
I can confirm this bug
Comment 3 BobbyK 2015-06-21 15:57:52 UTC
Not sure it's a repeat of bug 540988; seems the latest version has pornhub imports in additional files:

# cd /usr/lib64/python2.7/site-packages/youtube_dl/extractor && grep -i pornhub *.py
generic.py:from .pornhub import PornHubIE
generic.py:        # Look for embedded PornHub player
generic.py:        pornhub_url = PornHubIE._extract_url(webpage)
generic.py:        if pornhub_url:
generic.py:            return self.url_result(pornhub_url, 'PornHub')
tumblr.py:from .pornhub import PornHubIE
tumblr.py:        pornhub_url = PornHubIE._extract_url(webpage)
tumblr.py:        if pornhub_url:
tumblr.py:            return self.url_result(pornhub_url, 'PornHub')

Perhaps the ebuild needs some sed magic for generic and tumblr in addition to __init__.  Removing these lines fixes youtube-dl for me.
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2015-06-23 17:25:48 UTC
Should be fixed in -r1.