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

using python3 breaks youtube-dl in Ubuntu 16.04 #11342

Closed
baobab33 opened this issue Dec 2, 2016 · 4 comments
Closed

using python3 breaks youtube-dl in Ubuntu 16.04 #11342

baobab33 opened this issue Dec 2, 2016 · 4 comments

Comments

@baobab33
Copy link

@baobab33 baobab33 commented Dec 2, 2016

  • I've verified and I assure that I'm running youtube-dl version 2016.11.27

(1:2016.11.27-1~webupd8~xenial0)

Before submitting an issue make sure you have:

  • At least skimmed through README and most notably FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:

$ youtube-dl -v
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.11.27
[debug] Python version 3.5.2 - Linux-4.4.0-47-generic-x86_64-with-Ubuntu-16.04-xenial
[debug] exe versions: avconv 2.8.8-0ubuntu0.16.04.1, avprobe 2.8.8-0ubuntu0.16.04.1, ffmpeg 2.8.8-0ubuntu0.16.04.1, ffprobe 2.8.8-0ubuntu0.16.04.1, rtmpdump 2.4
[debug] Proxy map: {}

...
<end of log>

Description of your issue

hi, I had to use python 3 instead of 2 (for installing Django framework)

update-alternatives --remove python /usr/bin/python2
update-alternatives --install /usr/bin/python python /usr/bin/python3 100

after that, it is impossible to use youtube-dl, it says there is a module youtube_dl missing in python.

Traceback (most recent call last):
  File "/usr/bin/youtube-dl", line 3, in <module>
    import youtube_dl
ImportError: No module named 'youtube_dl'

back to python version 2 solves the issue.

i remain available by email if you need more information

Best regards

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Dec 2, 2016

How did you install youtube-dl?

@baobab33
Copy link
Author

@baobab33 baobab33 commented Dec 5, 2016

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Dec 5, 2016

It's not recommended to install youtube-dl from apt as Ubuntu does not maintain it well. Uninstall it fom apt and check our recommended installation methods: https://github.com/rg3/youtube-dl/blob/master/README.md#installation

@yan12125 yan12125 closed this Dec 5, 2016
@baobab33
Copy link
Author

@baobab33 baobab33 commented Dec 5, 2016

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.