Spyder not working with Ubuntu 22.04 after installation with either aptitude or apt-get

2,808 views
Skip to first unread message

Fausto A. A. Barbuto

unread,
Aug 27, 2022, 10:54:44 PM8/27/22
to spyd...@googlegroups.com

Hi,

I love Spyder, but it has become increasingly problematic to install.

I've had problems with Spyder since about version 4.0 or maybe a bit
earlier than that, but now things seem to have reached a point of no 
return.

I recently upgraded my Ubuntu installation from 20.04 to 22.04 and
noticed that Spyder stopped working. I then uninstalled the version
I had with apt-get and reinstalled it in the hopes that it would
then work. After all, apt-get is the "official" way of installing 
Ubuntu packages, right? It should work. Well, it didn't and produced 
the following output:

$ spyder
/usr/bin/pkg_resources/__init__.py:123: PkgResourcesDeprecationWarning: 1.16.0-unknown is an invalid version and will not be supported in a future release
  warnings.warn(
/usr/bin/pkg_resources/__init__.py:123: PkgResourcesDeprecationWarning: 0.1.43ubuntu1 is an invalid version and will not be supported in a future release
  warnings.warn(
/usr/bin/pkg_resources/__init__.py:123: PkgResourcesDeprecationWarning: 1.1build1 is an invalid version and will not be supported in a future release
  warnings.warn(
Traceback (most recent call last):
  File "/usr/bin/spyder", line 33, in <module>
    sys.exit(load_entry_point('spyder==4.2.1', 'gui_scripts', 'spyder')())
  File "/usr/lib/python3/dist-packages/spyder/app/start.py", line 213, in main
    mainwindow.main(options, args)
  File "/usr/lib/python3/dist-packages/spyder/app/mainwindow.py", line 3624, in main
    mainwindow = create_window(app, splash, options, args)
  File "/usr/lib/python3/dist-packages/spyder/app/mainwindow.py", line 3482, in create_window
    main.setup()
  File "/usr/lib/python3/dist-packages/spyder/app/mainwindow.py", line 803, in setup
    self.completions = CompletionManager(self)
  File "/usr/lib/python3/dist-packages/spyder/plugins/completion/plugin.py", line 97, in __init__
    plugin_client = Plugin(self.main)
  File "/usr/lib/python3/dist-packages/spyder/plugins/completion/kite/plugin.py", line 50, in __init__
    self.installer = KiteInstallerDialog(
  File "/usr/lib/python3/dist-packages/spyder/plugins/completion/kite/widgets/install.py", line 287, in __init__
    self._integration_widget = KiteIntegrationInfo(self)
  File "/usr/lib/python3/dist-packages/spyder/plugins/completion/kite/widgets/install.py", line 58, in __init__
    image = image.scaled(image_width, image_height, Qt.KeepAspectRatio,
TypeError: arguments did not match any overloaded call:
  scaled(self, int, int, aspectRatioMode: Qt.AspectRatioMode = Qt.IgnoreAspectRatio, transformMode: Qt.TransformationMode = Qt.FastTransformation): argument 1 has unexpected type 'float'
  scaled(self, QSize, aspectRatioMode: Qt.AspectRatioMode = Qt.IgnoreAspectRatio, transformMode: Qt.TransformationMode = Qt.FastTransformation): argument 1 has unexpected type 'float'

I'm lost. Since Spyder is in the repository as an "official" package
it should be installed. But neither apt-get nor aptitude worked.

It is strongly recommended that Spyder should be installed under
Anaconda, but I don't see myself installing ~1 GB of useless clutter
just and only to get Spyder working. I want Spyder as it was before 
the upgrade. How could I do this?

Thanks a lot for any help.

F.



Daniel Althviz Moré

unread,
Aug 31, 2022, 2:04:35 PM8/31/22
to spyder
Hi Fausto,

Sorry for the inconvenience, but there is not much we can do. For more info about the Spyder distribution on Linux you can check this issue: https://github.com/spyder-ide/spyder/issues/17422

Basically, the Spyder team only releases the package through PyPI, conda and by building standalone installer for Windows and MacOS currently.

Let us know if the info in the issue linked above helps!

Best regards,

Daniel

Philip Yip

unread,
Sep 2, 2022, 7:55:36 AM9/2/22
to spyder
I don't think the apt package for spyder works...

You can install Spyder using Miniconda instead of Anaconda... Ensure to intialise Miniconda it in the last steps of installation. 
Miniconda is a barebones version of Anaconda giving an empty base environment with the conda package manager.
 
To get the latest version of Spyder, it is recommended to install it in a new conda environment using the commands:

```
conda create -n spyder-cf 

conda activate spyder-cf 

conda install -c conda-forge spyder

conda install -c conda-forge cython seaborn sympy openpyxl xlrd xlsxwriter lxml sqlalchemy

```

The last command gives the optional dependencies for spyder such as numpy, pandas, matplotlib (all dependencies of seaborn) and file format converters (used by pandas).

To launch you will need to activate your conda environment using:

```
conda activate spyder-cf 

spyder

```

I cover the installation on Ubuntu 22.04 LTS here:

Fausto A. A. Barbuto

unread,
Sep 16, 2022, 8:35:13 AM9/16/22
to spyd...@googlegroups.com

Hi Philip,

Thanks for your advice. I will try what you suggested.

Fausto


--
You received this message because you are subscribed to the Google Groups "spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spyderlib+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/spyderlib/b0fcfca6-d36a-45ad-bb64-17e5a7a56f4dn%40googlegroups.com.

Fausto A. A. Barbuto

unread,
Sep 16, 2022, 9:50:39 AM9/16/22
to spyd...@googlegroups.com
Hi Daniel,

More recently, I installed VS Code for the sake of a Spyder's replacement and so far I'm getting along well with it.
I didn't know there was VS Code (a Microsoft product) for Linux, but there is. Clean install, good looks, lots of
options (way more than I actually need). I still miss a few Spyder features, but c'est la vie.

Fausto


--
You received this message because you are subscribed to the Google Groups "spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spyderlib+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages