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

asked 2014-05-15 07:09:11 -0500

oz gravatar image

Hello

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

$ python manage.py fix_question_tags
Traceback (most recent call last):
  File "manage.py", line 11, in <module>
    execute_manager(settings)
  File "/usr/local/lib/python2.7/dist-packages/Django-1.5-py2.7.egg/django/core/management/__init__.py", line 469, in execute_manager
    utility.execute()
  File "/usr/local/lib/python2.7/dist-packages/Django-1.5-py2.7.egg/django/core/management/__init__.py", line 392, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/local/lib/python2.7/dist-packages/Django-1.5-py2.7.egg/django/core/management/__init__.py", 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/__init__.py", line 77, in load_command_class
    module = import_module('%s.management.commands.%s' % (app_name, name))
  File "/usr/local/lib/python2.7/dist-packages/Django-1.5-py2.7.egg/django/utils/importlib.py", line 35, in import_module
    __import__(name)
  File "/<REMOVED_LOCAL_PATH>/askbot/askbot/management/commands/fix_question_tags.py", line 30, in <module>
    class Command(Command):
NameError: name 'Command' is not defined

Or am I missing something?

edit retag flag offensive close merge delete

Comments

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 gravatar imageloyning ( 2014-08-08 07:44:04 -0500 )edit

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

Evgeny gravatar imageEvgeny ( 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 gravatar imageloyning ( 2014-08-08 09:39:37 -0500 )edit