Nbgrader error when I submit my notebook to be avaliated

  • Week #4.
  • Link to the classroom item you are referring to:
  • Description: I’m experiencing a nbgrader error when I submit my notebook to be avaliated. All the unit tests on the lab work just fine. Follows the stack trace from nbgrader output:
ValidateApp | INFO] Validating '/home/jovyan/work/submitted/courseraLearner/W4_Assignment/C1W4_Assignment.ipynb'
[ValidateApp | INFO] Executing notebook with kernel: python3
2024-06-26 14:10:08.269064: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libnvinfer.so.6'; dlerror: libnvinfer.so.6: cannot open shared object file: No such file or directory
2024-06-26 14:10:08.269162: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libnvinfer_plugin.so.6'; dlerror: libnvinfer_plugin.so.6: cannot open shared object file: No such file or directory
2024-06-26 14:10:08.269172: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:30] Cannot dlopen some TensorRT libraries. If you would like to use Nvidia GPU with TensorRT, please make sure the missing libraries mentioned above are installed properly.
2024-06-26 14:10:09.424243: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libcuda.so.1'; dlerror: libcuda.so.1: cannot open shared object file: No such file or directory
2024-06-26 14:10:09.424273: E tensorflow/stream_executor/cuda/cuda_driver.cc:351] failed call to cuInit: UNKNOWN ERROR (303)
2024-06-26 14:10:09.424293: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:156] kernel driver does not appear to be running on this host (ip-10-2-92-77.ec2.internal): /proc/driver/nvidia/version does not exist
2024-06-26 14:10:09.424489: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 AVX512F FMA
2024-06-26 14:10:09.458316: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency: 3000005000 Hz
2024-06-26 14:10:09.460103: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x562b2bf4bba0 initialized for platform Host (this does not guarantee that XLA will be used). Devices:
2024-06-26 14:10:09.460138: I tensorflow/compiler/xla/service/service.cc:176]   StreamExecutor device (0): Host, Default Version
[ValidateApp | ERROR] Timeout waiting for execute reply (30s).
[ValidateApp | ERROR] Interrupting kernel
[ValidateApp | ERROR] Traceback (most recent call last):
      File "/opt/conda/lib/python3.7/site-packages/nbconvert/preprocessors/execute.py", line 589, in run_cell
        msg = self.kc.iopub_channel.get_msg(timeout=timeout)
      File "/opt/conda/lib/python3.7/site-packages/jupyter_client/blocking/channels.py", line 57, in get_msg
        raise Empty
    _queue.Empty
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "/opt/conda/lib/python3.7/site-packages/nbgrader/apps/validateapp.py", line 72, in start
        validator.validate_and_print(filename)
      File "/opt/conda/lib/python3.7/site-packages/nbgrader/validator.py", line 340, in validate_and_print
        results = self.validate(filename)
      File "/opt/conda/lib/python3.7/site-packages/nbgrader/validator.py", line 311, in validate
        nb = self._preprocess(nb)
      File "/opt/conda/lib/python3.7/site-packages/nbgrader/validator.py", line 290, in _preprocess
        nb, resources = pp.preprocess(nb, resources)
      File "/opt/conda/lib/python3.7/site-packages/nbgrader/preprocessors/execute.py", line 41, in preprocess
        output = super(Execute, self).preprocess(nb, resources)
      File "/opt/conda/lib/python3.7/site-packages/nbconvert/preprocessors/execute.py", line 405, in preprocess
        nb, resources = super(ExecutePreprocessor, self).preprocess(nb, resources)
      File "/opt/conda/lib/python3.7/site-packages/nbconvert/preprocessors/base.py", line 69, in preprocess
        nb.cells[index], resources = self.preprocess_cell(cell, resources, index)
      File "/opt/conda/lib/python3.7/site-packages/nbconvert/preprocessors/execute.py", line 438, in preprocess_cell
        reply, outputs = self.run_cell(cell, cell_index, store_history)
      File "/opt/conda/lib/python3.7/site-packages/nbconvert/preprocessors/execute.py", line 597, in run_cell
        raise TimeoutError("Timeout waiting for IOPub output")
    TimeoutError: Timeout waiting for IOPub output
    
[ValidateApp | ERROR] nbgrader encountered a fatal error while trying to validate 'submitted/courseraLearner/W4_Assignment/C1W4_Assignment.ipynb'

Can you, please, help me? Thanks in advanced.

hi @Vanildo_Vanni

A Timeout error probably means a cells is taken more time than usual and causing kernel crash.

This can happen either if there is an error in your codes, or editing/adding of any extra code outside of ###START AND END CODE HERE### or deletion of any important code cell which you were not suppose to remove.

Also check if you any typo in your codes.

Another information your error is telling the directory was not found, so make sure your data parse part codes are recalled correctly.

Can I know if your model training was successful?

your preprocess part of the assignment only looks having error, so re-read the instructions if you followed through properly.

if you are confident of your codes being correct, another way to resolve this issue would be to save a copy of the assignment you did in your system and then re-do the assignment while mentioning only codes between ###STart And END CODE HERE### without adding any extra code line other than already given as per instructions.

Let me know if the issue persists.

Regards
DP

Thanks for your response. I’ll try out your suggestions, but I’m pretty sure that I did it right the first time. And yes, the model trainning was successful.

Tnhaks again.

1 Like

Hi @Deepti_Prasad ,

Thanks for your help! Actually it was my fault, I didn’t pay attention to the code comment below:

Termo de Autorizacao - LGPD.pdf (121.6 KB)

I already commented those lines out and passed!

Thanks again.

1 Like