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

Update fails with `global name 'version_str' is not defined` #1817

Closed
phihag opened this issue Nov 24, 2013 · 1 comment
Closed

Update fails with `global name 'version_str' is not defined` #1817

phihag opened this issue Nov 24, 2013 · 1 comment
Labels
bug

Comments

@phihag
Copy link
Contributor

@phihag phihag commented Nov 24, 2013

When I try to update, I get the following error message:

Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/bin/youtube-dl/__main__.py", line 18, in <module>
  File "/usr/bin/youtube-dl/youtube_dl/__init__.py", line 774, in main
  File "/usr/bin/youtube-dl/youtube_dl/__init__.py", line 717, in _real_main
  File "/usr/bin/youtube-dl/youtube_dl/update.py", line 89, in update_self
NameError: global name 'version_str' is not defined
@phihag
Copy link
Contributor Author

@phihag phihag commented Nov 24, 2013

Unfortunately, there was a bug in version 2013.11.22.2. You can update manually by reinstalling. In most cases,

sudo curl https://yt-dl.org/latest/youtube-dl -o $(which youtube-dl)

should suffice.

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