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

manage.py mturk_pending_queue is incompatible with the version of boto in the requirements file #1

Open
callison-burch opened this issue Jan 29, 2010 · 1 comment

Comments

@callison-burch
Copy link

After running ./manage.py mturk_pending_queue I get the following error:

Traceback (most recent call last):
  File "./manage.py", line 28, in 
    execute_from_command_line()
  File "/Users/ccb/.virtualenvs/wt.dev/lib/python2.6/site-packages/django/core/management/__init__.py", line 352, in execute_from_command_line
    utility.execute()
  File "/Users/ccb/.virtualenvs/wt.dev/lib/python2.6/site-packages/django/core/management/__init__.py", line 306, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/Users/ccb/.virtualenvs/wt.dev/lib/python2.6/site-packages/django/core/management/base.py", line 192, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/Users/ccb/.virtualenvs/wt.dev/lib/python2.6/site-packages/django/core/management/base.py", line 219, in execute
    output = self.handle(*args, **options)
  File "/Users/ccb/.virtualenvs/wt.dev/lib/python2.6/site-packages/django/core/management/base.py", line 348, in handle
    return self.handle_noargs(**options)
  File "/Users/ccb/Code/wikitrans/wt-app/apps/mturk_manager/management/commands/mturk_pending_queue.py", line 15, in handle_noargs
    handle_pending_task(task_item)
  File "/Users/ccb/Code/wikitrans/wt-app/apps/mturk_manager/workflow.py", line 248, in handle_pending_task
    handle_task(task_item, PENDING_FUNCTIONS)
  File "/Users/ccb/Code/wikitrans/wt-app/apps/mturk_manager/workflow.py", line 240, in handle_task
    retval = function(task_item, retval=retval)
  File "/Users/ccb/Code/wikitrans/wt-app/apps/wt_articles/mturk.py", line 168, in generate_question_forms
    qf = QuestionForm()
  File "/Users/ccb/.virtualenvs/wt.dev/lib/python2.6/site-packages/boto/mturk/question.py", line 145, in __init__
    raise ValueError("Must pass a list of Question instances to QuestionForm constructor")
ValueError: Must pass a list of Question instances to QuestionForm constructor

This appears to be because the version of boto that gets downloaded as part of the requirements does not incorporate James's patch.

@callison-burch
Copy link
Author

This can be fixed by directly downloading the current version of boto (for some reason pip isn't getting the current version).

svn checkout http://boto.googlecode.com/svn/trunk/ boto-read-only
cd wikitrans/wt-app
ln -s ~/Code/boto-read-only/boto

We will close this issue once we verify that this version gets downloaded with pip and the requirements file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant