A recent update of python, broke the spyder kernel and it failed to launch with the following error.
The workaround that worked was to make spyder use its default kernel, which can be done by going to Tools->Preferences->Python Interpreter Click on apply and then ok. Launch spyder again and the error should not appear.