This bug was fixed in the package pyotherside - 1.6.0-4ubuntu0.1

---------------
pyotherside (1.6.0-4ubuntu0.1) noble; urgency=medium

  * Fix PyOtherSideQtRCImporter broken on Python3.12 (LP: #2061529)

 -- Agathe Porte <[email protected]>  Mon, 30 Jun 2025 18:03:45
+0200

** Changed in: pyotherside (Ubuntu Noble)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Checkbox
Bug Wranglers, which is subscribed to pyotherside in Ubuntu.
https://bugs.launchpad.net/bugs/2061529

Title:
  NameError: name 'yubikey' is not defined

Status in pyotherside package in Ubuntu:
  Fix Released
Status in yubikey-manager-qt package in Ubuntu:
  Fix Released
Status in pyotherside source package in Noble:
  Fix Released
Status in yubikey-manager-qt source package in Noble:
  Fix Released

Bug description:
  [ Impact ]

  The pyotherside QRC importer has stopped to function since
  noble/python3.12 because of a now-gone python stdlib function. This
  prevents software like `yubikey-manager-qt` from working correctly
  (see https://bugs.launchpad.net/bugs/2061529)

  This was fixed in upstream version 1.6.2 which is available in plucky.

  [ Test Plan ]

  Steps to reproduce the issue:

  * Install `yubikey-manager-qt` on a Noble system
  * Start the program using `ykman-gui`
  * Notice the "NameError: name 'yubikey' is not defined" and other errors
  * The program is unusable

  If this fix to pyotherside works, then `ykman-gui` should run fine
  without any `NameError`.

  [ Where problems could occur ]

  Limited impact in case of regression since only yubikey software
  depends on qml-module-io-thp-pyotherside in Noble.

  [ Other info ]

  PyOtherSideQtRCImporter needs to implement find_spec since find_module
  is no longer supported.
  
https://docs.python.org/3.11/library/importlib.html#importlib.abc.MetaPathFinder.find_module
  shows it is deprecated since 3.4 (the link shows the 3.11 docs) and it
  was removed in 3.12.

  Upstream issue: https://github.com/thp/pyotherside/issues/130
  Upstream fix: https://github.com/thp/pyotherside/pull/131
  Upstream follow-up fix: https://github.com/thp/pyotherside/pull/134

  [ Original bug report ]

  Running ykman-gui on 22.04 currently shows the following.  ykman works
  fine.

  NameError: name 'yubikey' is not defined
  )
  qml: qrc:/qml/YubiKey.qml:208: TypeError: Cannot read property 'success' of 
undefined
  "PyOtherSide error: Traceback (most recent call last):\n\n  File 
\"<string>\", line 1, in <module>\n\nNameError: name 'yubikey' is not defined\n"
  qml: Function not found: 'yubikey.controller.refresh' (Traceback (most recent 
call last):

    File "<string>", line 1, in <module>

  NameError: name 'yubikey' is not defined
  )
  qml: qrc:/qml/YubiKey.qml:208: TypeError: Cannot read property 'success' of 
undefined
  "PyOtherSide error: Traceback (most recent call last):\n\n  File 
\"<string>\", line 1, in <module>\n\nNameError: name 'yubikey' is not defined\n"
  qml: Function not found: 'yubikey.controller.refresh' (Traceback (most recent 
call last):

    File "<string>", line 1, in <module>

  NameError: name 'yubikey' is not defined
  )
  qml: qrc:/qml/YubiKey.qml:208: TypeError: Cannot read property 'success' of 
undefined

  ProblemType: Bug
  DistroRelease: Ubuntu 24.04
  Package: yubikey-manager-qt 1.2.5-1build2
  ProcVersionSignature: Ubuntu 6.8.0-11.11-generic 6.8.0-rc4
  Uname: Linux 6.8.0-11-generic x86_64
  NonfreeKernelModules: zfs
  ApportVersion: 2.28.0-0ubuntu1
  Architecture: amd64
  CasperMD5CheckResult: pass
  CurrentDesktop: ubuntu:GNOME
  Date: Mon Apr 15 09:56:39 2024
  InstallationDate: Installed on 2024-01-19 (87 days ago)
  InstallationMedia: Ubuntu 22.04.3 LTS "Jammy Jellyfish" - Release amd64 
(20230807.2)
  ProcEnviron:
   LANG=en_US.UTF-8
   PATH=(custom, no user)
   SHELL=/bin/bash
   TERM=xterm-256color
  RebootRequiredPkgs: Error: path contained symlinks.
  SourcePackage: yubikey-manager-qt
  UpgradeStatus: Upgraded to noble on 2024-03-06 (40 days ago)

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


-- 
Mailing list: https://launchpad.net/~canonical-hw-cert
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~canonical-hw-cert
More help   : https://help.launchpad.net/ListHelp

Reply via email to