Week 04: Programming Assignment: Create a VGG network nbgrader- fatal 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.

Error:

[ValidateApp | INFO] Validating ‘/home/jovyan/work/submitted/courseraLearner/W4_Assignment/C1W4_Assignment.ipynb’
[ValidateApp | INFO] Executing notebook with kernel: python3
2024-01-26 05:28:23.940732: 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-01-26 05:28:23.940831: 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-01-26 05:28:23.940842: 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-01-26 05:28:25.040736: 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-01-26 05:28:25.040770: E tensorflow/stream_executor/cuda/cuda_driver.cc:351] failed call to cuInit: UNKNOWN ERROR (303)
2024-01-26 05:28:25.040793: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:156] kernel driver does not appear to be running on this host (ip-10-2-68-53.ec2.internal): /proc/driver/nvidia/version does not exist
2024-01-26 05:28:25.040979: 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-01-26 05:28:25.072119: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency: 2999995000 Hz
2024-01-26 05:28:25.074196: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x558aa141fe30 initialized for platform Host (this does not guarantee that XLA will be used). Devices:
2024-01-26 05:28:25.074232: 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’

2 Likes

I think you should read the post with the FallBack Routine:

1 Like

Hi gent.spah,

This article is for the Google Colab assignments but this assignment runs in the Coursera Jupyter environment. Then what should I do?

1 Like

Hmm I dont know whats causing that problem, I hope you are not running a loop forever, have a look again at your implementation!

1 Like

Hello @kashmith_nisakya,

The error which you are getting is because of the time out of the assignment when you are submitting. Did you try out submitting again once??

Also can you confirm me that by any chance you did not edit or change something in the cells outside of ###START AND END CODE HERE###

Kindly do try this once, delete your cache and browser history. Log out from Coursera, then re-login, go to the assignment. Try once again submitting after you have run all the cell one by one. make sure you have passed all the test with the expected accuracy. then submit.

Regards
DP

2 Likes

Another thing you could try is save a copy of your assignment you did.

Then go to file section and select open, then delete the assignment file.

After this reboot the Jupiter environment by clicking Help.

Once rebooting done, click help again, then Get Latest Version, then Update lab.

Now you have a fresh copy.

By referring your saved copy, write the codes again in the assignment, also review if there is any change between your old and new copies.

Then run each cell one by one, then submit.

Let me know if you are still stuck.

Regards
DP

3 Likes

Hi Deepti,

It works for me. Thank you in advance.

Best Regards,
Kashmith

1 Like

You passed the grader? Kindly let us know what solved your issue as other learners could also face similar issue and mentioning and selecting the right solution for your problem can help other learners too.

Happy to Help!!!

Keep learning!!!

Regards
DP

1 Like

After I followed your advice, I still had the same problem. is there any other solution that can help?. Thank You

1 Like

You need to create a new topic with the issue you have, not every solution can work for you as your issue might look similar but solution would be different.

So create a new topic.