Hello,
An error appeared while importing the necessary components in the Lab 2 assignment. I’ve added a screenshot for reference.
Hi. From the warning and error messages above, it looks like the torch installation is corrupted. Will see if we can replicate the issue and update the notebook if necessary. Thank you for reporting!
The lab on the DeepLearning.AI platform is running normally and should be working fine.
However, the Coursera environment (which is running on AWS) may currently be experiencing issues. I’m also unable to even open Coursera on my side at the moment.
Hello again. I tried the lab and was able to successfully run it without issue (the errors below are expected). I didn’t get the warning about the torch installation (i.e. “invalid… ~orch…”).
I think yours was interrupted unintentionally and it’s not able to recover. Since I can’t replicate the issue, it’s hard to be sure what could be the fix. However, here are my suggestions next time you try this:
Remove the two --quiet flags in the pip install cell. That way, we can see more of the output while the installation is ongoing. That may help us troubleshoot next time this happens. Please save the output, especially those concerning torch. Take screenshots if it’s not too long or just copy paste the text to a file.
Next time you get that warning, you can also try this:
cd /opt/conda/lib/python3.12/site-packagesfind . -maxdepth 1 -type d -name '*orch*'.~orch as shown in the warning. Or it’s already torch. I haven’t encountered this issue so I’m not sure how it would appear.rm -rf <name_of_folder> (run this for every folder you want to delete)Hope these help! Also hoping that this is just a temporary issue when you tried that lab, and it would be fixed next time you try it.