Getting Compiler error

Cell #UNQ_C2. Can’t compile the student’s code. Error: SyntaxError(“unmatched ‘)’”, (‘/tmp/student_solution_cells/cell_16.py’, 45, 33, ’ base_model.load_weights=None)#(base_model_path) # Load weights=None)# separately’))
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 45
base_model.load_weights=None)#(base_model_path) # Load weights=None)# separately
^
SyntaxError: unmatched ‘)’

{mentor edit: code removed}

Please do not post your code on the forum. That’s not allowed by the course Code of Conduct.

If a mentor needs to see your code, we’ll contact you with instructions.

It is usually sufficient to post screen capture images of any asserts or error messages.

I’ll edit your post to remove the code, and reply back later with some tips if I see anything obvious.

The key clue seems to be that “syntax error” about mismatched parenthesis.

I looked for Syntax Error ‘)’ at least I cant find it. Apologies for posting code I was not aware, will not happen again.

Are you saying that you only get that syntax error when you submit to the grader? One thing to check would be to do this sequence:

Kernel -> Restart and Clear Output
Save
Cell -> Run All

Now scan carefully through the notebook and make sure you don’t see any errors. If that is successful, then it’s time to look at your notebook. We can’t directly see it and (as Tom mentioned above) we aren’t supposed to share it on a public thread, but there are private ways to do that. Please check your DMs for a message from me about how to proceed.