I can't tell why this is happening but it seems to have started when I updated (everything - conda update --all). It had been about 1 year since I last had updated. Something must have changed.
Here is the script:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Mar 3 11:25:22 2019
@author: pitosalas
"""
print("hello")
And here is the output from pressing the green triangle in spyder:
Python 3.6.6 |Anaconda, Inc.| (default, Jun 28 2018, 11:07:29)
Type "copyright", "credits" or "license" for more information.
IPython 7.3.0 -- An enhanced Interactive Python.
runfile('/Users/pitosalas/Box Sync/datawork/2019Resubmit/deleteme.py', wdir='/Users/pitosalas/Box Sync/datawork/2019Resubmit')
ERROR:root:Invalid alias: The name clear can't be aliased because it is another magic command.
ERROR:root:Invalid alias: The name more can't be aliased because it is another magic command.
ERROR:root:Invalid alias: The name less can't be aliased because it is another magic command.
ERROR:root:Invalid alias: The name man can't be aliased because it is another magic command.
hello
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).
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
conda install ipython=7.2.0 worked for me. ipython 7.3.0 was the culprit.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With