These are chat archives for spyder-ide/public

20th
Sep 2018
Paul Gureghian
@paulgureghian_twitter
Sep 20 2018 01:36
also, sometimes in the spyder editor the cursor goes from a thin vertical black line to a black square. how to keep it a thin line or revert back to a thin line ? the black square is hard to work with when deleting and or moving text around the editor.
CAM Gerlach
@CAM-Gerlach
Sep 20 2018 01:39

thin vertical black line to a black square

Most likely, you are hitting the Insert key on your keyboard by accident, and it is doing exactly what it is supposed to (as it does in most if not all other applications). I normally keep it disabled in my keyboard driver to prevent this occurring, but when I enabled it, it produced exactly the effect you describe.

Carlos Cordoba
@ccordoba12
Sep 20 2018 01:40
@paulgureghian_twitter, please try conda install sip=4.19.8 to see if it solves your problem
Paul Gureghian
@paulgureghian_twitter
Sep 20 2018 17:10
I did that command, and spyder wont, python broke, and i have the same error. cant find QT engine. exe
Paul Gureghian
@paulgureghian_twitter
Sep 20 2018 17:27
Capture4.PNG
I reinstalled python, restarted anaconda, tried to start spyder. the editor launched, but the connection to the ipykernel failed.
CAM Gerlach
@CAM-Gerlach
Sep 20 2018 17:42

I did that command, and spyder wont, python broke, and i have the same error

That isn't what the screenshot's showing, if that's what you're referring to. The warning message there isn't germane, I don't think.

I reinstalled python, restarted anaconda, tried to start spyder. the editor launched, but the connection to the ipykernel failed.

Again, make absolutely sure you're launching in an environment with ipykernel 4.8.2. Also, check in the preferences under Python interpreter that it is either set to the default, or to the python.exe executable in such an environment. You can also just try launching Spyder in the base env, since the dependencies should all be surely correct there unless you changed them since its the default Anaconda versions.

Paul Gureghian
@paulgureghian_twitter
Sep 20 2018 18:29
Capture5.PNG
is it possible for spyder and / or other packages to be removed without my knowledge when I am installing other packages into to the env ?
CAM Gerlach
@CAM-Gerlach
Sep 20 2018 18:37
No. conda will tell you exactly what will be added, updated and removed before you confirm the changes and it executes them.

Did you check all three things I asked for? What were the exact results?

If none of that helps, its unclear what you mean by

I reinstalled python, restarted anaconda

But you should do a clean uninstall and reinstall of the latest Anaconda3 x64 if you haven't already done so. I don't know what's going on, but its very likely either something with your specific install or some sort of user error.

Paul Gureghian
@paulgureghian_twitter
Sep 20 2018 18:44
you mean the whole anaconda install ? but my py2 env is working
does it matter the order of installing packages and spyder into a new env ?
CAM Gerlach
@CAM-Gerlach
Sep 20 2018 19:06

you mean the whole anaconda install ? but my py2 env is working

Only if you can't get it to work otherwise.

does it matter the order of installing packages and spyder into a new env ?

It shouldn't usually, so long as you do all of them around the same time.

Again, please check the above three things I've asked you to and report the results.

CAM Gerlach
@CAM-Gerlach
Sep 20 2018 19:14
I performed the following sequence of commands on my Windows 8.1 x64 system with Anaconda3 x64, and Spyder started and I was able to run console commands (I did get the error in spyder-ide/spyder#7721 on startup due to Python 3.7, but there weren't any obvious problems after that):
conda create -n spyder-test python=3
activate spyder-test
conda install spyder
conda install ipykernel=4.8.2
spyder
I got the error you had when launching a console, but only before downgrading ipykernel which fixed it.
Then I downgraded to Python 3.6.6, and everything worked fine with no errors at all. So I recommend you do the above, except replacing the first line with conda create -n spyder-test python=3.6 to avoid spyder-ide/spyder#7721 until Spyder 3.3.2 comes out which will fix it.