I am new to python and coming from Matlab and I have installed the latest version of Python(x,y) (2.7.9.0) on my Win 8 64 bit PC.
The problem that I have is that, e
Also had the same problem. Firstly, I solved this problem by spyder --reset. But when I turned into my working project tree, this problem happened again. So I reinstalled anaconda and upgraded spyder, but unfortunately, this problem remained unsolved.
Then I thought, why spyder --reset could work? Then I began a new empty project, and this problem didn't happen. So I realized that maybe there is something wrong with my working project.
After some searching, I found that a file named decorator.py may be the problem. Whatever project I moved this file in, the problem happened again. Then I changed the name of this file as Decorator.py, the problem was solved.
So my advice is switching your working project to a new project, then watch whether this problem could happen again.
But afterwards, I still do not know why python file can't be named decorator.py. If somebody knows, please tell me.