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

append 3 on the script name #4942

Open
ramonmoraes8080 opened this issue Feb 12, 2015 · 2 comments
Open

append 3 on the script name #4942

ramonmoraes8080 opened this issue Feb 12, 2015 · 2 comments
Labels

Comments

@ramonmoraes8080
Copy link

@ramonmoraes8080 ramonmoraes8080 commented Feb 12, 2015

I don't know but i'm the only one here which wants to user youtube-dl on a machine with 2 python versions: 2 and 3?
So as pip i think it's a good idea to generate a script with a "-3" at the end to indicate we are accessing the bin folder of python 3.
I really don't know if it's trivial or easy, but if not just disregard the request. Thanks for the great app/tool

@jaimeMF jaimeMF added the request label Feb 12, 2015
@phihag
Copy link
Contributor

@phihag phihag commented Feb 12, 2015

Sorry, I don't understand what you do. Do you want to generate a file youtube-dl-3 to indicate something? And why? Can you describe the context?

Note that youtube-dl does work fine under both Python 2.x and 3.x (for sane values of x).
If you do follow our manual installation instructions, you can execute the youtube-dl binary (it's really a zip file) both with python2 and python3.

If you do use pip then it should work fine with both versions as well:

$ sudo pip3 -q install youtube-dl
$ sudo pip2 -q install youtube-dl
$ youtube-dl -v
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.02.11
[debug] Python version 3.4.2 - Linux-3.16-1-amd64-x86_64-with-debian-jessie-sid
[debug] exe versions: none
[debug] Proxy map: {}
Usage: youtube-dl [OPTIONS] URL [URL...]

youtube-dl: error: You must provide at least one URL.
Type youtube-dl --help to see a list of all options.
$ python3 -c 'import youtube_dl;youtube_dl.YoutubeDL({"verbose": True})'
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.02.11
[debug] Python version 3.4.2 - Linux-3.16-1-amd64-x86_64-with-debian-jessie-sid
[debug] exe versions: none
[debug] Proxy map: {}
$ python2 -c 'import youtube_dl;youtube_dl.YoutubeDL({"verbose": True})'
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.02.11
[debug] Python version 2.7.8 - Linux-3.16-1-amd64-x86_64-with-debian-jessie-sid
[debug] exe versions: none
[debug] Proxy map: {}
@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Feb 13, 2015

I think that he wants to do something similar to ipython (pip also does that, maybe there are others), it installs both the ipython executable and ipython2 or ipython3 depending on the python version.

That being said, I don't really know what's the goal of installing youtube-dl with two versions of python, in the case of ipython it allows you to run it with the python version you need (you can use it as a replacement for the REPL python console) and for pip it allows to install packages for each version.

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