Public bug reported:

[Impact]

streamdeck-ui fails to start due to the usage of a deprecated method
ImageDraw.textsize().

[Test Case]

Simply start streamdeck-ui:

$ streamdeck
...
Traceback (most recent call last):
  File "/usr/bin/streamdeck", line 33, in <module>
    sys.exit(load_entry_point('streamdeck-ui==1.1.2', 'console_scripts', 
'streamdeck')())
             
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3/dist-packages/streamdeck_ui/gui.py", line 634, in start
    items = api.open_decks().items()
            ~~~~~~~~~~~~~~^^
  File "/usr/lib/python3/dist-packages/streamdeck_ui/api.py", line 105, in 
open_decks
    deck.open()
    ~~~~~~~~~^^
  File 
"/home/righiandr/.local/lib/python3.13/site-packages/StreamDeck/Devices/StreamDeck.py",
 line 233, in open
    self.device.open()
    ~~~~~~~~~~~~~~~~^^
  File 
"/home/righiandr/.local/lib/python3.13/site-packages/StreamDeck/Transport/LibUSBHIDAPI.py",
 line 373, in open
    self.device_handle = self.hidapi.open_device(self.device_info['path'])
                         ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
  File 
"/home/righiandr/.local/lib/python3.13/site-packages/StreamDeck/Transport/LibUSBHIDAPI.py",
 line 224, in open_device
    raise TransportError("Could not open HID device.")
StreamDeck.Transport.Transport.TransportError: Could not open HID device.

ProblemType: Bug
DistroRelease: Ubuntu 25.04
Package: streamdeck-ui 1.1.2-2
ProcVersionSignature: Ubuntu 6.14.0-15.15-generic 6.14.0
Uname: Linux 6.14.0-15-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.32.0-0ubuntu5
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Wed Apr 30 07:31:21 2025
InstallationDate: Installed on 2021-07-12 (1388 days ago)
InstallationMedia: Ubuntu 21.10 "Impish Indri" - Alpha amd64 (20210712)
PackageArchitecture: all
SourcePackage: streamdeck-ui
UpgradeStatus: Upgraded to plucky on 2025-02-06 (83 days ago)

[Fix]

Use an alternative method compatible with textsize to determine the
width and length of the text shown in the button object.

[Regression potential]

Minimal, without the fix the app won't even start.

** Affects: streamdeck-ui (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: streamdeck-ui (Ubuntu Plucky)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug plucky wayland-session

** Description changed:

+ [Impact]
+ 
+ streamdeck-ui fails to start due to the usage of a deprecated method
+ ImageDraw.textsize().
+ 
+ [Test Case]
+ 
+ Simply start streamdeck-ui:
+ 
+ $ streamdeck
+ ...
  Traceback (most recent call last):
-   File "/usr/bin/streamdeck", line 33, in <module>
-     sys.exit(load_entry_point('streamdeck-ui==1.1.2', 'console_scripts', 
'streamdeck')())
-              
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
-   File "/usr/lib/python3/dist-packages/streamdeck_ui/gui.py", line 634, in 
start
-     items = api.open_decks().items()
-             ~~~~~~~~~~~~~~^^
-   File "/usr/lib/python3/dist-packages/streamdeck_ui/api.py", line 105, in 
open_decks
-     deck.open()
-     ~~~~~~~~~^^
-   File 
"/home/righiandr/.local/lib/python3.13/site-packages/StreamDeck/Devices/StreamDeck.py",
 line 233, in open
-     self.device.open()
-     ~~~~~~~~~~~~~~~~^^
-   File 
"/home/righiandr/.local/lib/python3.13/site-packages/StreamDeck/Transport/LibUSBHIDAPI.py",
 line 373, in open
-     self.device_handle = self.hidapi.open_device(self.device_info['path'])
-                          ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
-   File 
"/home/righiandr/.local/lib/python3.13/site-packages/StreamDeck/Transport/LibUSBHIDAPI.py",
 line 224, in open_device
-     raise TransportError("Could not open HID device.")
+   File "/usr/bin/streamdeck", line 33, in <module>
+     sys.exit(load_entry_point('streamdeck-ui==1.1.2', 'console_scripts', 
'streamdeck')())
+              
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
+   File "/usr/lib/python3/dist-packages/streamdeck_ui/gui.py", line 634, in 
start
+     items = api.open_decks().items()
+             ~~~~~~~~~~~~~~^^
+   File "/usr/lib/python3/dist-packages/streamdeck_ui/api.py", line 105, in 
open_decks
+     deck.open()
+     ~~~~~~~~~^^
+   File 
"/home/righiandr/.local/lib/python3.13/site-packages/StreamDeck/Devices/StreamDeck.py",
 line 233, in open
+     self.device.open()
+     ~~~~~~~~~~~~~~~~^^
+   File 
"/home/righiandr/.local/lib/python3.13/site-packages/StreamDeck/Transport/LibUSBHIDAPI.py",
 line 373, in open
+     self.device_handle = self.hidapi.open_device(self.device_info['path'])
+                          ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
+   File 
"/home/righiandr/.local/lib/python3.13/site-packages/StreamDeck/Transport/LibUSBHIDAPI.py",
 line 224, in open_device
+     raise TransportError("Could not open HID device.")
  StreamDeck.Transport.Transport.TransportError: Could not open HID device.
  
  ProblemType: Bug
  DistroRelease: Ubuntu 25.04
  Package: streamdeck-ui 1.1.2-2
  ProcVersionSignature: Ubuntu 6.14.0-15.15-generic 6.14.0
  Uname: Linux 6.14.0-15-generic x86_64
  NonfreeKernelModules: nvidia_modeset nvidia
  ApportVersion: 2.32.0-0ubuntu5
  Architecture: amd64
  CasperMD5CheckResult: pass
  CurrentDesktop: ubuntu:GNOME
  Date: Wed Apr 30 07:31:21 2025
  InstallationDate: Installed on 2021-07-12 (1388 days ago)
  InstallationMedia: Ubuntu 21.10 "Impish Indri" - Alpha amd64 (20210712)
  PackageArchitecture: all
  SourcePackage: streamdeck-ui
  UpgradeStatus: Upgraded to plucky on 2025-02-06 (83 days ago)
+ 
+ [Fix]
+ 
+ Use an alternative method compatible with textsize to determine the
+ width and length of the text shown in the button object.
+ 
+ [Regression potential]
+ 
+ Minimal, without the fix the app won't even start.

** Also affects: streamdeck-ui (Ubuntu Plucky)
   Importance: Undecided
       Status: New

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

Title:
  streamdeck-ui fails to start on Ubuntu 25.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/streamdeck-ui/+bug/2109662/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to