Spyder version 5.1.5 issues - python

I had problems installing Spyder version 5.1.5. I followed all the steps outlined by #Carlos Cordoba which I have listed below:
conda remove spyder
conda remove python-language-server
conda update anaconda
conda install spyder=5.1.5
As soon as I did the above, my Anaconda installation was broken really badly. It is taking almost 8 hours to repair. If I had known, I should have remained with my jupyter notebooks but I decided to be adventurous with Spyder. Anyone knows any other fix for this?

You can try updating to Spyder 5.0.5 first then updating to 5.1.5 next. Maybe it might work. I managed to successfully update to 5.1.5 from 5.0.5 days ago without encountering any issues. Unfortunately, now that I have uninstalled and reinstalled Python and Anaconda in my newer laptop, even I too encountered this difficulty in updating to 5.1.5 straight from 4.2.5. Updating to Spyder 5.0.5 from 4.2.5 worked, but then updating to 5.1.5 didn't.

Related

conda install spyder=5.3.3 stuck on solving env

I couldn't find much help on the internet, which is why I'm asking this here.
Spyder has an issue where input() will cause an issue to the app. I've heard that spyder 5.3.3 has this issue fixed.
I have done:
conda update conda
conda update anaconda
However, when I try conda install spyder=5.3.3, it says failed with initial frozen solve. Retrying with flexible solve.
It then never solves the environment. Any help?
I tried all the solution posted but they does not work for my problem. I finally solved it by first uninstalling the existing spyder version and installing a new one. To do this, use this:
conda uninstall spyder
conda install spyder = 5.3.3
I don't have a great solution, ran into the same issue myself, I was able to install version 5.2.2 where 5.1.5 is the base version. This version does also fix the input() problem you were having.
Alternatively you might try either of these two options to install spyder into it's own environment which should negate the problems but will require you to be in that environment to run spyder.
conda create -n spyder-env spyder
or
conda create -n spyder-env spyder numpy scipy pandas matplotlib sympy cython
Close spyder. Run command: pip install --upgrade spyder
worked for me.
Me as well. At least you could get it updated to 5.2.2 using the recommended update command from anaconda's page for spyder:
conda install -c anaconda spyder
Or use Vaxion's solution by creating an environment.
I had the same problem, I tried on many ways. But this last worked for me:
conda install -c anaconda spyder
Maybe you can try it too.
I took it from anaconda / packages / spyder 5.3.3
Probably your Environment is broken somehow. I suggest you to create a new environment specifying conda-forge as a channel already at creation time:
conda create -n spyder-env -c conda-forge python=3.10 spyder=5.3.3
The newest versions of Spyder are usually available on this channel. Then you can install your other packages and libraries there as well.
Like others, the upgrade was advancing very slowly. It was not urgent, so I just left it, and it took about a week (!) and ended by barfing out 7000+ lines of package conflicts.
But then I followed the advice from Qiyuan Chen and it worked in just a few minutes:
conda uninstall spyder
conda install spyder=5.3.3
Qiyuan Chen's answer also worked for me. After I uninstalled and reinstalled it, I went back to Anaconda Navigator and the Spyder icon was there with an install button underneath it. I hit 'INSTALL' and it worked.
As per others and Peters answer above
But then I followed the advice from Qiyuan Chen and it worked in just a few minutes:
Needed to turn the Anaconda Navigator off and on againbut I've now got Spyder 5.3.3 up and going with no distracting messages

I cannot update Spyder on Anaconda, updating takes forever

I want to install a version of Spyder higher than 5.1.5 on Anaconda 2.3.0. I have updated anaconda using either the pop up of anaconda or using CMD and typing
conda update --all
or
conda update conda
conda update anaconda
After I updated Anaconda, I tried to update spyder. I made several attemps:
I used the wheel next to spyder and did "update spyder". That took very long, ended after more than one hour but Spyder is still version 5.1.5. I then used the wheel to manually select an install version, I picked one of the latest two, 5.2.2. However even after spending more than 3 hours, the update is not over. It's still running. "Upgrading application spyder on C:\my path" with a loading circle running below Spyder's icon and "Spyder" on the navigator.
I also tried to remove spyder before reinstalling it with:
conda remove spyder
conda remove python-language-server
conda update anaconda
conda install spyder=5.2.2
But it stuck at the last step with conflicts running for more than 6 hours with no end in sight.
I uninstalled anaconda, started with a fresh install and tried the same things, after a fresh install I tried only doing: conda install spyder=5.2.2, but that didn't work, it also ran for more than 5 hours helplessly.
I tried to remove spyder from the navigator by uninstalling it individually before reinstalling spyder from the 5.2.2 directly but it didn't work either.
Thanks for your help.
Edit: 24 hrs later, and it's still supposedly updating. This solution did not work for me (to upgrade to Spyder 5.3.3).
I'm attempting this for myself right now, as I'm having the same trouble.
Try updating Anaconda Navigator first, then using it to upgrade Spyder to the most recent version.. but instead of clicking “Update application” which still doesn’t quite work, click on “Install specific version” and choose the latest version of Spyder.
https://mathtuition88.com/2020/09/08/updating-spyder-takes-forever/

Numerous issues when attempting to update Spyder to version 5.1.5 in new Anaconda install

I've run into numerous problems when attempting to update Spyder from 4.2.5 (which is what installs with the most recent Anaconda install) to 5.1.5 in Anaconda.
The advice provided on Spyder startup during version checking:
conda update conda
conda update anaconda
conda install spyder=5.1.5
does NOT work.
After some searching around, I did find a stack overflow question with an answer from a Spyder Maintainer with the following instructions:
conda remove spyder
conda remove python-language-server
conda update anaconda
conda install spyder=5.1.5
This seems to actually work, but then seemed to remove some common modules/packages as well, like matplotlib. Those are easy enough to reinstall (conda install matplotlib), but after that running matplotlib would cause Spyder to restart the Kernel every time, PLUS no plots were produced.
A different question provided the advice to downgrade the version of freetype from 2.11.0 to 2.10.4, which seemed to resolve that issue (downgrading Matplotlib seemed to be unnecessary). I'm afraid of what other issues I may encounter? I'm attempting to teach Python to 70 or so undergraduate students, and it's very difficult to assist when upgrades break things this bad.
Is there an easier/cleaner way to upgrade Spyder to 5.1.5 on Anaconda that I haven't come across yet?
(Spyder maintainer here) You said
Is there an easier/cleaner way to upgrade Spyder to 5.1.5 on Anaconda that I haven't come across yet?
Unfortunately, there isn't. This update was particularly hard because we had to drop some dependencies which became unmaintained and use others instead. However, the problem with Matplotlib crashing should be solved now (i.e. there's no need to downgrade freetype to fix it).
I'm attempting to teach Python to 70 or so undergraduate students, and it's very difficult to assist when upgrades break things this bad.
In that case, I strongly recommend you to use our Windows and macOS installers, which you can find here and follow our instructions on how to use other Python packages that don't come with them. I think that would be far more simpler for your students to follow than using Spyder directly through Anaconda.
(Sorry to be answering my own question, figured it's better for visibility)
So funny thing, as of 11/17/2021, I note that Anaconda's latest release now includes Spyder 5.1.5, so upgrade issues are no longer an problem if installing Anaconda fresh.
spyder 4.2.5 -> 5.1.5
spyder-kernels 1.10.2 -> 2.1.3
(https://docs.anaconda.com/anaconda/reference/release-notes/)
Yay for fortuitous upgrade releases!

Problem with matplotlib (anaconda) update

I'm having an issue with the version of my matplotlib. I don't understand why, since I downloaded and installed my new Ubuntu and anconda just last week.
I was getting an error in one of my notebooks in a legend settings, where I realized the my newly installed matplotlib version is 2.2.2. Although it was odd, I tried to update it using
$ conda update matplotlib
in the terminal which did basically nothing. So I tried the command
$ pip install --upgrade matplotlib
this one did update it to 3.1.1, but now I got the error that other packages (e.g. Pandas) were not installed.
I tried to fix that by going to the navigator directly and installing the packages I could think of one by one. It worked, but matplotlib was reverted back to 2.2.2.
To get out of this mess I uninstalled anaconda and reinstalled it again. Now matplotlib is still 2.2.2.
I would be grateful if anyone could tell me what the source of the problem is and/or how to solve it. Thanks a lot in advance! :)

Spyder anaconda crashes on Linux with segmentation fault

I just installed Anaconda on Linux. When trying to open spyder (either from navigator or terminal), it does not work. I get the following error when I try to open it in terminal:
Segmentation fault (core dumped)
I updated Conda completely but can't solve the problem. I am using Conda version 4.5.5 and Ubuntu 18.04. Any idea?
(Spyder maintainer here) This problem is caused by faulty graphical card drivers and there are two ways to fix it:
Update to Spyder 3.3 or higher.
Install pyopengl with conda.
Based on my experiences, if you have ubuntu 18.04, anaconda 4.5 or higher, and spyder 3.3 or higher, installing pyopengl does not work, since spyder 3.3 should handle it. As recommended above, before start fixing it try to update spyder first:
conda update spyder
then downgrade Qt:
conda install pyqt=5.6
It should probably fix your problem. Other solutions could be found here:
Spyder Troubleshooting-Guide-and-FAQ
as well as :
Basic Troubleshooting and Emergency CPR
I saw issue on brand new Fedora with new anaconda installation. Just updating the spyder to latest version (in my case 3.3.1) fixed it, without anything else.
(BTW: You can do this even from anaconda navigator itself, just look after the wheel within each application panel in the right corner).
Would recommend to fix anything stepwise, start with upgrading to the latest spyder and if this doesn't work, try the other stuff.
The solutions around here did not work for me. I have uninstalled Anaconda https://docs.anaconda.com/anaconda/install/uninstall/ and reinstalled it https://docs.anaconda.com/anaconda/install/linux/
Only then did the segmentation fault disappear.
Note that this has worked with Ubuntu 14.04 LTS (a old release at the time of this writing) and Anaconda3 5.3.0 with Spyder 3.3.1 (the very latest); versions checked with conda list <package>. The Spyder version supported by Ubuntu 14 is still 2.5.5, so this arrangement lets me have on board a new Spyder without upgrading the distro. Not to mention that reportedly the developers prefer to maintain Spyder in the Anaconda environment rather than elsewhere.

Categories