Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Confusing Python2/Python3 failure mode #16903
Comments
|
Most likely your script improperly handles/passes strings.
|
|
I tried invoking it on the command-line, and whether interactively or passing the password single-quoted, it still fails. Also, the password hasn't changed, nor has the script, and it just started failing. |
|
See |
Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2018.07.04. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
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:
Add the
-vflag to your command line you run youtube-dl with (youtube-dl -v <your command line>), copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):./youtube-dl:
python3 ./youtube-dl:
Description of your issue, suggested solution and other information
I have a script which I periodically use to fetch the history playlist of an account for watching later - you can see the arguments it's invoked with in the logs above.
Today, I tried running said script, and it informed me the password was incorrect. I tried again, and again it informed me I was wrong. At that point, I copied-and-pasted the password from a text editor to be sure I had typed it correctly, and still.
I pulled up a new browser session, confirmed pasting said password worked for signing into Youtube, and tried again, to no avail.
For no good reason, I tried invoking youtube-dl with python3 ./youtube-dl instead of just ./youtube-dl, and lo, with python3, it works fine, every time. If I revert to using ./youtube-dl, it fails, every time. (In the interest of being complete, I tried python2 ./youtube-dl, and it also fails every time.)
(I also tried hardcoding the password using -p in the script, to be sure I wasn't somehow paste-mangling it, and the above behavior remains.)