microsoft / pybryt

Python library for pedagogical auto-assessment
https://microsoft.github.io/pybryt
MIT License
63 stars 19 forks source link

Type Error and EOF Error while runnung demo programs #179

Closed muzzahmed closed 1 year ago

muzzahmed commented 2 years ago

Describe the bug Getting EOF error while running the demo programs

To Reproduce Steps to reproduce the behavior: Execute demo programs in jupyter Notebook

Expected behavior Program to run

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

c:\users\akshay\appdata\local\programs\python\python37\lib\site-packages\pybryt\student.py in init(self, path_or_nb, addl_filenames, output, timeout) 65 raise TypeError(f"path_or_nb is of unsupported type {type(path_or_nb)}") 66 ---> 67 self._execute(timeout, addl_filenames=addl_filenames, output=output) 68 69 def _execute(

c:\users\akshay\appdata\local\programs\python\python37\lib\site-packages\pybryt\student.py in _execute(self, timeout, addl_filenames, output) 87 self.nb_path, 88 addl_filenames=addl_filenames, ---> 89 timeout=timeout, 90 ) 91

c:\users\akshay\appdata\local\programs\python\python37\lib\site-packages\pybryt\execution_init_.py in execute_notebook(nb, nb_path, addl_filenames, timeout) 99 100 with open(footprint_fp, "rb") as f: --> 101 footprint: MemoryFootprint = dill.load(f) 102 103 os.remove(footprint_fp)

c:\users\akshay\appdata\local\programs\python\python37\lib\site-packages\dill_dill.py in load(file, ignore, kwds) 311 See :func:loads for keyword arguments. 312 """ --> 313 return Unpickler(file, ignore=ignore, kwds).load() 314 315 def loads(str, ignore=None, **kwds):

c:\users\akshay\appdata\local\programs\python\python37\lib\site-packages\dill_dill.py in load(self) 523 524 def load(self): #NOTE: if settings change, need to update attributes --> 525 obj = StockUnpickler.load(self) 526 if type(obj).module == getattr(mainmodule, 'name', 'main'): 527 if not self._ignore:

EOFError: Ran out of input

leestott commented 1 year ago

unable to repo this error please ensure you have the latest install of pybryt