I\'m using Python 3.6 and am trying to follow along with the very first example at the website below (full code also below) and am getting the below error:
https://docs.pyth
The question didn't specifically mention Spyder nor Conda (though it is tagged as such). Hence, I will note that I found this can also happen when using pdb.
E.g.
python -m pdb myprogram.py
Passing spec = None would be a useful workaround if you wanted to persist with pdb.