Week 4: C1W4 Assigment ValidateApp Error

I passed all the public tests in the Programming Assignment: Create a VGG network. when I submitted the assignment then the nbgrader-part showed a fatal error as below.

also, I tried the latest version of the lab but it didn’t work. Could you please help to fix this.

[ValidateApp | INFO] Validating ‘/home/jovyan/work/submitted/courseraLearner/W4_Assignment/C1W4_Assignment.ipynb’
[ValidateApp | INFO] Executing notebook with kernel: python3
2024-05-19 10:48:05.771354: 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-05-19 10:48:05.771446: 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-05-19 10:48:05.771457: 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-05-19 10:48:06.847400: 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-05-19 10:48:06.847433: E tensorflow/stream_executor/cuda/cuda_driver.cc:351] failed call to cuInit: UNKNOWN ERROR (303)
2024-05-19 10:48:06.847455: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:156] kernel driver does not appear to be running on this host (ip-10-2-113-245.ec2.internal): /proc/driver/nvidia/version does not exist
2024-05-19 10:48:06.847638: 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-05-19 10:48:06.872586: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency: 2999995000 Hz
2024-05-19 10:48:06.874671: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x55bf89e3f200 initialized for platform Host (this does not guarantee that XLA will be used). Devices:
2024-05-19 10:48:06.874704: 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’

1 Like

Did you rename the assignment?

Kindly DM me your notebook for review. Click on my name and then message @salsabilabel

Regards
DP

I didn’t do it

1 Like

Hi! I also got the same issue here, have submitted the assignment 9 times and all of them shows this error. Have you solved this? Please kindly reply me back. Thank youu!

1 Like

Hello! Can I also message you, please? I have the same issue about this error.

1 Like

Yes you can DM. But before that please follow the below link thread

You can see the reason of the error is because the autograder set the code cell to run with time-limit and when that cross, kernel crashes.

This can happen if there is any incorrect codes or you have added extra code lines then requires, or if you have added codes outside of ##START AND END CODE HERE###

If you cannot find this, what you could do, save a copy of file you have done now. then get a fresh copy, cross check the files and mention codes only where it is required. You would know if there was any issue with your previous copy.

Kindly first do this. Also before submitting the fresh assignment, make sure you have deleted the cache and browsing history and then try re-attempting the assignment.

Regards
DP