Spyder reports invalid alias when running any script

I met same situation today, and I checked as following.
conda create -n testenv python spyder ipython=7.3
The issue happen.

conda create -n testenv python spyder ipython=7.2.0
In this environment, it doesn't happen.

I recommend you to rebuild your environment using ipython7.2.0 or downgrade with this:

conda install ipython=7.2.0

As indicated on the issue tracker, IPython 7.7.0 sorted out this problem. I can confirm updating to 7.7.0 worked for me (conda 4.7.10 on Ubuntu 18.04, Spyder 3.3.6).


The root cause can be traced down to this commit to ipython. Downgrading to ipython=7.2.0 certainly helps. Hope this can be fixed soon.

Tags:

Python

Spyder