NameError: name 'Command' is not defined when run fix_question_tags


python fix_question_tags appears to be broken in the latest master branch. Traceback:

$ python fix_question_tags
Traceback (most recent call last):
  File "", line 11, in <module>
  File "/usr/local/lib/python2.7/dist-packages/Django-1.5-py2.7.egg/django/core/management/", line 469, in execute_manager
  File "/usr/local/lib/python2.7/dist-packages/Django-1.5-py2.7.egg/django/core/management/", line 392, in execute
  File "/usr/local/lib/python2.7/dist-packages/Django-1.5-py2.7.egg/django/core/management/", line 272, in fetch_command
    klass = load_command_class(app_name, subcommand)
  File "/usr/local/lib/python2.7/dist-packages/Django-1.5-py2.7.egg/django/core/management/", line 77, in load_command_class
    module = import_module('' % (app_name, name))
  File "/usr/local/lib/python2.7/dist-packages/Django-1.5-py2.7.egg/django/utils/", line 35, in import_module
  File "/<REMOVED_LOCAL_PATH>/askbot/askbot/management/commands/", line 30, in <module>
    class Command(Command):
NameError: name 'Command' is not defined

Or am I missing something?

oz's avatar
asked 2014-05-15 07:09:11 -0500
edit flag offensive 0 remove flag close merge delete


I get the same error here. Askbot version 0.7.49 (head). Django version 1.5.0. Python 2.7.5. OSX 10.9.4.

loyning's avatar loyning (2014-08-08 07:44:04 -0500) edit

Could you try now, please? Hopefully fixed this in the github repository.

Evgeny's avatar Evgeny (2014-08-08 09:26:02 -0500) edit

Ive pulled the latest code from github and I now get a new error message: AttributeError: 'tuple' object has no attribute 'find'

loyning's avatar loyning (2014-08-08 09:39:37 -0500) edit
add a comment see more comments