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

Error message (crash) with youtube-dl.py --U #1820

Closed
joeschmoe40 opened this issue Nov 24, 2013 · 3 comments
Closed

Error message (crash) with youtube-dl.py --U #1820

joeschmoe40 opened this issue Nov 24, 2013 · 3 comments

Comments

@joeschmoe40
Copy link

@joeschmoe40 joeschmoe40 commented Nov 24, 2013

This had been working fine - right up until it stopped working. Nothing changed on the system, so I assume there is something wrong with latest version.

Observe:

$ uname -a
Darwin ... 12.5.0 Darwin Kernel Version 12.5.0: Sun Sep 29 13:33:47 PDT 2013; root:xnu-2050.48.12~1/RELEASE_X86_64 x86_64
$ python --version
Python 2.7.2
$ youtube-dl.py --version
2013.11.22.2
$ youtube-dl.py -U
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 162, in _run_module_as_main
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code
File "/Users/.../bin/youtube-dl.py/main.py", line 18, in
File "/Users/.../bin/youtube-dl.py/youtube_dl/init.py", line 774, in main
File "/Users/.../bin/youtube-dl.py/youtube_dl/init.py", line 717, in _real_main
File "/Users/.../bin/youtube-dl.py/youtube_dl/update.py", line 89, in update_self
NameError: global name 'version_str' is not defined
$

@joeschmoe40
Copy link
Author

@joeschmoe40 joeschmoe40 commented Nov 24, 2013

Update: I was able to fix this by finding an old version of youtube-dl.py on another system, and using that to upgrade the system in question to: 2013.11.24.1

Still, would like to know what happened - and to note that since the program is self-updating, I have no idea how/where to download the program from "the net" and, in particular, how to get older versions.

If I hadn't had the older version on another system, I'd have been sc***ed.

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Nov 24, 2013

Sorry for the bug (reported and fixed in #1817).
About the second point, you had to download it the first time somehow, don't you? the same process should work ;)
Anyway, the instruction for installing youtube-dl are in http://rg3.github.io/youtube-dl/download.html. If you want to get an specific version you just need to replace the version number with the one you prefer. You can also see all the available versions in https://yt-dl.org/downloads/

@jaimeMF jaimeMF closed this Nov 24, 2013
@joeschmoe40
Copy link
Author

@joeschmoe40 joeschmoe40 commented Nov 24, 2013

Yeah, I did download it a long, long time ago. My point is that I now have no idea when/where/how that was...

Thanks for the tips/URLs.

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.