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

NameError: global name 'version_str' is not defined #1867

Closed
tuankiet65 opened this issue Nov 30, 2013 · 2 comments
Closed

NameError: global name 'version_str' is not defined #1867

tuankiet65 opened this issue Nov 30, 2013 · 2 comments

Comments

@tuankiet65
Copy link

@tuankiet65 tuankiet65 commented Nov 30, 2013

When I updated youtube-dl via -U switch it returned this:

user@Fedora19PC:~$ sudo youtube-dl -vU
[debug] System config: ['--prefer-free-formats']
[debug] User config: []
[debug] Command-line args: ['-vU']
[debug] youtube-dl version 2013.11.22.2
[debug] Python version 2.7.5 - Linux-3.11.9-200.fc19.x86_64-x86_64-with-fedora-19-Schrödinger’s_Cat
[debug] Proxy map: {user}
Traceback (most recent call last):
  File "/usr/lib64/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/bin/youtube-dl/__main__.py", line 18, in <module>
  File "/bin/youtube-dl/youtube_dl/__init__.py", line 774, in main
  File "/bin/youtube-dl/youtube_dl/__init__.py", line 717, in _real_main
  File "/bin/youtube-dl/youtube_dl/update.py", line 89, in update_self
NameError: global name 'version_str' is not defined

Version: 2013.11.22.2
Python version: Python 2.7.5
OS: Fedora 19

@tuankiet65
Copy link
Author

@tuankiet65 tuankiet65 commented Nov 30, 2013

Sorry for this silly issue, I have just upgraded to version 2013.11.29 and it worked great :/ :\

user@Fedora19PC:~$ sudo youtube-dl -vU
[debug] System config: ['--prefer-free-formats']
[debug] User config: []
[debug] Command-line args: ['-vU']
[debug] youtube-dl version 2013.11.29
[debug] Python version 2.7.5 - Linux-3.11.9-200.fc19.x86_64-x86_64-with-fedora-19-Schrödinger’s_Cat
[debug] Proxy map: {}
youtube-dl is up-to-date (2013.11.29)
@tuankiet65 tuankiet65 closed this Nov 30, 2013
@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Nov 30, 2013

We introduced a bug in the updating code, sorry for the problem.

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.