C1_W4_Assignment: grading failed error

Hello,

I get following message after submitting assignment. All the tests are passed.

[ValidateApp | INFO] Validating '/home/jovyan/work/submitted/courseraLearner/W4_Assignment/C1W4_Assignment.ipynb'
[ValidateApp | INFO] Executing notebook with kernel: python3
2023-04-07 13:38:33.796260: 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
2023-04-07 13:38:33.796376: 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
2023-04-07 13:38:33.796388: 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.
2023-04-07 13:38:34.985271: 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
2023-04-07 13:38:34.985304: E tensorflow/stream_executor/cuda/cuda_driver.cc:351] failed call to cuInit: UNKNOWN ERROR (303)
2023-04-07 13:38:34.985327: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:156] kernel driver does not appear to be running on this host (ip-10-2-106-187.ec2.internal): /proc/driver/nvidia/version does not exist
2023-04-07 13:38:34.985517: 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
2023-04-07 13:38:34.993459: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency: 2999990000 Hz
2023-04-07 13:38:34.995140: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x561d35af8100 initialized for platform Host (this does not guarantee that XLA will be used). Devices:
2023-04-07 13:38:34.995173: 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
Success! Your notebook passes all the tests.

Do you get full marks though?

yes, both class pass the test .

Screenshot 2023-04-07 at 11-52-55 Create a VGG network Coursera
Screenshot 2023-04-07 at 11-52-34 Create a VGG network Coursera

You can ignore those errors then, even when i took that assignment I had those. As far as I know some of them are errors that are thrown from incompatibilities and enviroment settings…

But problem is my submission is not passing .

got new error !!

[ValidateApp | INFO] Validating '/home/jovyan/work/submitted/courseraLearner/W4_Assignment/C1W4_Assignment.ipynb'
[ValidateApp | INFO] Executing notebook with kernel: python3
2023-04-07 22:19:16.301324: 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
2023-04-07 22:19:16.301421: 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
2023-04-07 22:19:16.301432: 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.
2023-04-07 22:19:17.505735: 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
2023-04-07 22:19:17.505772: E tensorflow/stream_executor/cuda/cuda_driver.cc:351] failed call to cuInit: UNKNOWN ERROR (303)
2023-04-07 22:19:17.505793: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:156] kernel driver does not appear to be running on this host (ip-10-2-123-13.ec2.internal): /proc/driver/nvidia/version does not exist
2023-04-07 22:19:17.505981: 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
2023-04-07 22:19:17.513849: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency: 3000005000 Hz
2023-04-07 22:19:17.515634: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x55be10441a70 initialized for platform Host (this does not guarantee that XLA will be used). Devices:
2023-04-07 22:19:17.515674: 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'

Thats what I asked you in the beginning. There are no problems with the assignment because I just passed it myself.

At this point I suggest you perform a notebook reset and start from the scratch again, I am not sure where the error might be.

https://www.coursera.support/s/article/360004995312-Solve-problems-with-Jupyter-Notebooks?language=en_US

@gent.spah thanks for your help. Problem is solved.

1 Like

I am also facing the same issue, passed all test cases but getting same error as your can you help me to fix it?

Did you perform a reset on the notebook thats what I sugessted above. Maybe @Bonny_Patel can tell us what worked for him as well.

Error got resolved as i commented the code of training block

Please, can you tell me how you did it? What do you mean by commenting the code of training block?
Because, I am facing the same problem.

@Seli_Rasulzade, try choosing the “Restart and Clear Output” option on the Kernel menu before you submit.

I reset the notebook as @gent.spah suggested. Re-ran the notebook and submitted.

i am facing a problem it is taking too much time to run whole of program… if i submit in between it give a big error but if after restart and clear output i am getting another with pass bot still 0 score