[SRU] veusz fails to start under Python 3.10

Bug #1982839 reported by Dave Jones
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
veusz (Debian)
Fix Released
Unknown
veusz (Ubuntu)
Fix Released
Undecided
Unassigned
Jammy
Fix Released
Undecided
Unassigned
Kinetic
Won't Fix
Undecided
Unassigned

Bug Description

[ Impact ]

Veusz fails to start under jammy and kinetic.

[ Test Plan ]

* sudo apt install veusz
* veusz
* Observe that veusz fails to start, with the error indicated in the original description
* Enable proposed (https://wiki.ubuntu.com/Testing/EnableProposed)
* sudo apt install -t kinetic-proposed veusz
  - substitute jammy if testing there
* veusz
* Observe that veusz now starts (try running through the tutorial for a basic functionality test)

[ Regression Potential ]

Pretty low: there are no reverse dependencies for veusz, and the current state is that the application doesn't even start, so there's not much further it can regress.

[ Original Description ]

Attempting to start Veusz on my jammy installation fails. The following is produced as console output:

Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
Traceback (most recent call last):
  File "/usr/bin/veusz", line 33, in <module>
    sys.exit(load_entry_point('veusz==3.3.1', 'gui_scripts', 'veusz')())
  File "/usr/lib/python3/dist-packages/veusz/veusz_main.py", line 369, in run
    app.startup()
  File "/usr/lib/python3/dist-packages/veusz/veusz_main.py", line 267, in startup
    self.splash = makeSplash(self)
  File "/usr/lib/python3/dist-packages/veusz/veusz_main.py", line 69, in makeSplash
    font.setPointSize(font.pointSize()*1.5)
TypeError: setPointSize(self, int): argument 1 has unexpected type 'float'

It would appear that the relevant upstream bug (already fixed) is https://github.com/veusz/veusz/issues/563.

Tags: patch
Revision history for this message
Dave Jones (waveform) wrote :

Attaching a debdiff which incorporates the patches for Python 3.10 compatibility from upstream. I've tested a build of this locally and veusz fires up and works happily with the patches in place. Test packages are currently building in the following PPA:

https://launchpad.net/~waveform/+archive/ubuntu/veusz/+packages

summary: - veusz fails to start on jammy desktop
+ veusz fails to start under Python 3.10
tags: added: patch
Revision history for this message
Graham Inggs (ginggs) wrote : Re: veusz fails to start under Python 3.10

This needs to be fixed in kinetic first. I tried building veusz with your debdiff in kinetic, but it fails the same way as it does in Debian, see https://bugs.debian.org/1011706

If you can get veusz to build in kinetic, we can look at an SRU for jammy.
Unsubscribing sponsors for now.

Revision history for this message
Jeremy Sanders (jeremysanders) wrote :

A version which works on kinetic or jammy can be found here:
 https://salsa.debian.org/science-team/veusz
or built here for Ubuntu:
 https://launchpad.net/~jeremysanders/+archive/ubuntu/ppa/+packages

Changed in veusz (Debian):
status: Unknown → Fix Released
Revision history for this message
Dave Jones (waveform) wrote :

Hi Jeremy, thanks for the pointers! Looks like the debian science-team version is the one in lunar, and I've just tested that this works on the lunar desktop (which it does) so I'll convert this to an SRU for kinetic and jammy.

summary: - veusz fails to start under Python 3.10
+ [SRU] veusz fails to start under Python 3.10
Dave Jones (waveform)
description: updated
Revision history for this message
Graham Inggs (ginggs) wrote :

kinetic is EOL, so marking "won't fix" there

Changed in veusz (Ubuntu Kinetic):
status: New → Won't Fix
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in veusz (Ubuntu Jammy):
status: New → Confirmed
Changed in veusz (Ubuntu):
status: New → Confirmed
Revision history for this message
Dave Jones (waveform) wrote :

Looks like this was fixed with a sync from Debian.

Changed in veusz (Ubuntu Jammy):
status: Confirmed → Fix Released
Changed in veusz (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.