Open davidsgrogan opened 6 years ago
Bump error still occurred
Unknown question type: codeExpression Question json: {'question': {'type': 'codeExpression'}, 'variant': {'definition': {'replEvaluatorId': 'r7cWsLbrRLa3FrC269S2UQ@16', 'starterCode': '/* Class Pair has already been declared\n * as shown in the following comments:\n *\n * class Pair {\n * public:\n * int *pa,*pb;\n * Pair(int, int);\n * Pair(const Pair &);\n * ~Pair();\n * };\n *\n * Implement its member functions below.\n */\n \n \n \n /* Here is a main() function you can use\n * to check your implementation of the\n * class Pair member functions.\n */\n \nint main() {\n Pair p(15,16);\n Pair q(p);\n Pair *hp = new Pair(23,42);\n delete hp;\n \n std::cout << "If this message is printed,"\n << " at least the program hasn\'t crashed yet!\\n"\n << "But you may want to print other diagnostic messages too." << std::endl;\n return 0;\n}', 'codeLanguage': 'c_cpp', 'prompt': {'typeName': 'cml', 'definition': {'dtdId': 'assess/1', 'value': '<co-content><text>A class called Pair has already been declared, but the constructors have not been implemented yet. Pair has two public member variables:</text><text> int *pa,*pb;</text><text>These two "pointers to int" are intended to point to heap memory locations that store integers. The remainder of the Pair class expects the following functionality.</text><list bulletType="bullets"><li><text>A single constructor Pair(int a, int b): This should set up pa and pb to point to newly allocated memory locations on the heap. The integers at those memory locations should be assigned values according to the constructor\'s integer arguments a and b.</text></li><li><text>A copy constructor Pair(const Pair& other): This takes as its argument a read-only reference to another Pair. It should set up the newly constructed Pair as a "deep copy," that is, it should create a new Pair that is equivalent to the other Pair based on dereferenced values but does not reuse any of the same memory locations. In other words, the copy constructor should set up its own instance\'s member variables pa and pb to point to newly allocated memory locations for integers on the heap; those memory locations must be new, not the same locations pointed to by the other Pair, but the integers at these new locations should be assigned values according to the integers that the other Pair is pointing to.</text></li><li><text>A destructor ~Pair() that de-allocates all of the the heap memory that had previously been allocated for this Pair\'s members.</text></li></list><text>The types of these member functions have already been declared in the declaration of Pair. Now you need to provide the implementation of each of these three member functions.</text><text>(Note: The function declarations shown in the code comment below do not include parameter names for the arguments. They show only the types of the arguments. This is allowed for a declaration, but when you define the implementation of those functions, you should give names to the parameters so that you can refer to them.)</text></co-content>'}}}, 'detailLevel': 'Full'}, 'weightedScoring': {'maxScore': 5}, 'id': '9VUUyC2oEemwZgp3rcBNOA', 'isSubmitAllowed': True} Please report class name, quiz name and the data above to coursera-dl authors
class cs-fundamentals-1
Subject of the issue
Got
unknown question type
when downloading the course mentioned below.Your environment
Steps to reproduce
Is the problem happening with the latest version of the script? I think so, I just upgraded through
pip
, I have 0.11.4Do you have all the recommended versions of the modules? See them in the file
requirements.txt
. I think so, I just upgraded throughpip
, I have 0.11.4What is the course that you are trying to access? https://www.coursera.org/learn/linear-algebra-machine-learning/home/week/1 Quiz appears to be
exploring-parameter-space
What is the precise command line that you are using (don't forget to obfuscate your username and password, but leave all other information untouched).
$ coursera-dl --debug --download-quizzes --download-notebooks -u dgrogan@XXXcom -p XXXX -sl en linear-algebra-machine-learning
What are the precise messages that you get? Please, use the
--debug
option before posting the messages as a bug report. Please, copy and paste them. Don't reword/paraphrase the messages.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 & 0 \\\\ 0 & 8\\end{bmatrix}\\begin{bmatrix} 1 & 0 \\\\ -1/2 & 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 :)