The C3W1 assignment instruction requires me to install TensorFlow version 2.8.0 but that version cannot be found in Colab.
This is a blocking issue for me to finish the assignment.
This is a blocking issue for me to finish the assignment.
is this the complete error?
you also seem to have posted course 4 query in course 3?
Fixed the typo.
This is the complete error (I couldnāt capture them all in a screenshot)
ERROR: Could not find a version that satisfies the requirement tensorflow==2.8.0 (from versions: 2.12.0rc0, 2.12.0rc1, 2.12.0, 2.12.1, 2.13.0rc0, 2.13.0rc1, 2.13.0rc2, 2.13.0, 2.13.1, 2.14.0rc0, 2.14.0rc1, 2.14.0, 2.14.1, 2.15.0rc0, 2.15.0rc1, 2.15.0, 2.15.0.post1, 2.15.1, 2.16.0rc0, 2.16.1, 2.16.2, 2.17.0rc0, 2.17.0rc1, 2.17.0, 2.17.1, 2.18.0rc0, 2.18.0rc1, 2.18.0rc2, 2.18.0)
ERROR: No matching distribution found for tensorflow==2.8.0
Requirement already satisfied: protobuf==3.20.* in /usr/local/lib/python3.11/dist-packages (3.20.3)
Colab has TensorFlowās version 2.15.0
so your issue is resolved?
restart the session and runtime?
I only fixed the typo from C4 to C3. The issue still remains. The instructions say to install the required version of TensorFlow BEFORE restarting the session and run time. I even did that but I still obviously donāt have the required version by the grader. Itās very easy to reproduce. Just just need to create a new notebook in Colab and try to install TensorFlow with that version.
i just noticed your screenshot again which mentions to ignore error mismatch version for tensorflow.
this cell was patched up for other codes mismatch issue. So you can go ahead with assignment.
No, that message has nothing to do with the error. The next cell in the assignment tries to assert if tensorflow version 2.8.0 exists and will fail.
I even created another google account and open a new Colab notebook and tried to install tensorflow version 2.8.0 and got the same error.
So I did some more investigation that according to the official TensorFlow documentation and release notes, TensorFlow 2.8.0 supports the following Python versions:
I donāt believe you didnāt see the same issue with the current Colab because it was so obvious and I saw some other posts on other assignments that got the same issue.
python version issue was not reported until now and it surely didnāt have issue with my colab and python 3.11 version
Python version was posted in the error message earlier. How can I escalate the issue? I figured out a work around but the assignment has to be corrected and the support level has to be better I believe.
this was addressed with pip installing protobuf version 3.20.
Installing only protobuf will not address this assertion in the next cell:
assert tf.version == ā2.8.0ā, fāYou have TF{tf.version}. Please install the grader-compatible Tensorflow and select Runtime > Restart Sessionā
I donāt want to pursue this any longer since I found a work around but Iāll raise this issue somewhere else so that other people know about it.
@chris.favila can you check into this issue. seems the version update is still creating error for him.
Hi Harrison! Thank you for reporting this. Weāll look into the issue and update the notebooks accordingly.
If you found a workaround, please also share it here so other learners can do the same while we update the notebooks. Thank you!
I see what you mean now. TF2.8 is indeed not supported by the default Python version in Colab. Thanks again for reporting!
For other learners: The workaround is to use the Fallback runtime.
Click on Tools > Command Palette. Then search for Use fallback runtime version
.
This runtime will eventually be phased out so weāll update the notebooks before that happens.
Good morning,
I donāt see the āUse Fallbacks Runtimeā option in the command palette. Am I the only one experiencing this, or is it the same for others?
I am facing the same issue. i tried the suggested workaround in colab, which is enabling the fallback runtime version, but unable to import Tensorflow as tf. Request you to upgrade the assignment notebooks as i am unable to submit for C3W1 and C3W3 assignments.
I donāt see the āUse Fallback Runtimeā option either and according to one of the threads on Google Colab Iāve found about this, someone from Google Colab stated that they only enabled the option for certain period.
So hereās my workaround in case it helps.
Method 1:
If you can do it on your local machine, create a virtual environment with Python 3.7 and install the required modules and continue with the remaining steps to produce the file to upload for grading.
NOTE: this doesnāt work on my Mac M1 chip laptop because the version of TF is not available.
Method 2:
I mentioned it was hard for me before but that worked for me after I couldnāt get it to work on my Apple M1 laptop. If method 1 works on your machine then thatād be the easier approach. Good luck.
Hi! Please make sure to follow the sequence as described here. A common mistake is looking at the command palette before being connected to a GPU. The fallback runtime option will not appear in that case. It will only appear after connecting to a GPU. I just tried it now and itās still there.
Hope this helps!
Note: The team is already working on an update for the assignments without needing the fallback. We will be deploying this very soon. Thank you, and sorry for the inconvenience!
Hi Vasuki! Please see my reply above. Another common mistake is not restarting the runtime after installing tf2.8 towards the end of the notebook. Kindly check if the assert message fails. There was also some missing code in C3W3 (i.e. install protobuf after installing tf2.8). Itās now there in the assignment. Please reopen the notebook from the classroom to see the change.
If you already downloaded your tf2.15 models earlier, you can just upload it on Colab then just do the last steps in the notebook where you convert it to tf2.8.
Hope this helps and again, I apologize for this experience. The team has been working on the updates. Thank you!