Public bug reported:

On clean install, python3-spyder crashes on startup. This is caused by a
float variable which should be an integer in file /usr/lib/python3/dist-
packages/spyder/plugins/completion/kite/widgets/install.py

There are multiple images created in the script, and all of them are
scaled. The scaling factors are floats, thus the size parameters are
floats, and the pyqt backend crashes from this.

Example from line 56:
image_height = image.height() * 0.5
should be changed to 
image_height = int(image.height() * 0.5)
This has to be done in lines 56, 57, 142, 143, 243, 244, then we're good to go 
and the ide starts up. 

I would have commited a fix to a file, if the code was stored in a
common repository, but I'm not sure where the plugin source code
originates from as it is not part of the regular spyder repo at github
(https://github.com/spyder-
ide/spyder/tree/master/spyder/plugins/completion does not contain
kite...)

Nonetheless, I hope you guys can patch it as necessary.

Yours sincerely, 
Gereon

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: python3-spyder 4.2.1+dfsg1-3 [modified: 
usr/lib/python3/dist-packages/spyder/plugins/completion/kite/widgets/install.py]
ProcVersionSignature: Ubuntu 5.15.0-27.28-generic 5.15.30
Uname: Linux 5.15.0-27-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu82
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Sun May  8 20:41:01 2022
InstallationDate: Installed on 2022-05-08 (0 days ago)
InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - Release amd64 (20220419)
PackageArchitecture: all
SourcePackage: spyder
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: spyder (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug jammy

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1972112

Title:
  spyder does not start in jelly because of kite install widget

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/spyder/+bug/1972112/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to