Comment 14 for bug 1972112

Revision history for this message
Gereon Such (gereonsuch) wrote : Re: [Bug 1972112] Re: [jammy] spyder does not start because of kite install widget

Nevermind, i hoped they would have fixed the code in the repo by now...

gareth <email address hidden> schrieb am Fr., 24. Feb. 2023, 12:55:

> patch works thank you
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1972112
>
> Title:
> [jammy] spyder does not start because of kite install widget
>
> Status in spyder package in Ubuntu:
> Confirmed
>
> Bug description:
> 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)
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/spyder/+bug/1972112/+subscriptions
>
>