Overhang.io

Transcript can't be retrieved

#1


From the picture, there’re two transcripts display ,one of them is right and the other in yellow is not supposed to display ,also can’t show the dynamically transcript. I just run tutor local importdemocourse.

To play the video fluently , my vpn is on. :sweat_smile:

Error

run tutor local logs lms:
lms_1 | 2019-05-13 17:01:28,650 ERROR 1522 [edxval.api] api.py:297 - [edx-val] Error while retrieving transcript for video=c5c373d0-04dc-4836-811c-d8f00222311f – language_code=en

lms_1 | Traceback (most recent call last):

lms_1 | File “/openedx/venv/local/lib/python2.7/site-packages/edxval/api.py”, line 292, in get_video_transcript_data

lms_1 | return dict(file_name=video_transcript.filename, content=video_transcript.transcript.file.read())

lms_1 | File “/openedx/venv/local/lib/python2.7/site-packages/django/db/models/fields/files.py”, line 51, in _get_file

lms_1 | self._file = self.storage.open(self.name, ‘rb’)

lms_1 | File “/openedx/venv/local/lib/python2.7/site-packages/django/core/files/storage.py”, line 38, in open

lms_1 | return self._open(name, mode)

lms_1 | File “/openedx/venv/local/lib/python2.7/site-packages/django/core/files/storage.py”, line 300, in _open

lms_1 | return File(open(self.path(name), mode))

lms_1 | IOError: [Errno 2] No such file or directory: u’/openedx/data/uploads/video-transcripts/322e6311106c4fac88ca96dbd8535712.sjson’

lms_1 | 2019-05-13 17:01:28,662 ERROR 1522 [courseware.module_render] module_render.py:1210 - error executing xblock handler

lms_1 | Traceback (most recent call last):

lms_1 | File “/openedx/edx-platform/lms/djangoapps/courseware/module_render.py”, line 1185, in _invoke_xblock_handler

lms_1 | resp = handler_instance.handle(handler, req, suffix)

lms_1 | File “/openedx/venv/local/lib/python2.7/site-packages/xblock/mixins.py”, line 89, in handle

lms_1 | return self.runtime.handle(self, handler_name, request, suffix)

lms_1 | File “/openedx/edx-platform/common/lib/xmodule/xmodule/x_module.py”, line 1365, in handle

lms_1 | return super(MetricsMixin, self).handle(block, handler_name, request, suffix=suffix)

lms_1 | File “/openedx/venv/local/lib/python2.7/site-packages/xblock/runtime.py”, line 1037, in handle

lms_1 | results = handler(request, suffix)

lms_1 | File “/openedx/edx-platform/common/lib/xmodule/xmodule/video_module/video_handlers.py”, line 332, in transcript

lms_1 | youtube_id=request.GET.get(‘videoId’),

lms_1 | File “/openedx/edx-platform/common/lib/xmodule/xmodule/video_module/transcripts_utils.py”, line 1011, in get_transcript

lms_1 | return get_transcript_from_val(edx_video_id, lang, output_format)

lms_1 | File “/openedx/edx-platform/common/lib/xmodule/xmodule/video_module/transcripts_utils.py”, line 64, in wrapper

lms_1 | return func(*args, **kwds)

lms_1 | File “/openedx/edx-platform/common/lib/xmodule/xmodule/video_module/transcripts_utils.py”, line 888, in get_transcript_from_val

lms_1 | transcript = get_video_transcript_content(edx_video_id, lang)

lms_1 | File “/openedx/edx-platform/common/lib/xmodule/xmodule/video_module/transcripts_utils.py”, line 575, in get_video_transcript_content

lms_1 | transcript = edxval_api.get_video_transcript_data(edx_video_id, language_code)

lms_1 | File “/openedx/venv/local/lib/python2.7/site-packages/edxval/api.py”, line 292, in get_video_transcript_data

lms_1 | return dict(file_name=video_transcript.filename, content=video_transcript.transcript.file.read())

lms_1 | File “/openedx/venv/local/lib/python2.7/site-packages/django/db/models/fields/files.py”, line 51, in _get_file

lms_1 | self._file = self.storage.open(self.name, ‘rb’)

lms_1 | File “/openedx/venv/local/lib/python2.7/site-packages/django/core/files/storage.py”, line 38, in open

lms_1 | return self._open(name, mode)

lms_1 | File “/openedx/venv/local/lib/python2.7/site-packages/django/core/files/storage.py”, line 300, in _open

lms_1 | return File(open(self.path(name), mode))

lms_1 | IOError: [Errno 2] No such file or directory: u’/openedx/data/uploads/video-transcripts/322e6311106c4fac88ca96dbd8535712.sjson’

lms_1 | 2019-05-13 17:01:28,744 ERROR 1522 [root] signals.py:21 - Uncaught exception from None

lms_1 | Traceback (most recent call last):

lms_1 | File “/openedx/venv/local/lib/python2.7/site-packages/django/core/handlers/exception.py”, line 41, in inner

lms_1 | response = get_response(request)

lms_1 | File “/openedx/venv/local/lib/python2.7/site-packages/django/core/handlers/base.py”, line 249, in _legacy_get_response

lms_1 | response = self._get_response(request)

lms_1 | File “/openedx/venv/local/lib/python2.7/site-packages/django/core/handlers/base.py”, line 187, in _get_response

lms_1 | response = self.process_exception_by_middleware(e, request)

lms_1 | File “/openedx/venv/local/lib/python2.7/site-packages/django/core/handlers/base.py”, line 185, in _get_response

lms_1 | response = wrapped_callback(request, *callback_args, **callback_kwargs)

lms_1 | File “/openedx/venv/local/lib/python2.7/site-packages/django/utils/decorators.py”, line 185, in inner

lms_1 | return func(*args, **kwargs)

lms_1 | File “/openedx/venv/local/lib/python2.7/site-packages/django/views/decorators/csrf.py”, line 58, in wrapped_view

lms_1 | return view_func(*args, **kwargs)

lms_1 | File “/openedx/venv/local/lib/python2.7/site-packages/django/views/decorators/clickjacking.py”, line 58, in wrapped_view

lms_1 | resp = view_func(*args, **kwargs)

lms_1 | File “/openedx/edx-platform/lms/djangoapps/courseware/module_render.py”, line 1061, in handle_xblock_callback

lms_1 | return _invoke_xblock_handler(request, course_id, usage_id, handler, suffix, course=course)

lms_1 | File “/openedx/edx-platform/lms/djangoapps/courseware/module_render.py”, line 1185, in _invoke_xblock_handler

lms_1 | resp = handler_instance.handle(handler, req, suffix)

lms_1 | File “/openedx/venv/local/lib/python2.7/site-packages/xblock/mixins.py”, line 89, in handle

lms_1 | return self.runtime.handle(self, handler_name, request, suffix)

lms_1 | File “/openedx/edx-platform/common/lib/xmodule/xmodule/x_module.py”, line 1365, in handle

lms_1 | return super(MetricsMixin, self).handle(block, handler_name, request, suffix=suffix)

lms_1 | File “/openedx/venv/local/lib/python2.7/site-packages/xblock/runtime.py”, line 1037, in handle

lms_1 | results = handler(request, suffix)

lms_1 | File “/openedx/edx-platform/common/lib/xmodule/xmodule/video_module/video_handlers.py”, line 332, in transcript

lms_1 | youtube_id=request.GET.get(‘videoId’),

lms_1 | File “/openedx/edx-platform/common/lib/xmodule/xmodule/video_module/transcripts_utils.py”, line 1011, in get_transcript

lms_1 | return get_transcript_from_val(edx_video_id, lang, output_format)

lms_1 | File “/openedx/edx-platform/common/lib/xmodule/xmodule/video_module/transcripts_utils.py”, line 64, in wrapper

lms_1 | return func(*args, **kwds)

lms_1 | File “/openedx/edx-platform/common/lib/xmodule/xmodule/video_module/transcripts_utils.py”, line 888, in get_transcript_from_val

lms_1 | transcript = get_video_transcript_content(edx_video_id, lang)

lms_1 | File “/openedx/edx-platform/common/lib/xmodule/xmodule/video_module/transcripts_utils.py”, line 575, in get_video_transcript_content

lms_1 | transcript = edxval_api.get_video_transcript_data(edx_video_id, language_code)

lms_1 | File “/openedx/venv/local/lib/python2.7/site-packages/edxval/api.py”, line 292, in get_video_transcript_data

lms_1 | return dict(file_name=video_transcript.filename, content=video_transcript.transcript.file.read())

lms_1 | File “/openedx/venv/local/lib/python2.7/site-packages/django/db/models/fields/files.py”, line 51, in _get_file

lms_1 | self._file = self.storage.open(self.name, ‘rb’)

lms_1 | File “/openedx/venv/local/lib/python2.7/site-packages/django/core/files/storage.py”, line 38, in open

lms_1 | return self._open(name, mode)

lms_1 | File “/openedx/venv/local/lib/python2.7/site-packages/django/core/files/storage.py”, line 300, in _open

lms_1 | return File(open(self.path(name), mode))

lms_1 | IOError: [Errno 2] No such file or directory: u’/openedx/data/uploads/video-transcripts/322e6311106c4fac88ca96dbd8535712.sjson’

lms_1 | 2019-05-13 17:01:29,539 INFO 1520 [tracking] logger.py:50 - {“username”: “vpn_hk”, “event_type”: “/courses/course-v1:edX+DemoX+Demo_Course/xblock/block-v1:edX+DemoX+Demo_Course+type@video+block@0b9e39477cf34507a7a48f74be381fdd/handler/xmodule_handler/save_user_state”, “ip”: “172.19.0.1”, “agent”: “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36”, “host”: “localhost”, “referer”: “http://localhost/courses/course-v1:edX+DemoX+Demo_Course/courseware/d8a6192ade314473a78242dfeedfbf5b/edx_introduction/1?activate_block_id=block-v1%3AedX%2BDemoX%2BDemo_Course%2Btype%40vertical%2Bblock%40vertical_0270f6de40fc”, “accept_language”: “zh-CN,zh;q=0.9”, “event”: “{“POST”: {“youtube_is_available”: [“true”]}, “GET”: {}}”, “event_source”: “server”, “context”: {“course_user_tags”: {}, “user_id”: 9, “org_id”: “edX”, “course_id”: “course-v1:edX+DemoX+Demo_Course”, “path”: “/courses/course-v1:edX+DemoX+Demo_Course/xblock/block-v1:edX+DemoX+Demo_Course+type@video+block@0b9e39477cf34507a7a48f74be381fdd/handler/xmodule_handler/save_user_state”}, “time”: “2019-05-13T17:01:29.539157+00:00”, “page”: null}

lms_1 | 2019-05-13 17:01:28,752 ERROR 1522 [django.request] exception.py:135 - Internal Server Error: /courses/course-v1:edX+DemoX+Demo_Course/xblock/block-v1:edX+DemoX+Demo_Course+type@video+block@0b9e39477cf34507a7a48f74be381fdd/handler/transcript/translation/en

lms_1 | Traceback (most recent call last):

lms_1 | File “/openedx/venv/local/lib/python2.7/site-packages/django/core/handlers/exception.py”, line 41, in inner

lms_1 | response = get_response(request)

lms_1 | File “/openedx/venv/local/lib/python2.7/site-packages/django/core/handlers/base.py”, line 249, in _legacy_get_response

lms_1 | response = self._get_response(request)

lms_1 | File “/openedx/venv/local/lib/python2.7/site-packages/django/core/handlers/base.py”, line 187, in _get_response

lms_1 | response = self.process_exception_by_middleware(e, request)

lms_1 | File “/openedx/venv/local/lib/python2.7/site-packages/django/core/handlers/base.py”, line 185, in _get_response

lms_1 | response = wrapped_callback(request, *callback_args, **callback_kwargs)

lms_1 | File “/openedx/venv/local/lib/python2.7/site-packages/django/utils/decorators.py”, line 185, in inner

lms_1 | return func(*args, **kwargs)

lms_1 | File “/openedx/venv/local/lib/python2.7/site-packages/django/views/decorators/csrf.py”, line 58, in wrapped_view

lms_1 | return view_func(*args, **kwargs)

lms_1 | File “/openedx/venv/local/lib/python2.7/site-packages/django/views/decorators/clickjacking.py”, line 58, in wrapped_view

lms_1 | resp = view_func(*args, **kwargs)

lms_1 | File “/openedx/edx-platform/lms/djangoapps/courseware/module_render.py”, line 1061, in handle_xblock_callback

lms_1 | return _invoke_xblock_handler(request, course_id, usage_id, handler, suffix, course=course)

lms_1 | File “/openedx/edx-platform/lms/djangoapps/courseware/module_render.py”, line 1185, in _invoke_xblock_handler

lms_1 | resp = handler_instance.handle(handler, req, suffix)

lms_1 | File “/openedx/venv/local/lib/python2.7/site-packages/xblock/mixins.py”, line 89, in handle

lms_1 | return self.runtime.handle(self, handler_name, request, suffix)

lms_1 | File “/openedx/edx-platform/common/lib/xmodule/xmodule/x_module.py”, line 1365, in handle

lms_1 | return super(MetricsMixin, self).handle(block, handler_name, request, suffix=suffix)

lms_1 | File “/openedx/venv/local/lib/python2.7/site-packages/xblock/runtime.py”, line 1037, in handle

lms_1 | results = handler(request, suffix)

lms_1 | File “/openedx/edx-platform/common/lib/xmodule/xmodule/video_module/video_handlers.py”, line 332, in transcript

lms_1 | youtube_id=request.GET.get(‘videoId’),

lms_1 | File “/openedx/edx-platform/common/lib/xmodule/xmodule/video_module/transcripts_utils.py”, line 1011, in get_transcript

lms_1 | return get_transcript_from_val(edx_video_id, lang, output_format)

lms_1 | File “/openedx/edx-platform/common/lib/xmodule/xmodule/video_module/transcripts_utils.py”, line 64, in wrapper

lms_1 | return func(*args, **kwds)

lms_1 | File “/openedx/edx-platform/common/lib/xmodule/xmodule/video_module/transcripts_utils.py”, line 888, in get_transcript_from_val

lms_1 | transcript = get_video_transcript_content(edx_video_id, lang)

lms_1 | File “/openedx/edx-platform/common/lib/xmodule/xmodule/video_module/transcripts_utils.py”, line 575, in get_video_transcript_content

lms_1 | transcript = edxval_api.get_video_transcript_data(edx_video_id, language_code)

lms_1 | File “/openedx/venv/local/lib/python2.7/site-packages/edxval/api.py”, line 292, in get_video_transcript_data

lms_1 | return dict(file_name=video_transcript.filename, content=video_transcript.transcript.file.read())

lms_1 | File “/openedx/venv/local/lib/python2.7/site-packages/django/db/models/fields/files.py”, line 51, in _get_file

lms_1 | self._file = self.storage.open(self.name, ‘rb’)

lms_1 | File “/openedx/venv/local/lib/python2.7/site-packages/django/core/files/storage.py”, line 38, in open

lms_1 | return self._open(name, mode)

lms_1 | File “/openedx/venv/local/lib/python2.7/site-packages/django/core/files/storage.py”, line 300, in _open

lms_1 | return File(open(self.path(name), mode))

lms_1 | IOError: [Errno 2] No such file or directory: u’/openedx/data/uploads/video-transcripts/322e6311106c4fac88ca96dbd8535712.sjson’

lms_1 | 2019-05-13 17:01:31,111 INFO 1522 [tracking] logger.py:42 - {“username”: “vpn_hk”, “event_source”: “browser”, “name”: “load_video”, “accept_language”: “zh-CN,zh;q=0.9”, “time”: “2019-05-13T17:01:31.110549+00:00”, “agent”: “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36”, “page”: “http://localhost/courses/course-v1:edX+DemoX+Demo_Course/courseware/d8a6192ade314473a78242dfeedfbf5b/edx_introduction/1?activate_block_id=block-v1%3AedX%2BDemoX%2BDemo_Course%2Btype%40vertical%2Bblock%40vertical_0270f6de40fc”, “host”: “localhost”, “session”: “5d0fe7fabb1b2338d3c00b272cf02550”, “referer”: “http://localhost/courses/course-v1:edX+DemoX+Demo_Course/courseware/d8a6192ade314473a78242dfeedfbf5b/edx_introduction/1?activate_block_id=block-v1%3AedX%2BDemoX%2BDemo_Course%2Btype%40vertical%2Bblock%40vertical_0270f6de40fc”, “context”: {“user_id”: 9, “org_id”: “edX”, “course_id”: “course-v1:edX+DemoX+Demo_Course”, “path”: “/event”}, “ip”: “172.19.0.1”, “event”: “{“duration”: 195, “code”: “b7xgknqkQk8”, “id”: “0b9e39477cf34507a7a48f74be381fdd”}”, “event_type”: "load_video”}

#2

Hello again @kikoShen :slight_smile: This is most probably an issue with the demo course. Can you please try with another course that you create yourself?