You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When attempting to run the grader.export cell at the bottom of an Otterized notebook, I get the following error:
Running your submission against local test cases...
0.00s - Debugger warning: It seems that frozen modules are being used, which may
0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off
0.00s - to python to disable frozen modules.
0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation.
0.00s - Debugger warning: It seems that frozen modules are being used, which may
0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off
0.00s - to python to disable frozen modules.
0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation.
---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
Cell In[4], line 2
1 # Save your notebook first, then run this cell to export your submission.
----> 2 grader.export(pdf=False, run_tests=True)
File ~/.conda/envs/jup/lib/python3.11/site-packages/otter/check/utils.py:160, in grading_mode_disabled(wrapped, self, args, kwargs)
158 if type(self)._grading_mode:
159 return
--> 160 return wrapped(*args, **kwargs)
File ~/.conda/envs/jup/lib/python3.11/site-packages/otter/check/utils.py:147, in incompatible_with.<locals>.incompatible(wrapped, self, args, kwargs)
145 else:
146 return
--> 147 return wrapped(*args, **kwargs)
File ~/.conda/envs/jup/lib/python3.11/site-packages/otter/check/utils.py:197, in logs_event.<locals>.event_logger(wrapped, self, args, kwargs)
195 except Exception as e:
196 self._log_event(event_type, success=False, error=e)
--> 197 raise e
199 else:
200 self._log_event(event_type, results=results, question=question, shelve_env=shelve_env)
File ~/.conda/envs/jup/lib/python3.11/site-packages/otter/check/utils.py:191, in logs_event.<locals>.event_logger(wrapped, self, args, kwargs)
188 question, results, shelve_env = wrapped(*args, **kwargs)
190 else:
--> 191 results = wrapped(*args, **kwargs)
192 shelve_env = {}
193 question = None
File ~/.conda/envs/jup/lib/python3.11/site-packages/otter/check/notebook.py:403, in Notebook.export(self, nb_path, export_path, pdf, filtering, pagebreaks, files, display_link, force_save, run_tests)
401 if run_tests:
402 print("Running your submission against local test cases...\n")
--> 403 results = grade_zip_file(zip_path, nb_path, self._path)
404 print(
405 "Your submission received the following results when run against " + \
406 "available test cases:\n\n" + indent(results.summary(), " "))
408 if display_link:
409 # create and display output HTML
File ~/.conda/envs/jup/lib/python3.11/site-packages/otter/check/utils.py:85, in grade_zip_file(zip_path, nb_arcname, tests_dir)
82 print(results.stderr.decode("utf-8"))
84 if results.stderr:
---> 85 raise RuntimeError(results.stderr)
87 with open(results_path, "rb") as f:
88 results = dill.load(f)
RuntimeError: b'0.00s - Debugger warning: It seems that frozen modules are being used, which may\n0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off\n0.00s - to python to disable frozen modules.\n0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation.\n0.00s - Debugger warning: It seems that frozen modules are being used, which may\n0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off\n0.00s - to python to disable frozen modules.\n0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation.\n'
To Reproduce
Create a simple notebook with a question that has a test, like so:
Then, use otter assign to generate the student version of the notebook. Upon running all of the cells in the student version of the notebook, the aforementioned error occurs.
Expected behavior
The notebook exports properly, with no error.
Versions
Python 3.11.4, otter-grader 5.0.2
The text was updated successfully, but these errors were encountered:
Describe the bug
When attempting to run the
grader.export
cell at the bottom of an Otterized notebook, I get the following error:To Reproduce
Create a simple notebook with a question that has a test, like so:
Then, use
otter assign
to generate the student version of the notebook. Upon running all of the cells in the student version of the notebook, the aforementioned error occurs.Expected behavior
The notebook exports properly, with no error.
Versions
Python 3.11.4, otter-grader 5.0.2
The text was updated successfully, but these errors were encountered: