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

Export results to CSV fails #84

Closed
shaidar opened this issue Aug 4, 2020 · 2 comments
Closed

Export results to CSV fails #84

shaidar opened this issue Aug 4, 2020 · 2 comments

Comments

@shaidar
Copy link

shaidar commented Aug 4, 2020

Seeing the following error when running export results to csv on both ironwood and juniper (xblock-poll v1.9.6)

2020-07-27 14:35:28,243 INFO 27792 [celery.worker.strategy] strategy.py:60 - Received task: poll.tasks.export_csv_data[825ca36b-97dc-489f-a664-a398226a569d]
2020-07-27 14:35:34,175 ERROR 27792 [celery.worker.job] log.py:282 - Task poll.tasks.export_csv_data[825ca36b-97dc-489f-a664-a398226a569d] raised unexpected: ItemNotFoundError(BlockKey(type=u'poll', id=u'858412a8d2044fb9bf336d095010a416'),)
Traceback (most recent call last):
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/celery/app/trace.py", line 240, in trace_task
    R = retval = fun(*args, **kwargs)
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/celery/app/trace.py", line 438, in __protected_call__
    return self.run(*args, **kwargs)
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/poll/tasks.py", line 16, in export_csv_data
    src_block = modulestore().get_item(UsageKey.from_string(block_id))
  File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/modulestore/mixed.py", line 89, in inner
    retval = func(field_decorator=strip_key_collection, *args, **kwargs)
  File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/modulestore/mixed.py", line 255, in get_item
    return store.get_item(usage_key, depth, **kwargs)
  File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/modulestore/split_mongo/split_draft.py", line 280, in get_item
    return super(DraftVersioningModuleStore, self).get_item(usage_key, depth=depth, **kwargs)
  File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/modulestore/split_mongo/split.py", line 1222, in get_item
    items = self._load_items(course, [BlockKey.from_usage_key(usage_key)], depth, **kwargs)
  File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/modulestore/split_mongo/split.py", line 830, in _load_items
    return [runtime.load_item(block_key, course_entry, **kwargs) for block_key in block_keys]
  File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/modulestore/split_mongo/caching_descriptor_system.py", line 130, in _load_item
    block_data = self.get_module_data(block_key, course_key)
  File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/modulestore/split_mongo/caching_descriptor_system.py", line 158, in get_module_data
    raise ItemNotFoundError(block_key)
ItemNotFoundError: BlockKey(type=u'poll', id=u'858412a8d2044fb9bf336d095010a416')
@symbolist
Copy link

@shaidar Thanks for the report! You should be able to use the Instructor Dashboard > Data Download section to download this data. The duplicate feature in the XBlock code is most likely going to be removed in the future.

image

@shaidar
Copy link
Author

shaidar commented Sep 10, 2020

Thanks. That seems to give us what we need.

@shaidar shaidar closed this as completed Sep 10, 2020
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

2 participants