coursera-dl / coursera-dl

Script for downloading Coursera.org videos and naming them.
GNU Lesser General Public License v3.0
9.35k stars 2.21k forks source link

Unknown question type: codeExpression (and widget) #680

Open davidsgrogan opened 6 years ago

davidsgrogan commented 6 years ago

Subject of the issue

Got unknown question type when downloading the course mentioned below.

Your environment

Steps to reproduce

Excerpt from full error log at https://gist.github.com/davidsgrogan/4f0bb42b3dee410829fe9e3280ec5d13 : Unknown question type: codeExpression Question json: {u'variant': {u'detailLevel': u'Full', u'definition': {u'replEvaluatorId': u'9wVL-AOlTbaFS_gDpU22ug@22', u'prompt': {u'typeName': u'cml', u'definition': {u'value': u'<co-content><text>At the bottom of the \u201cThe Ambassadors\u201d, in the middle of the floor, there is a skull that Holbein has already applied a matrix transformation to!</text><text>To undo the transformation, build a matrix which is firstly a shear in the y direction followed by a scaling in y direction. I.e., multiply the matrices,</text><text hasMath="true">$$M = \\begin{bmatrix} 1 &amp; 0 \\\\ 0 &amp; 8\\end{bmatrix}\\begin{bmatrix} 1 &amp; 0 \\\\ -1/2 &amp; 1\\end{bmatrix}$$</text></co-content>', u'dtdId': u'assess/1'}}, u'codeLanguage': u'python', u'starterCode': u'# Replace a, b, c and d with the correct values below:\nM = [[a, b],\n [c, d]]'}}, u'isSubmitAllowed': True, u'question': {u'type': u'codeExpression'}, u'id': u'Ds8oZtY0EeecdhLyZnFzdA@0', u'weightedScoring': {u'maxScore': 1}} Please report class name, quiz name and the data above to coursera-dl authors Unknown question type: widget Question json: {u'variant': {u'detailLevel': u'Full', u'definition': {u'widgetSessionId': u'RnKPxC8PQZeyj8QvD9GXrw', u'prompt': {u'typeName': u'cml', u'definition': {u'value': u'<co-content><text>Use your answer from the previous question to transform the skull back to normal. Change the values of the matrix and press <em>Go!</em> to score on this question.<em/></text><text>You can also use this example to experiment with other matrix transformations. Try some of the ones in this quiz. Have a play!</text><text/></co-content>', u'dtdId': u'assess/1'}}}}, u'isSubmitAllowed': True, u'question': {u'type': u'widget'}, u'id': u'9_aS1u5SEeelrQ6uf4NW0A@0', u'weightedScoring': {u'maxScore': 1}} Please report class name, quiz name and the data above to coursera-dl authors

Expected behaviour

Download all questions on all quizzes, I think.

Actual behaviour

I haven't looked yet to see what actually downloaded, but I imagine these unknown ones did not :)

erdnaaa commented 4 years ago

Bump error still occurred