Getting “The model in your submission is invalid. Please try again!” while submitting the assignment(C1W3). Please help me out, thank you.
I get the following error:
pip install tensorflow-cpu==2.2.0
ERROR: Could not find a version that satisfies the requirement tensorflow-cpu==2.2.0 (from versions: 2.8.0, 2.8.1, 2.8.2, 2.8.3, 2.8.4, 2.9.0rc0, 2.9.0rc1, 2.9.0rc2, 2.9.0, 2.9.1, 2.9.2, 2.9.3, 2.10.0rc0, 2.10.0rc1, 2.10.0rc2, 2.10.0rc3, 2.10.0, 2.10.1, 2.11.0rc0, 2.11.0rc1, 2.11.0rc2, 2.11.0, 2.11.1, 2.12.0rc0, 2.12.0rc1, 2.12.0, 2.12.1, 2.13.0rc0, 2.13.0rc1, 2.13.0rc2, 2.13.0) ERROR: No matching distribution found for tensorflow-cpu==2.2.0
I use TF 2.8.3, and I get “The model in your submission is invalid. Please try again!” after submitting the assignment (C1W3).
After reading this Forum, I concluded that I may have to drop the entire Specialization, since C1W3 cannot be properly graded now. I do not have more time to waste. I will do it within the 7-days free period, which ends very soon. Does anyone have any solution now?
I have found the solution! The main idea is that you cannot use Python 3.10.8, but it worked with Python 3.8.10. You can read the remainder of this message ONLY if you want to know how I solved the problem.
I have Python 3.10.8 installed in
C:/Users/JJohnson/AppData/Local/Programs/Python/Python310/python.exe
I downloaded and installed Python 3.8.10 - May 3, 2021:
I downloaded “Windows installer (64-bit)” from https://www.python.org/downloads/windows/:
https://www.python.org/ftp/python/3.8.10/python-3.8.10-amd64.exe
I installed it to:
C:/Users/JJohnson/AppData/Local/Programs/Python/Python38/python.exe
mkdir C1_W3_Assignment
cd C1_W3_Assignment
C:\Users\JJohnson\AppData\Local\Programs\Python\Python38\python -m venv env
env/Scripts/Activate.ps1
C:\Users\JJohnson\AppData\Local\Programs\Python\Python38\Scripts\pip list
C:\Users\JJohnson\AppData\Local\Programs\Python\Python38\Scripts\pip install tensorflow==2.2.0
C:\Users\JJohnson\AppData\Local\Programs\Python\Python38\Scripts\pip install tensorflowjs==2.8.5
C:\Users\JJohnson\AppData\Local\Programs\Python\Python38\Scripts\pip install tensorflow-estimator==2.2.0
C:\Users\JJohnson\AppData\Local\Programs\Python\Python38\Scripts\pip install protobuf==3.12.2
C:\Users\JJohnson\AppData\Local\Programs\Python\Python38\Scripts\pip uninstall numpy
C:\Users\JJohnson\AppData\Local\Programs\Python\Python38\Scripts\pip install numpy==1.19.3
C:\Users\JJohnson\AppData\Local\Programs\Python\Python38\Scripts\pip install matplotlib==3.4.2
C:\Users\JJohnson\AppData\Local\Programs\Python\Python38\Scripts\pip list
Populate C1_W3_Assignment.py from C1_W3_Assignment.ipynb
C:\Users\JJohnson\AppData\Local\Programs\Python\Python38\python C1_W3_Assignment.py
Use tensorflowjs (from C:\Users\JJohnson\AppData\Local\Programs\Python\Python38\Scripts) … I cannot show how, since this is part of the assignment.
deactivate
Generate “submission.zip” from 10 “group1-shard*of10.bin” and “model.json”.
“model.json” will contain: “generatedBy”: “keras v2.3.0-tf”, “convertedBy”: “TensorFlow.js Converter v2.8.5”, “modelTopology”: {“keras_version”: “2.3.0-tf”
Submit this “submission.zip” for grading.
rm -Force env
Uninstall Python 3.8.10
Delete C:\Users\JJohnson\AppData\Local\Programs\Python\Python38
Finally, you may forget about Python 3.8.10 and tensorflow 2.2.0 forever
!!!
Hi everyone. We are working on resolving the grader issue for this lab. I’ll update this topic as soon as it’s fixed. Thank you and sorry for the inconvenience!
Hello James,
based on your message seems this assignment will not work with python 3.10
will it work with 3.11?
I have not tried Python 3.11. My objective was to complete the course, but not to test every combination of system configurations. You can try to run the following with Python 3.11: pip install tensorflow-cpu==2.2.0. Most likely, it will fail. The main issue is not about Python version. The main issue is about required TensorFlow version. The Python version was the next layer of troubleshooting.
I am having the same issue. Hey James, do I need uninstall the python version I already have to download the version you are mentioning in this post??
Sorry I am a non-IT person, so need little bit of guidance.
From your post what I understood, I need to install python 3.8 version, do the assignment and again uninstall it?
But do I need to uninstall the current version I have in my system?
Thank You
DP
Hi @Deepti_Prasad !
I did not uninstall my original version (3.10) of Python while working on my assignment. In fact, I did not even change my Spyder setting:
I guess that you do not need to uninstall the current version (e.g. 3.10) either.
I keep Python 3.10 on my system after I completed the assignment. As for Python 3.8, I installed it temporarily just for this assignment, and uninstalled it after I got the grade. As you may notice, each time I specify the full path to Python 3.8 components when I invoke them while working on this assignment. This way I make sure that Python 3.10 is not used for this assignment. I use only Power Shell (not Spyder or Jupyter) to keep this process cleaner, although one can have and use multiple Python versions on a system. But I do not need multiple versions.
Hi everyone. Just an update. We have a temporary solution that we’ll deploy later in the day. Ideally, the grader should be updated but that will take a bit more time. The workaround will let you use TF2.2 in the Coursera Labs environment so it will be accepted by the current version of the grader. Will update here as soon as it’s deployed. Thanks.
Hello again! The lab is now deployed in the classroom. Please use the Coursera Lab environment to generate the needed files for the autograder. Hope this helps!
