I’m trying to complete this assignment even after clearing all tests, trying deleting the notebooks, and then update to the latest version, I am not getting the grades, please help me to solve this issues.
Grader O/P:
Cell #UNQ_C2. Can’t compile the student’s code. Error: SyntaxError(“unmatched ‘)’”, (‘/tmp/student_solution_cells/cell_16.py’, 34, 5, ’ )'))
Traceback (most recent call last):
File “/home/www/app/grading/exceptions.py”, line 112, in handle_solution_errors
yield {}
File “/home/www/app/grading/abstract.py”, line 393, in _grade
context = compiled_code.run(cell_index=cell.index)
File “/home/www/app/grading/submission/compiled_code.py”, line 195, in run
return list(self._code_items.values())[cell_num - 1].run()
File “/home/www/app/grading/submission/compiled_code.py”, line 54, in run
return import_module(self.import_statement, items)
File “/usr/local/lib/python3.8/importlib/init.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1014, in _gcd_import
File “”, line 991, in _find_and_load
File “”, line 975, in _find_and_load_unlocked
File “”, line 671, in _load_unlocked
File “”, line 839, in exec_module
File “”, line 976, in get_code
File “”, line 906, in source_to_code
File “”, line 219, in _call_with_frames_removed
File “/tmp/student_solution_cells/cell_16.py”, line 34
)
^
SyntaxError: unmatched ‘)’
A syntax error has been detected in UNQ_C2. You need to check for parenthesis mismatch in your code. After making the correction, rerun your code from start.
It looks like this is cropping up a bunch of times in the last few days. Maybe there’s a university using this course and students are sharing solutions.
Here’s a thread from earlier today that gives what is probably the answer.
I have similar problem with the different error (I passed all 3 tests but got 0 grade)
Cell #17. Can’t compile the student’s code. Error: TypeError(‘data_augmenter() takes 0 positional arguments but 1 was given’)
Traceback (most recent call last):
File “/home/www/app/grading/exceptions.py”, line 112, in handle_solution_errors
yield {}
File “/home/www/app/grading/abstract.py”, line 393, in _grade
context = compiled_code.run(cell_index=cell.index)
File “/home/www/app/grading/submission/compiled_code.py”, line 195, in run
return list(self._code_items.values())[cell_num - 1].run()
File “/home/www/app/grading/submission/compiled_code.py”, line 54, in run
return import_module(self.import_statement, items)
File “/usr/local/lib/python3.8/importlib/init.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1014, in _gcd_import
File “”, line 991, in _find_and_load
File “”, line 975, in _find_and_load_unlocked
File “”, line 671, in _load_unlocked
File “”, line 843, in exec_module
File “”, line 219, in _call_with_frames_removed
File “/tmp/student_solution_cells/cell_17.py”, line 19, in
model2 = alpaca_model(IMG_SIZE, data_augmentation)
File “/tmp/student_solution_cells/cell_16.py”, line 48, in alpaca_model
x = data_augmenter(inputs)
TypeError: data_augmenter() takes 0 positional arguments but 1 was given