mikeudacity / robo-pace-betatest

0 stars 0 forks source link

shreeyak L02E12 #93

Closed Shreeyak closed 7 years ago

Shreeyak commented 7 years ago

Program doesn't run. Gives following error output:

Traceback (most recent call last): File "vm_main3.py", line 47, in import main File "/tmp/vmuser_cvwrnjlgby/main.py", line 2, in import studentMain File "/tmp/vmuser_cvwrnjlgby/studentMain.py", line 122, in import tt File "/tmp/vmuser_cvwrnjlgby/tt.py", line 18, in cv2.imshow('frame',frame) File "/tmp/vmuser_cvwrnjlgby/studentMain.py", line 80, in cv2_imshow output_image(name, ext, bytes) File "/tmp/vmuser_cvwrnjlgby/studentMain.py", line 90, in output_image data['bytes'] = base64.encodestring(bytes) File "/usr/lib/python3.4/base64.py", line 548, in encodestring return encodebytes(s) File "/usr/lib/python3.4/base64.py", line 536, in encodebytes _input_type_check(s) File "/usr/lib/python3.4/base64.py", line 530, in _input_type_check raise TypeError(msg) TypeError: expected 1-D data, not 2-D data from ndarray

Shreeyak commented 7 years ago

Also: The submit button does not check for the correct answer. It accepts any answer

cangelogamboa commented 7 years ago

This problem should be fixed. The output should now show an error line in the output, but work properly. This quiz is for students to enjoy, so there is no grading of this answer.