[Bug 1959523] [NEW] [SRU] pychess is broken in Jammy

Launchpad Bug Tracker 1959523 at bugs.launchpad.net
Fri Feb 9 00:12:32 UTC 2024


You have been subscribed to a public bug by Sudip Mukherjee (sudipmuk):

[ Impact ]

pychess is completely unusable as it will fail to start and will give
error while trying to start the splash screen.

The error:

/usr/games/pychess:17: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '4.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk, Gdk
Failed to create splash screen
ERROR: Not all dependencies installed! You can find them in INSTALL
Namespace Gdk is already loaded with version 4.0

[ Test Plan ]

* Execute pychess, which will fail to start if its not fixed.
* With the fixed package, pychess will start and we can play a small game of chess to verify it works.

[ Where problems could occur ]

This is an upstream patch and is not changing any part of the code. Its
only specifying the Gtk version that should be loaded. Since the screen
is displayed with this change the chances of regression are very small.

[ Other Info ]

 * It has been fixed by upstream in v1.0.1 and so later releases after
Jammy are not affected.

[ Original Bug Description ]

Running from the command-line:

/usr/games/pychess:17: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '4.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk, Gdk
Failed to create splash screen
ERROR: Not all dependencies installed! You can find them in INSTALL
Namespace Gdk is already loaded with version 4.0

Really quick, just adding that line results in a situation where pychess
just won't work with Python 3.9 that's installed. I tried adding Python
3.7 with deadsnakes to try that out, but their jammy repo isn't up yet.

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: pychess 1.0.0-1.2
ProcVersionSignature: Ubuntu 5.15.0-18.18-generic 5.15.12
Uname: Linux 5.15.0-18-generic x86_64
ApportVersion: 2.20.11-0ubuntu76
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Sun Jan 30 12:51:37 2022
InstallationDate: Installed on 2022-01-27 (2 days ago)
InstallationMedia: Ubuntu 21.10 "Impish Indri" - Release amd64 (20211012)
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: pychess
UpgradeStatus: Upgraded to jammy on 2022-01-28 (2 days ago)

** Affects: pychess (Ubuntu)
     Importance: Undecided
         Status: Fix Released

** Affects: pychess (Ubuntu Jammy)
     Importance: Undecided
         Status: Confirmed


** Tags: amd64 apport-bug jammy
-- 
[SRU] pychess is broken in Jammy
https://bugs.launchpad.net/bugs/1959523
You received this bug notification because you are a member of Ubuntu Sponsors, which is subscribed to the bug report.



More information about the Ubuntu-sponsors mailing list